pop3 and imap clarity

ggeezz

Member
Jan 3, 2005
5
0
151
I am trying to get a new server running but having problems because I don't understand which service is supposed to be controlling what as far as pop3 and imap go.

I am running CentOS 4.4 and WHM 10.8.0 cPanel 10.8.1-R82.

It seems that both cppop and couriertcpd want to control pop3. Whichever one starts first get's control of the port. If couriertcpd gets control then it checks the maildir for mail and cppop checks the inbox file for mail. Exim is routing the mail to the inbox file. Also it seems that couriertcpd is the only imap server.

So to get everything working, I have to stop couriertcpd, start cppop, and then start couriertcpd. But my question is: how is it supposed to work?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
Check in /var/cpanel/cpanel.config

If maildir=0 (or is not in that file), then you should be running cppop and the cpimap daemon through xinetd

If maildir=1, then you should be running courier-imap/pop3

What is maildir set to, if at all, in cpanel.config?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
In that case, courier should not be running at all. Try the following:

service courier-authlib stop
chkconfig courier-authlib off
chkconfig courier-authlib --del
service courier-imap stop
chkconfig courier-imap off
chkconfig courier-imap --del


Next check the xinetd config files:

cd /etc/xinetd.d/

You should have a cpimap file. Check if there are any other imap or pop3 files in that directory and if there are, set them all to disable = yes (except for cpimap).

Then restart xinetd:

service xinetd restart

And restart cppop:

/scripts/restartsrv_cppop