Kristian Larsson writes:
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 [EMAIL PROTECTED] (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
The initial listener process runs as root.
After validating the userid and password, the server runs under the userid and the groupid specified for the account.
If you did not set up authentication correctly, the server process would then run under the wrong uid.
Fix your MySQL authentication configuration.
pgpFtuvM553Ov.pgp
Description: PGP signature
