On Wed, 2008-01-09 at 13:07 -0800, papi mac wrote:
I tried this idea and it seems to work well. I ran into a problem that is probably Fedora related. The delivery failed because of a permission problem in /var/spool/mail. The users are not able to create the dotlock files there and so the error message is:
deliver(admin): open(/var/mail/.temp.mail.tecno.com.br.18793.f9456dce0b91597f) failed: Permission denied deliver(admin): file_lock_dotlock() failed with mbox file /var/mail/admin: Permission denied
I would like to avoid messing with the users and permissions to this directory, so I thought it would be good to have "deliver" create the dotlock files in another place. Is this possible and how is it configured?
You might as well then just disable dotlocks and just use fcntl locks. dotlocks are only necessary if you use other software than Dovecot to modify the mailboxes and it doesn't use fcntl locks.
See http://wiki.dovecot.org/MailboxFormat/mbox and http://wiki.dovecot.org/MboxLocking