I've been trying to get Dovecot 1.0a3 running on OpenBSD 3.7, with little luck. I'm getting the following: Oct 16 17:00:50 mailtest dovecot: pop3(testuser):open(/var/mail/.temp.mail.mailtest.com.7078.43c0f93e9fecb54a) failed: Permission denied Oct 16 17:00:50 mailtest dovecot: pop3(testuser): file_lock_dotlock() failed with mbox file /var/mail/testuser: Permission denied Oct 16 17:00:50 mailtest dovecot: pop3-login: Login: user=<testuser>, method=PLAIN , rip=63.201.8.122, lip=64.4.143.26, TLS Oct 16 17:00:50 mailtest dovecot: pop3(testuser): Mailbox init failed top=0/0, retr=0/ del=0/0, size=0 I've read in the archives that this can be fixed by setting mail_extra_groups = mail in dovecot.conf, but OpenBSD has /var/mail owned by root:wheel mod 755, and /var/mail files owned by fileowner:users mod 600, and no mail group. Anyone know how I can fix this? Jeff Simmons jsimmons@goblin.punk.net Simmons Consulting - Network Engineering, Administration, Security "It was on fire when I got here."
On Sun, 2005-10-16 at 17:31 -0700, Jeff Simmons wrote:> I've been trying to get Dovecot 1.0a3 running on OpenBSD 3.7, with little > luck. I'm getting the following: > > Oct 16 17:00:50 mailtest dovecot: > pop3(testuser):open(/var/mail/.temp.mail.mailtest.com.7078.43c0f93e9fecb54a) > failed: Permission denied..> I've read in the archives that this can be fixed by setting mail_extra_groups > = mail in dovecot.conf, but OpenBSD has /var/mail owned by root:wheel mod > 755, and /var/mail files owned by fileowner:users mod 600, and no mail group. > > Anyone know how I can fix this?Well, in that case I don't know how OpenBSD people thought it would work. You have a few choices: 1) chgrp mail /var/mail && chmod 0775 /var/mail 2) Disable dotlocking entirely and use just flock or fcntl locking (mbox_*_lock settings). Just make sure everything else writing to mbox files are using the same locking. 3) mail_extra_groups=wheel might work, but probably not a good idea. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://dovecot.org/pipermail/dovecot/attachments/20051017/bc48f32e/attachment.pgp