[tpop3d-discuss] problem with dotfile locking

Haris Hudji h_hudji at divre7.telkom.co.id
Wed, 10 Sep 2003 15:03:20 +0800


Why did I get this message after authenticated:

-ERR Unable to open mailbox; it may be locked by another concurrent session.

The log says:

Sep 10 14:25:24 ftp2 tpop3d[655]: authcontext_new_user_pass: began session
for
 `test' with pam; uid 8, gid 100
Sep 10 14:25:24 ftp2 tpop3d[655]: fork_child: [5]test(127.0.0.1): began
sessio
n for `test' with pam; child PID is 662
Sep 10 14:25:24 ftp2 tpop3d[662]: dotfile_lock(/var/spool/mail/test): unable
t
o create hitching post: Permission denied
Sep 10 14:25:30 ftp2 last message repeated 3 times
Sep 10 14:25:32 ftp2 tpop3d[662]: mailspool_new_from_file: failed to lock
/var
/spool/mail/test: Permission denied
Sep 10 14:25:32 ftp2 tpop3d[662]: dotfile_unlock(/var/spool/mail/test):
open:
No such file or directory

some of my config:

mailbox: bsd:/var/spool/mail/$(user)
auth-pam-enable: yes
auth-pam-mail-group: users
auth-pam-mail-user: mail

and the output of 'ls -l /var/spool/mail/test':
-rw-rw-r--    1 mail     users        1249 Sep  4 14:23 /var/spool/mail/test

8 is uid number of mail and 100 is gid number of users. No other program is
accessing test mailbox. If I recompile with --disable-dotfile-lock the
problem is gone. Server is running linux redhat 6.2

--
Haris Hudji