|Subject:||[courier-users] Problems with Imapd|
|From:||Aldisa Admin (adm...@aldisa.ca)|
|Date:||Dec 26, 2006 12:33:29 pm|
Hello and Merry Christmas to all:
I am having a lot of trouble trying to log in to imap. I am running FreeBSD 6.1 with following ports:
courier-0.53.3 Courier SMTP IMAP POP3 HTTP mail server suite courier-authlib-base-0.58_2 Courier authentication library base courier-authlib-userdb-0.58_2 Userdb support for the Courier authentication library
I have also installed ClamAV with Clamcour activated through filterctl. Overall, the setup is seems fine, as I am able to send out using authenticated SMTP and collect email using POP3. The userdb does NOT contain clear text passwords and I have removed CRAM-* capability from esmtpd and pop3d.
The imapd file contains following capability string: =============== IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE" ===============
I have tried to login through IMAP into an account using Thunderbird v22.214.171.124 and telnet locally, but am unable to. However I have no problems logging in using POP3 to the same account. The only password setup in userdb record is "systempw".
Here is a summary of my troubleshooting so far:
I have tried adding "AUTH=LOGIN" and "AUTH=PLAIN" to the IMAP_CAPABILITY string but neither helps. I have added a cleartext password entry in userdb --> "imappw=xxx" but this didn't help either.
When I try to login from Thunderbird the logs show: =============== Dec 26 14:38:43 server imapd: LOGIN FAILED, user=admin, ip=[xx.xx.xx.xx] Dec 26 14:38:54 server imapd: LOGOUT, ip=[xx.xx.xx.xx], rcvd=95, sent=530 ===============
When I use telnet locally, the logs show: =============== Dec 26 14:59:36 server imapd: LOGIN FAILED, user=admin, ip=[127.0.0.1] ===============
Even with debug set to 2 in authdaemon, there is no further detail in the logs.
One more thing that is very troubling. The kernel logs (dmesg.*) show a significant number of entries: =============== pid 88090 (imapd), uid 1003: exited on signal 11 (core dumped) ===============
uid 1003 is the user I have created to handle all the virtual mail accounts in userdb. Here is what my userdb looks like: =============== vmail uid=1003|gid=1003|home=/var/vmail|shell=/usr/sbin/nologin|systempw=$1$te4t57Tp$rF.gfZ4nX3hLK5mkAffhX1|gecos=Virtual Mail User 1003= vmail
admin systempw=rMgCvuWPsCqxk|uid=1003|home=/var/vmail/aldisa/admin|gid=1003|gecos=Aldisa Admin ===============
Here are the permissions on the Maildirs for the virtual users: =============== # ll /var/vmail/aldisa/ drwxr-xr-x 3 vmail vmail 512 Dec 21 17:44 admin
# ll /var/vmail/aldisa/admin drwx------ 5 vmail vmail 512 Dec 26 14:24 Maildir
# ll /var/vmail/aldisa/admin/Maildir/ -rw-r--r-- 1 vmail vmail 388 Dec 26 14:24 courierpop3dsizelist drwx------ 2 vmail vmail 512 Dec 26 14:24 cur drwx------ 2 vmail vmail 512 Dec 26 14:24 new drwx------ 2 vmail vmail 512 Dec 26 14:24 tmp ===============
I am now at a complete loss at what to do next. I kept approaching it as a configuration issue, but the kernel messages are now making me suspect that there is a bug in this FreeBSD port. If so, I do not have the skills to troubleshoot that. On the other hand, it could just be a problem with the way I have setup permissions or Maildirs. Do I need to add the imap subscribed files??
Any and all help/advice will be greatly appreciated.