-ERR chdir Maildir failed

If you are getting the following error in maillog
Jan 9 19:17:01 test courierpop3login: chdir Maildir: No such file or directory

or if you are trying to do the following and get the follwing error

test:~# telnet server.sbs.com 110
Trying 192.168.0.244...
Connected to test.sbs.com.sbs.com.
Escape character is '^]'.
+OK Hello there.
user user2@mega.com
+OK Password required.
passwd user2
-ERR Invalid command.
pass user2
-ERR chdir Maildir failed
Connection closed by foreign host.


then 1st tis to chechk is vi /etc/courier/authmysqlrc file
check this option
MYSQL_HOME_FIELD "/var/spool/mail/virtual"

also check this option
MYSQL_MAILDIR_FIELD concat(home,'/',maildir)

or
MYSQL_MAILDIR_FIELD CONCAT(maildir,"/")

/etc/init.d/courier-authdaemon restart
/etc/init.d/courier-imap restart
/etc/init.d/courier-imap-ssl restart
/etc/init.d/courier-pop start

then try to tel net to 110 again

hope this helps !!!

--

No comments:

Other Articles

Enter your email address: