[Dovecot] Permissions issue in OpenBSD
I jumped right in and followed the "Quick Configuration" guide after installing dovecot (dovecot-1.0.beta3.tgz) on my OpenBSD 3.9 box. I had previously been using akpop3d (which worked, but was flaky). I am getting the following errors in /var/log/maillog:
Jul 23 22:40:29 kingcull dovecot: pop3(jm): open(/var/mail/.temp.myserver.mymail.com.19038.10090e2f3cc51a4b) failed: Permission denied
Jul 23 22:40:29 myserver dovecot: pop3(jm): file_lock_dotlock() failed with mbox file /var/mail/jm: Permission denied
Jul 23 22:40:29 myserver dovecot: pop3(jm): Mailbox init failed top=0/0, retr=0/ del=0/0, size=0
Jul 23 22:40:29 myserver dovecot: pop3-login: Login: user=<jm>, method=PLAIN, rip=67.33.58.194, lip=67.33.58.195, TLS
Could someone offer a clue as to what is needed to fix this?
Thanx, Jay
J Moore wrote:
Jul 23 22:40:29 kingcull dovecot: pop3(jm): open(/var/mail/.temp.myserver.mymail.com.19038.10090e2f3cc51a4b) failed: Permission denied
Could someone offer a clue as to what is needed to fix this?
Thanx, Jay
That's due to locking. Permissions on OpenBSD for /var/mail are a bit different. So - try different mechanism for at least mbox locking (fcntl or flock, etc.).
On Mon, Jul 24, 2006 at 06:41:11AM +0200, the unit calling itself Michal Soltys wrote:
Jul 23 22:40:29 kingcull dovecot: pop3(jm): open(/var/mail/.temp.myserver.mymail.com.19038.10090e2f3cc51a4b) failed: Permission denied
Could someone offer a clue as to what is needed to fix this?
That's due to locking. Permissions on OpenBSD for /var/mail are a bit different. So - try different mechanism for at least mbox locking (fcntl or flock, etc.).
Hmmm - yeah... some Googling revealed a little change in the config file that solved the problem: from: 'mbox_write_locks = dotlock fcntl' to: 'mbox_write_locks = fcntl'
Gee... I wonder why the OpenBSD folks didn't take care of this?
Thnx, Jay
participants (2)
-
J Moore
-
Michal Soltys