Users can't pop email, I get this error -ERR Maildir invalid (no 'cur' directory)

mguindon10

Active Member
Aug 23, 2005
27
0
151
Detroit, MI.
My users can't pop their email. They do recieve mail and are able to get it from webmail but they can't use outlook and such to pop their email. I telneted into the server and tried to login as a user and I get this error.

-ERR Maildir invalid (no 'cur' directory)

Anyone know what this is and how to fix it?
 

mguindon10

Active Member
Aug 23, 2005
27
0
151
Detroit, MI.
I figured out the problem just incase anybody else has this error.

Run these scripts:
/scripts/convert2maildir
/scripts/courierup --force
/scripts/eximup --force
/scripts/upcp --force

That converted the maildir over and fixed my popping issues.
 

prodigious

Member
Feb 7, 2005
17
0
151
Hi all

Revisiting this thread, I get the same type of error:

Code:
There was a problem logging onto your mail server. Your Password was rejected. 
Account: 'Mike', Server: 'domain.com', Protocol: POP3, 
Server Response: '-ERR Maildir invalid (no 'cur' directory)', 
Port: 110, Secure(SSL): No, Server Error: 0x800CCC90, 
Error Number: 0x800CCC92
However, I do NOT wish to have my email system switched over to maildir - been there done that and my clients overwhelmingly prefer the simpler mbox format.

New emails get appended to the mbox-style inbox file, but mail clients want to check the maildir-style /cur directory. How can I get these back in sync?

Note - this just started happening after the kernel in my server was upgraded and the server rebooted. I have a trouble ticket in with my hosting company, but I wanted to see if anyone here might be able to shed some light on the issue.

Thanks all-
Mike
 

tweakservers

Well-Known Member
Mar 30, 2006
379
0
166
Your server's exim might have been upgraded to maildir. Double check if your exim if it is being upgraded and if it is, revert it back to mbox . Check also if you have courier-authlib and courier-imap services running on your server
 

prodigious

Member
Feb 7, 2005
17
0
151
Hello -

Thanks for the quick reply - where in the exim.conf file do I tell it to use mbox over maildir? Or is that located in another file?

Also, I was told by my hosting company that CPanel apparently doesn't support mbox any longer and permanently uses maildir, which would make sense given my problems. But I do not wish to use maildir and want to stick with mbox if I can.

If that's true about CPanel, then I suspect other people are having (or going to have) issues with their mbox based email system as well....
 

tweakservers

Well-Known Member
Mar 30, 2006
379
0
166
Your host has the options of running the mail in mbox or maildir and the maildir is not a permanent changes by run but Cpanel may probably completely drop mbox in future, there's no final confirmation from them on this at the moment.
 

prodigious

Member
Feb 7, 2005
17
0
151
Hi,


Thanks again for the quick reply.

I actually run my server / have root access, so I can control all aspects of how mail is delivered.

My main question is - what files should I be editing in cpanel / exim? I checked exim.conf and there was nothing in there that directly said mbox or maildir.

Thanks
 

tweakservers

Well-Known Member
Mar 30, 2006
379
0
166
can you run a ps -aux and paste the output here?
 

tweakservers

Well-Known Member
Mar 30, 2006
379
0
166
Looks like you are in maildir... try this as root :

service chkservd stop
service courier-authlib stop
service courier-imap stop

Edit the file /var/cpanel/cpanel.config and find the following line ( if it does not exist, add it )

maildir=0

Save the file and run the following:

/scripts/eximup --force
service cpanel restart
service xinetd restart
service chkservd start

You will be back to mbox after this. If you are still having problems, PM me and I will help you to take a look.
 

prodigious

Member
Feb 7, 2005
17
0
151
Sure -


Code:
Command: ps -aux

USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  1316  488 ?        S    Jan11   0:00 init [3]      
root     13395  0.0  0.0  1372  548 ?        S    Jan11   0:00 syslogd -m 0
root     13531  0.0  0.0  1300  428 ?        S    Jan11   0:00 /usr/sbin/courierlogger -pid=/var/spool/authdaemon/pid -facility=mail -start /usr/libexec/courier-authlib/authdaemond
root     13548  0.0  0.0  1624  548 ?        S    Jan11   0:00 /usr/libexec/courier-authlib/authdaemond
root     13758  0.0  0.0  1624  564 ?        S    Jan11   0:00 /usr/libexec/courier-authlib/authdaemond
root     13761  0.0  0.0  1624  564 ?        S    Jan11   0:00 /usr/libexec/courier-authlib/authdaemond
root     13762  0.0  0.0  1624  564 ?        S    Jan11   0:00 /usr/libexec/courier-authlib/authdaemond
root     13763  0.0  0.0  1624  560 ?        S    Jan11   0:00 /usr/libexec/courier-authlib/authdaemond
root     13765  0.0  0.0  1624  564 ?        S    Jan11   0:00 /usr/libexec/courier-authlib/authdaemond
named    31855  0.0  0.1 30492 14424 ?       S    Jan11   0:00 /usr/sbin/named -u named
root     31925  0.0  0.0  3648 1456 ?        S    Jan11   0:00 /usr/sbin/sshd
root     32038  0.0  0.0  1980  864 ?        S    Jan11   0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root      1777  0.0  0.0  9632 7476 ?        S    Jan11   0:00 chkservd
root      3077  0.0  0.0  1300  448 ?        S    Jan11   0:00 /usr/sbin/courierlogger -pid=/var/run/imapd-ssl.pid -start -name=imapd-ssl /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=40 -maxperip=30 -nodnslookup -noidentlookup 993 /usr/lib/courier-imap/bin/couriertls -server -tcpd /usr/lib/courier-ima
root      3098  0.0  0.0  1404  480 ?        S    Jan11   0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=40 -maxperip=30 -nodnslookup -noidentlookup 993 /usr/lib/courier-imap/bin/couriertls -server -tcpd /usr/lib/courier-imap/sbin/imaplogin /usr/lib/courier-imap/bin/imapd Maildir
root      3147  0.0  0.0  1300  448 ?        S    Jan11   0:00 /usr/sbin/courierlogger -pid=/var/run/pop3d.pid -start -name=pop3d /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=40 -maxperip=30 -nodnslookup -noidentlookup 110 /usr/lib/courier-imap/sbin/pop3login /usr/lib/courier-imap/bin/pop3d Maildir
root      3148  0.0  0.0  1404  480 ?        S    Jan11   0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=40 -maxperip=30 -nodnslookup -noidentlookup 110 /usr/lib/courier-imap/sbin/pop3login /usr/lib/courier-imap/bin/pop3d Maildir
root      3201  0.0  0.0  1296  364 ?        S    Jan11   0:00 /usr/sbin/courierlogger -pid=/var/run/pop3d-ssl.pid -start -name=pop3d-ssl /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=40 -maxperip=30 -nodnslookup -noidentlookup 995 /usr/lib/courier-imap/bin/couriertls -server -tcpd /usr/lib/courier-ima
root      3202  0.0  0.0  1400  460 ?        S    Jan11   0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=40 -maxperip=30 -nodnslookup -noidentlookup 995 /usr/lib/courier-imap/bin/couriertls -server -tcpd /usr/lib/courier-imap/sbin/pop3login /usr/lib/courier-imap/bin/pop3d Maildir
root      7849  0.0  0.1 31432 8420 ?        S    Jan11   0:00 /usr/local/apache/bin/httpd -DSSL
root      7883  0.0  0.0  1368  580 ?        S    Jan11   0:00 crond
root      7961  0.0  0.0  2048 1052 ?        S    Jan11   0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/terrapin.prodigiousdesign.net.pid
mysql     8058  0.0  0.1 50832 15912 ?       S    Jan11   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/terrapin.prodigiousdesign.net.pid --skip-external-locking --socket=/var/lib/mysql/mysql.sock
root      9247  0.0  0.0  5692 1748 ?        S    Jan11   0:00 pure-ftpd (SERVER)                                                                                                                                                                                                                                           
root      9251  0.0  0.0  3324  880 ?        S    Jan11   0:00 /usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/sbin/pureauth
root     11553  0.0  0.0  1328  476 ?        S    Jan11   0:00 /usr/sbin/portsentry -tcp
root     23789  0.0  0.1  9756 8428 ?        S    Jan11   0:00 /etc/authlib/authProg
root     30531  0.0  0.1  9752 8572 ?        S    09:13   0:00 /etc/authlib/authProg
mailnull  7812  0.0  0.0  6640 1868 ?        S    09:55   0:00 /usr/sbin/exim -bd -q60m
mailnull  7818  0.0  0.0  6620 1836 ?        S    09:55   0:00 /usr/sbin/exim -tls-on-connect -bd -oX 465
root      7831  0.0  0.0  2760 1420 ?        S    09:55   0:00 antirelayd
root      7854  0.0  0.2 24216 22308 ?       S    09:55   0:00 /usr/bin/spamd -d --allowed-ips=127.0.0.1 --pidfile=/var/run/spamd.pid --max-children=5
root      7863  0.0  0.3 29652 27824 ?       S    09:55   0:00 spamd child
root      7864  0.0  0.2 25536 23676 ?       S    09:55   0:00 spamd child
root     13394  0.0  0.0  5700 3536 ?        S    10:06   0:00 /usr/bin/perl /usr/local/cpanel/bin/leechprotect
nobody   13398  0.0  0.2 39664 24728 ?       S    10:06   0:00 /usr/local/apache/bin/httpd -DSSL
nobody   13399  0.0  0.2 35744 22244 ?       S    10:06   0:00 /usr/local/apache/bin/httpd -DSSL
nobody   13402  0.0  0.2 35996 20932 ?       S    10:06   0:00 /usr/local/apache/bin/httpd -DSSL
nobody   13445  0.0  0.3 40096 26112 ?       S    10:06   0:00 /usr/local/apache/bin/httpd -DSSL
nobody   13542  0.0  0.2 36124 22864 ?       S    10:06   0:00 /usr/local/apache/bin/httpd -DSSL
nobody   14010  0.0  0.2 35892 22032 ?       S    10:06   0:00 /usr/local/apache/bin/httpd -DSSL
nobody   14042  0.0  0.2 35876 21408 ?       S    10:06   0:00 /usr/local/apache/bin/httpd -DSSL
root     15597  0.0  0.0  6788 5564 ?        S    10:06   0:00 cpbandwd
root     15828  0.0  0.0  9636 7408 ?        SN   10:06   0:00 cpanellogd - sleeping for logs
root     15878  0.0  0.1 13636 11068 ?       S    10:06   0:00 /usr/local/cpanel/bin/cppop-ssl
mailnull 15936  0.0  0.0  7624 5464 ?        S    10:06   0:00 eximstats
mailman  15967  0.0  0.0 10128 6848 ?        S    10:06   0:00 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bin/mailmanctl -s start
mailman  15986  0.0  0.0 10072 6772 ?        S    10:06   0:00 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
mailman  15987  0.0  0.0 10080 6780 ?        S    10:06   0:00 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=BounceRunner:0:1 -s
mailman  15989  0.0  0.0 10076 6780 ?        S    10:06   0:00 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=CommandRunner:0:1 -s
mailman  15990  0.0  0.0 10076 6776 ?        S    10:06   0:00 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=IncomingRunner:0:1 -s
mailman  15991  0.0  0.0 10088 6804 ?        S    10:06   0:00 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
mailman  15992  0.0  0.0 10108 6840 ?        S    10:06   0:00 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=OutgoingRunner:0:1 -s
mailman  15993  0.0  0.0 10076 6776 ?        S    10:06   0:00 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=VirginRunner:0:1 -s
mailman  15999  0.0  0.0 10076 6768 ?        S    10:06   0:00 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=RetryRunner:0:1 -s
root     22040  0.0  0.1 17288 14840 ?       S    10:08   0:00 cpsrvd - waiting for connections
root      5131  0.0  0.1  9756 8576 ?        S    11:14   0:00 /etc/authlib/authProg
root     10003  0.0  0.1  9752 8508 ?        S    11:15   0:00 /etc/authlib/authProg
nobody   31966  0.0  0.2 35548 18204 ?       S    11:34   0:00 /usr/local/apache/bin/httpd -DSSL
mailnull  5500  0.0  0.0  6656 1960 ?        S    11:37   0:00 /usr/sbin/exim -bd -q60m
root     15465  0.0  0.1  9752 8508 ?        S    11:41   0:00 /etc/authlib/authProg
nobody   16219  0.0  0.1 31608 8800 ?        S    11:41   0:00 /usr/local/apache/bin/httpd -DSSL
nobody   18190  0.0  0.1 31432 8432 ?        S    11:42   0:00 /usr/local/apache/bin/httpd -DSSL
nobody   20056  0.0  0.0  2584  720 ?        R    11:42   0:00 ps -aux
 

