When migrating courier-mta from debian to gentoo I was surprised Gentoo team hardcoded maildir name as '.maildir' because in courier this should be controlled by a value MAILDIRPATH in the /etc/courier/pop3d, /etc/courier/imapd ... Reproducible: Always Steps to Reproduce: 1. emerge courier 2. enable pop3d server (/etc/courier/pop3d) 3. set MAILDIRPATH=Maildir 4. create maildir 'maildirmake ~/Maildir' (actually I am using vitual domains and authentication via mysql) 5. configure courier to deliver via maildrop (edit /etc/courier/courierd, set DEFAULTDELIVERY="| /usr/bin/maildrop" and MAILDROPDEFAULT=./Maildir 6. start courier Actual Results: SMTP works as expected, POP3 and IMAP return error 'ERR Maildir: No such file or directory'. Expected Results: Maildir name should be changed only in configuration files, not in the source code.
Courier itself had been bad about obeying config files. That hack is no longer in our ebuilds as of courier-0.45.6. Please try that version - its due to get marked stable soon anyway.
The startup scripts Courier installs (I checked /usr/sbin/{imapd{.-ssl},webmail}) contain a reference to "Maildir" instead of the appropriate configuration file variable. This remains true for Courier-0.45.6 and Courier-0.45.6.20040618. I imagine POP3 might look similar.
The problem still persists in * mail-mta/courier Latest version available: 0.45.6.20040618 Latest version installed: 0.45.6.20040618 I suggest a fix like that: root@athen099 sbin # diff /usr/sbin/courier-imapd /usr/sbin/courier-imapd.old 52c52 < /usr/bin/imapd $MAILDIR" --- > /usr/bin/imapd .maildir" root@athen099 sbin # Same problem with /usr/sbin/courier-pop3d Regards, David
ok, give the 0.46.20040816 a whirl
problem should be long gone by now