[Dovecot] Dovecot v1.0a3 on OpenBSD 3.7
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:
chgrp mail /var/mail && chmod 0775 /var/mail
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.
mail_extra_groups=wheel might work, but probably not a good idea.
On Mon, Oct 17, 2005 at 05:09:49PM +0300, Timo Sirainen wrote:
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:
- 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.
Ding ding ding, bingo. This is what you're supposed to do.
On Monday 17 October 2005 07:14, Brad wrote:
On Mon, Oct 17, 2005 at 05:09:49PM +0300, Timo Sirainen wrote:
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.43c0f93e9fec b54a) 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:
- 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.
Ding ding ding, bingo. This is what you're supposed to do.
I set all the file lock entries in dovecot.conf to "flock" and everything works fine. "fcntl" does NOT work.
-- Jeff Simmons jsimmons@goblin.punk.net Simmons Consulting - Network Engineering, Administration, Security "It was on fire when I got here."
participants (3)
-
Brad
-
Jeff Simmons
-
Timo Sirainen