[tpop3d-discuss] Locking and NFS

Manuel Giorgini Manuel Giorgini <giorgini at interlogica.net>
Thu, 27 Nov 2003 15:22:32 +0100


I am running tpop3d v1.3.4 on a couple linux mdk9.0 machines, with an
exim/vmail-sql environment.

It works perfectly.

Recently I installed a NFS client into one of those machine and a
correspondant server into the another. Client machine's tpop3d reaches all
(BSD) spoolfiles through NFS. The NFS volume gets mounted perfectly.

Usually tpop3d uses dotfile locking, and as long as the spools were in the
local machine, it worked. Since when I started fiddling with NFS, it
doesn't seem to work any longer. I do not use NIS because the passwd file
is synced anyway and the UID/GID combo is consistent. When I log in as user
'vmail' I can create new files in the imported directory.

this is the output of tpop3d -vd  --


authcontext_new_user_pass: began session for `giorgini@interlogica.net' with mysql; uid 504, gid 0
fork_child: new child is PID 1487
mailspool_new_from_file: failed to lock /var/spool/mail/SERVERS/interlogica.net/giorgini: No locks available
dotfile_unlock(/var/spool/mail/SERVERS/interlogica.net/giorgini): open: No such file or directory
connection_sendresponse: client [6]giorgini@interlogica.net(127.0.0.1): sent `-ERR Unable to open mailbox; it may be locked by another concurrent session.'


What did I forget? :-)


Thanks in advance for your attention.

PS. I am aware I am running an oldish version, but it works good enough and
I'd rather not upgrade unless necessary.

Cordialità / Best regards / Gxis la
------------------------------------------------------------------------
Manuel Giorgini <giorgini@interlogica.net>, Programmatore
INTERLOGICA e-business solutions -  http://www.interlogica.net
Via De Amicis, 2 - IT 30172 Mestre VE - Italia - Unione Europea
Tel +39 041 961392 - Fax +39 041 954201
------------------------------------------------------------------------