The Internet Message Access Protocol (also known as IMAP or IMAP4) s an application layer Internet protocol operating on
port 143 that allows a local client to access e-mail on a remote server.
Dovecot Imap Server
You must have imap server installed to open port 143. Dovecot is one of such server avilable under RHEL / CentOS and other Linux distributions. It is an IMAP server for Linux/UNIX-like systems, written with security primarily in mind. It also contains a small POP3 server. It supports mail in either of maildir or mbox formats. To install dovecot type:
Code:
yum install dovecot
To configure server open file /etc/dovecot.conf file:
Code:
vi /etc/dovecot.conf
To start dovecot service type:
Code:
chkconfig dovecot on
service dovecot start
You can see if imap port is opened or not by typing the following command at shell prompt:
Code:
netstat -tulpn | grep 143
To open imap port under CentOS / Redhat Linux / Fedora Linux add following rule to a file called
/etc/sysconfig/iptables, and append following line:
Code:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 143 -j ACCEPT
Now just restart firewall, so that port 143 get opened:
Code:
# /etc/init.d/iptables restart