Courier IMAP Login Failed Issue – Fixed
Recently while configuring a courier-imap I came across a frustrating error where I couldnot login using the correct username and password. I was using authpam module and the server logs just stated Login Failed, and then Logout.
Enabling debug level 2 didn’t help much, but then figured out that I had set DEFDOMAIN in the imapd config file which failed the pam authentication.
Also I found out that each change to authdaemonrc takes effect only after I restart courier-authdaemon and not courier-imap or courier-imap-ssl.