Can't change location of maildir in courier-imap

Bug #86802 reported by LasseL
6
Affects Status Importance Assigned to Milestone
courier (Ubuntu)
Fix Released
Undecided
Scott Kitterman

Bug Description

Binary package hint: courier-imap

Running Ubuntu Edgy server.

I have been upgrading an old server. For various reasons I have my maildir configured to point at a folder called ".maildir" instead of the default Maildir.

I restored my .maildir folders from my backup
Then I changed courier-imap /etc/courier/imapd:
At the bottom of the file it says:
MAILDIRPATH=Maildir

I changed that to .maildir

After restarting the server I found that the server still tries to deliver mail to the Maildir folder.

==> mail.log <==
Jan 1 01:30:51 enoch couriertcpd: chdir Maildir: No such file or directory

And ps gave me:
root 4780 4779 0 01:08 ? 00:00:00 /usr/sbin/couriertcpd -address=192.168.1.12 -maxprocs=40 -maxperip=20 -nodnslookup -noidentlookup 143 /usr/lib/courier/courier/imaplogin /usr/bin/imapd Maildir

I looked in /etc/init.d/courier-imap and found that it uses the MAILDIR variable instead of MAILDIRPATH

FIX: Change the default imapd and imapd-ssl so MAILDIRPATH=Maildir -> MAILDIR=Maildir

The error must have been there back since Hoary. But looking back at my old config files I hacked my way through the problem back then by changing the /etc/default/courier file, since that one uses the right variable.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Did you change the init scripts and verify that this works? There is an open bug in Debian (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=253148) that seems to me to say that even if the init scripts were correct, the variable wouldn't be honored anyway.

Revision history for this message
LasseL (lasse-lldata) wrote : Re: [Bug 86802] Re: Can't change location of maildir in courier-imap

I didn't try changing the variable name in the initscript to MAILDIRPATH
But it stands to reason that it should work no matter what the name is
as long as the name in the init-script and the settingfiles are the same.
I changed the ones in the settingfiles so they match the init-scripts
since that was only one line in two files.

Changed in courier:
status: Unconfirmed → Confirmed
Revision history for this message
Scott Kitterman (kitterman) wrote :

I'm working on fixing this in the Feisty version at the same time I merge an update from Debian.

Changed in courier:
assignee: nobody → kitterman
Changed in courier:
status: Confirmed → In Progress
Revision history for this message
LasseL (lasse-lldata) wrote :

Wow! Very impressive response times.
This really motivates to report more bugs.

--
Change ain't lookin' for friends
Change calls the tune we dance to
       - Al Swearengen (Deadwood)

Revision history for this message
Scott Kitterman (kitterman) wrote :

Fixed in Feisty version 0.53.3-5ubuntu1

Changed in courier:
status: In Progress → Fix Released
Revision history for this message
aliet (alietss) wrote :

This problems is happening also en courier-maildrop, specially if you use authdaemon, authldaprc, you can change the value and if running from command runs ok, but if runs into postfix call fails, tested with 0.53.3-5ubuntu1, this funcionality in courier it seemd widely broken among the differente pieces of this software

Revision history for this message
aliet (alietss) wrote :

I request this bug been open again, since is uncomplete fixed in courier

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 86802] Re: Can't change location of maildir in courier-imap

This bug was against courier-imap and has been fixed. Please file a new
bug describing the problem and which courier packages need fixing.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.