[tpop3d-discuss] Unable to open mailbox; it may be locked by another concurrent session

Leon Botes leon at trusc.net
Tue, 25 Feb 2003 19:17:12 +0200

Okay so we make exim deliver to the mailspool with permissions as such:
drwxrwx---   2 root  mail   512 Feb 25 18:59 .
drwxr-xr-x  25 root  wheel  512 Feb 18 12:33 ..
-rw-rw----   1 leon  mail   412 Feb 25 18:59 leon
Take note those that mailed me about lockfiles - there are none.

conf is as such:

max-children: 20

mailbox: bsd:/var/mail/$(user)

auth-pam-enable: yes

strip-domain: yes

But still the same result.

TCP Wrappers support enabled, using daemon name `tpop3d'
listening on address, port 110, domain trusc.office
1 authentication drivers successfully loaded
net_loop: tpop3d version 1.4.2 successfully started
connection_sendresponse: client [5] sent `+OK
listeners_post_select: client [5] connected
connection_parsecommand: client [5] received
`user leon'
connection_sendresponse: client [5] sent `+OK
Tell me your password.'
connection_parsecommand: client [5] received
`pass [...]'
authcontext_new_user_pass: began session for `leon' with pam; uid 1000, gid
fork_child: [5]leon( successfully authenticated with pam
mailspool_new_from_file: stat(/var/mail/leon): Permission denied
fork_child: new child is PID 95972
connection_sendresponse: client [5]leon( sent `-ERR Unable
to open mailbox; it may be locked by another concurrent session.'
authcontext_delete: finished session for `leon' with pam

So i go and install another pop server (cucipop) just to check my mailboxes
are readable and all works well.

I am not spooling into domain subdirectories as yet if that makes a
difference, although it seems to be authenticating okay.

Please guys.
I 'm no GURU so answers explained would be appreciated.

On Tue, Feb 25, 2003 at 06:23:50PM +0200, Leon Botes wrote:
> -rw-------   1 mailnull  mail   403 Feb 25 18:23 leon

That seems a surprising ownership for leon's mailbox.

> mailspool_new_from_file: stat(/var/mail/leon): Permission denied

... tpop3d is trying to open the mailspool as user `leon',
but that's not working out.