Hi,
I have an issue with following setup:
Three FreeBSD 6.x MTAs running procmail for local delivery into NFS
mounted /var/mail/$user mboxes. NFS server is FreeBSD 5.5. Times are
synchronised using ntpd. Only dotlocking is compiled in on all boxes.
I have a spam trap accounts that are sometimes getting hammered by 20-30
messages per second. That's where I noticed the locking mechanism is
failing.
#egrep "^FF+rom|^rom" eqse
rom Angelou'sborn(_at_)access(_dot_)be Thu Dec 7 14:39:05 2006
rom PeelMelinda(_at_)abnaki(_dot_)easn(_dot_)sun(_dot_)com Thu Dec 7 14:40:31
2006
FFrom finessingreactivate(_at_)abdj(_dot_)com(_dot_)au Thu Dec 7 14:37:59 2006
rom mountingsShinto's(_at_)aacph(_dot_)com Thu Dec 7 14:39:43 2006
rom nipple'sfoment(_at_)abaxbank(_dot_)com Thu Dec 7 14:40:48 2006
rom lessonsamazes(_at_)academica(_dot_)cz Thu Dec 7 14:42:57 2006
FFrom Tabitha'shopping(_at_)absolune(_dot_)com Thu Dec 7 14:43:55 2006
rom Dukefalsehood's(_at_)abcasiapacific(_dot_)com Thu Dec 7 14:44:11 2006
FFrom Akbarelastic(_at_)acado(_dot_)ru Thu Dec 7 14:41:19 2006
rom regulator'sBotswana's(_at_)abeinc(_dot_)com Thu Dec 7 14:45:16 2006
rom harmlessness'sLombardi(_at_)aars-reservedele(_dot_)dk Thu Dec 7 14:44:17
2006
I also have corelating messages in procmail logfile:
procmail: Couldn't unlock "/var/mail/eqse.lock"
Note that there's no other program accessing the mailbox whatsoever, just
procmail.
I disabled attribute cache (acregmin=0,acregmax=0) on all nfs mounts, but
it made no difference.
I confirmed that it truly is disabled using:
#nfsstat -c
Cache Info:
Attr Hits Misses Lkup Hits Misses BioR Hits Misses BioW Hits Misses
0 528210 103070 63547 22388 10171 0 16436
So I'm at a loss. Before I get into the source code, does anybody know
what to try ? (Maildir is not an option right now)
It seems that somehow the lockfile gets simultaneously created by more
than one procmail process. Upon mangled delivery, one of the processes is
unable to unlink() the file, most likely because the other process did.
Thanks,
P.
Paul Sandys
network operations manager
http://www.nyct.net/
212.293.2620
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail