How do I find out what IMAP server (if any) is running on a CentOS server?
Asked
Active
Viewed 1.6k times
2 Answers
8
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.

mailq
- 17,023
- 2
- 37
- 69
-
2Just 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 03 '11 at 09:38
4
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 0.0.0.0:993 0.0.0.0:* LISTEN 1777/dovecot
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 1777/dovecot
In my case I am running dovecot.

paulos
- 1,694
- 10
- 12