I'm again fairly new to linux administration, and I have a box where I'm trying to setup postfix/dovecot/mysql to handle email for virtual users, using MySQL to authenticate the users. I was modifying the following guide, as I have a Redhat FC 4 system:
http://bliki.rimuhosting.com/space/k...n+debian+sarge
I have dovecot communicating with the db (I believe), as when I restart dovecot, I see in the maillog:
Code:
dovecot-auth: MySQL: connected to 127.0.0.1
I have a virtual email box setup at:
/var/spool/postfix/virtual/username@domain.com
The perms are:
Code:
ls -l /var/spool/postfix/virtual/username@domain.com
total 16
drwx------ 2 postfix postfix 4096 Aug 1 15:11 cur
-rw------- 1 postfix postfix 62 Aug 1 15:32 maildirsize
drwx------ 2 postfix postfix 4096 Aug 1 15:32 new
drwx------ 2 postfix postfix 4096 Aug 1 15:32 tmp
When I try and send an email to the address, I get the following errors:
Code:
Aug 3 09:23:25 server042 postfix/virtual[18314]: D309B1B78047: to=<username@domain.com>, relay=virtual, delay=0, status=deferred (maildir delivery failed: create /var/spool/postfix/virtual/username@domain.com/tmp/1154615005.P18314.server042.xxx.com: Permission denied)
Aug 3 09:23:25 server042 postfix/virtual[18314]: warning: maildir access problem for UID/GID=12345/54321: create /var/spool/postfix/virtual/username@domain.com/tmp/1154615005.P18314.server042.xxx.com: Permission denied
Aug 3 09:23:25 server042 postfix/virtual[18314]: warning: perhaps you need to create the maildirs in advance
I see the UID/GID is 12345. I have my /etc/dovecot-mysql.conf set to use 89, as that is the UID in my /etc/passwd file.
I'm sure this is a simple fix, just struggling to get it right. If anyone needs any conf files or anything, please let me know.
Thanks in advance for any light you can shed on this.