prodigious

Member
Feb 7, 2005
17
0
151
While everything works normally for the most part, I seem to be having timeout issues with the mail server now. DNSReport keeps failing when it checks for it, but when I send mail, it eventually goes through.

Any idea why this might be occuring?
 

NNNils

Well-Known Member
Sep 17, 2002
580
0
166
Looks like you are in maildir... try this as root :

service chkservd stop
service courier-authlib stop
service courier-imap stop

Edit the file /var/cpanel/cpanel.config and find the following line ( if it does not exist, add it )

maildir=0

Save the file and run the following:

/scripts/eximup --force
service cpanel restart
service xinetd restart
service chkservd start

You will be back to mbox after this. If you are still having problems, PM me and I will help you to take a look.
After doing this in a server that is already maildir converted, the maildir style folders still exist.
Is it save to delete them? Or is there a back-conversion script?
 

tweakservers

Well-Known Member
Mar 30, 2006
379
0
166
it is fine to leave the cur folder on the server as your server's exim is now not in maildir version that will not read into the cur folder.
 

NNNils

Well-Known Member
Sep 17, 2002
580
0
166
This solution works fine, however I have 3 servers with same config:

WHM 10.8.0 cPanel 10.9.0-R7965
CentOS 4.4 i686 - WHM X v3.1.0

They somehow every few weeks the problem returns and we need to run the solution above again, although maildir=0 is still in place.
Also at the same time ftp server needs a restart.
In other servers were we applied this patch, we do not need to do this.

This returning of the problems usually seems to occur at the nightly running of upcp scripts etc.

Anyone has an idea?