add imap to existing pop3 server

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
rude2012
Posts: 7
Joined: 2014/10/06 20:17:10

add imap to existing pop3 server

Post by rude2012 » 2015/11/20 15:32:15

Hello all, i hope this is a simple step. i have a centos email server with 5.3 on it. we have used the pop3 server for many years without problems. i are needing to add imap on this server now (an apple thing), is this possible to just add and not redesign or rebuild the server? i am running dovecot on this server currently. it seems dovecong.conf shows imap in theprotocols but when i try to telnet, it will not connect. maybe it is something as simple as a port needing opened, not sure what i am looking at. built this thru a guide from the forum back when just pop3 (yeah, old) .

if someone could please help me or guide me in a corret direction to look i would really appreciate it.

thank you

--rudyt

rude2012
Posts: 7
Joined: 2014/10/06 20:17:10

Re: iptables imap

Post by rude2012 » 2015/11/20 18:06:04

ok, i have an update. looks like imap is in dovecot but the iptables is not letting me in. i added to the table as show below, but when i still cannot telnet into the imap. if i turn off iptables, i can telnet into using the imap port with no problem. what am i missing here. i have issued services iptables save and restarted services. still only can hit the imap if iptables is stopped. any help is appreciated.

--rudy

here is my ip tables: i can connect using ports 22, 25 110, 587. none of the other reports respond. do not know what i am missing, please help.
cat iptables

# Generated by iptables-save v1.3.5 on Fri Nov 20 11:13:53 2015
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [5055:15694472]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp -m icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p esp -j ACCEPT
-A RH-Firewall-1-INPUT -p ah -j ACCEPT
-A RH-Firewall-1-INPUT -d 224.0.0.251 -p udp -m udp --dport 5353 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 25 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 110 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 993 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 995 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 587 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
# Completed on Fri Nov 20 11:13:53 2015
[root@mail2 sysconfig]#

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: add imap to existing pop3 server

Post by gerald_clark » 2015/11/20 18:10:00

Imap is port 143. I don't see that in your output.

rude2012
Posts: 7
Joined: 2014/10/06 20:17:10

Re: add imap to existing pop3 server

Post by rude2012 » 2015/11/20 20:12:56

i noticed that also and also port 993.

when i add these to the iptables in the etc/sysconfig using vi editor and restart iptables services, it still will not let me test with a telnet session, it will not connect, but when i shutdown iptables, i can telnet.

can ou give me the proper context on how to add to the iptables and whta may be hosing it up and not working correctly?

thank you.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: add imap to existing pop3 server

Post by gerald_clark » 2015/11/20 20:46:57

run system-config-securitylevel

Post Reply

Return to “CentOS 5 - Server Support”