Can't change location of maildir in courier-imap
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/
I looked in /etc/init.
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/
Changed in courier: | |
status: | Unconfirmed → Confirmed |
Changed in courier: | |
status: | Confirmed → In Progress |
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.