2 messages in net.sourceforge.lists.courier-users[courier-users] Courier-IMAP / postfi...
FromSent OnAttachments
Kristian LarssonOct 29, 2004 11:29 am 
Sam VarshavchikOct 29, 2004 4:25 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Courier-IMAP / postfix Maildir problemActions...
From:Kristian Larsson (bar@mbox325.swipnet.se)
Date:Oct 29, 2004 11:29:39 am
List:net.sourceforge.lists.courier-users

Hi!

I have just setup a mailserver using Postfix and Courier-IMAP using MySQL as a backend for virtual domains. I can use Postfix for relaying mail and also send mail to this server. It delivers them quite correctly. However when Courier-IMAP tries to read them it doesn't have permission to. All mail is stored in /home/vmail/<domain>/<user>/.maildir/ so for fo@bar.net (which in this case is a virtual domain) the path would be /home/vmail/bar.net/foo/.maildir/ when Postfix writes the mail it has a permission of 0600 (rw for the owner) and so Courier-IMAP is unable to read the mail. If I manually set the permission to o+wrx Courier can read the mail. To resolve this I tried having Postfix write the mailes with full permissions set, however I never found the option (if there is such) to do this. My other idea would be to change the ownership to the user of which Courier-IMAP is running. I used ps aux to find out that Courier is run as root and so I changed the ownership of the mail dir to root but this didn't work either so I guess Courier doesn't read files with root permissions!?

I need some guidance here. Any advice is appreciated.

Regards, Kristian