Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 54557

Summary: Maildir name hardcoded into courier
Product: Gentoo Linux Reporter: David Bruha <saleck>
Component: [OLD] ServerAssignee: Scott Taylor (RETIRED) <swtaylor>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description David Bruha 2004-06-20 13:56:03 UTC
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.
Comment 1 Scott Taylor (RETIRED) gentoo-dev 2004-06-20 16:43:08 UTC
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.
Comment 2 Andreas Kauer 2004-06-26 10:31:03 UTC
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.
Comment 3 David Solbach 2004-08-16 07:15:03 UTC
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
Comment 4 Scott Taylor (RETIRED) gentoo-dev 2004-08-16 20:52:37 UTC
ok, give the 0.46.20040816 a whirl
Comment 5 Scott Taylor (RETIRED) gentoo-dev 2005-01-30 20:19:02 UTC
problem should be long gone by now