Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I find out what IMAP server (if any) is running on a CentOS server?

share|improve this question
up vote 7 down vote accepted

telnet <servername> imap and/or telnet <servername> imaps. If you get answers then you have IMAP from the Internet. You can also look if it is available only on your server by telnet localhost imap and/or telnet localhost imaps.

Alternatively you could check if netstat -a | fgrep imap returns a line with LISTEN in it. Then the IMAP server is up and running.

share|improve this answer
Just for completeness: IMAP is port 143 and IMAPS port 993. And if for some weird reason your machine does not have telnet installed by default it may have nc (netcat) which you can use instead. – adamo Oct 3 '11 at 9:38
Perfect, thanks – Vince Pettit Oct 3 '11 at 9:44

If your host is running imap it will most likely be listening on ports 143 or 993. netstat -p will tell you which process is listening on what port so if you want to find out which imap server you are running try this:

 # netstat -apnn | grep LISTEN | egrep '993|143'
tcp        0      0   *               LISTEN      1777/dovecot    
tcp        0      0   *               LISTEN      1777/dovecot 

In my case I am running dovecot.

share|improve this answer
You can use -l option instead of grep LISTEN. – quanta Oct 3 '11 at 10:55
every day is a school day :) – paulos Oct 3 '11 at 11:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.