[CentOS] CentOS 4.3/postfix/procmail lock failures

Wed Jul 19 13:53:42 UTC 2006
Larry Vaden <vaden at texoma.net>

Hello,

What is the proper solution to the problem below the sig?

For a similar issue, Phillip Guenther, procmail's maintainer, at 
<http://article.gmane.org/gmane.mail.procmail/1623/match=error+writing+var+spool+mail> 
suggests "chmod g+s /usr/bin/procmail", but I'm reluctant.

There are also suggestions that in this configuration the packager must 
make certain that fcntl locking is in force, but I DUNNO.

Full disclosure: postfix is version 2.3, compiled locally.  Procmail is 
invoked with by postfix via "mailbox_command = /usr/bin/procmail".

Thanks in advance for your time.

rgds/ldv

procmail: Locking "/var/spool/mail/vaden.lock"
procmail: Error while writing to 
"/var/spool/mail/_2VF.HWivEB.mail.texoma.net"
procmail: Lock failure on "/var/spool/mail/vaden.lock"
procmail: Assigning "LASTFOLDER=/var/spool/mail/vaden"
procmail: Opening "/var/spool/mail/vaden"
procmail: Acquiring kernel-lock
 From dbmail-bounces at dbmail.org  Wed Jul 19 07:28:55 2006
  Subject: RE: [Dbmail] Delete accounts
   Folder: /var/spool/mail/vaden

[vaden at mail ~]$ ls -l /var/spool/mail/vaden
-rw-rw----  1 vaden mail 224051703 Jul 19 08:42 /var/spool/mail/vaden

[vaden at mail ~]$ procmail -v
procmail v3.22 2001/09/10
     Copyright (c) 1990-2001, Stephen R. van den Berg    <srb at cuci.nl>
     Copyright (c) 1997-2001, Philip A. Guenther 
<guenther at sendmail.com>

Submit questions/answers to the procmail-related mailinglist by sending to:
         <procmail-users at procmail.org>

And of course, subscription and information requests for this list to:
         <procmail-users-request at procmail.org>

Locking strategies:     dotlocking, fcntl()
Default rcfile:         $HOME/.procmailrc
         It may be writable by your primary group
Your system mailbox:    /var/mail/vaden

n.b.: original installer probably didn't realize initial /var size was 
too limiting:

[vaden at mail ~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       264G   44G  207G  18% /
/dev/sda1              99M   32M   63M  34% /boot
none                  501M     0  501M   0% /dev/shm
/dev/sda2             9.9G  5.8G  3.7G  62% /var

[vaden at mail ~]$ ls -l /var
total 180
drwxr-xr-x   2 root    root     4096 Mar  8 08:00 account
drwxr-xr-x   8 root    root     4096 Dec 14  2005 cache
drwxr-xr-x   3 netdump netdump  4096 Mar  8 18:54 crash
drwxr-xr-x   3 root    root     4096 Dec 14  2005 db
drwxr-xr-x   3 root    root     4096 Dec 14  2005 empty
drwxr-xr-x   3 root    root     4096 Dec 14  2005 ftp
drwxr-xr-x  17 root    root     4096 Apr 19 21:01 lib
drwxr-xr-x   2 root    root     4096 Feb 21  2005 local
drwxrwxr-x   5 root    lock     4096 Jul 19 00:07 lock
drwxr-xr-x  11 root    root     4096 Jul 19 00:07 log
drwx------   2 root    root    16384 Dec 14  2005 lost+found
lrwxrwxrwx   1 root    root       10 Dec 14  2005 mail -> spool/mail
drwxr-x---   5 root    named    4096 Dec 14  2005 named
drwxr-xr-x   2 root    root     4096 Feb 21  2005 nis
drwxr-xr-x   2 root    root     4096 Feb 21  2005 opt
drwxr-xr-x   2 root    root     4096 Feb 21  2005 preserve
drwxr-xr-x  17 root    root     4096 Jul 12 18:19 run
drwxr-xr-x  16 root    root     4096 Jun 16 20:32 spool
drwxrwxrwt   2 root    root     4096 Jul  2 21:25 tmp
drwx------   2 root    root     4096 Feb 21  2005 tux
drwxr-xr-x   8 root    root     4096 Jan  5  2006 www
drwxr-xr-x   3 root    root     4096 Dec 31  2005 yp

[vaden at mail ~]$ ls -l /var/spool
total 388
drwxr-xr-x   2 root   root     4096 Dec 14  2005 anacron
drwx------   3 daemon daemon   4096 Dec 14  2005 at
drwxrwx---   2 smmsp  smmsp    4096 Jun 11 09:55 clientmqueue
drwx------   2 root   root     4096 Jan 18 18:52 cron
drwx--x---   3 root   sys      4096 Jan 11  2006 cups
drwxr-xr-x   2 root   root     4096 Feb 21  2005 lpd
lrwxrwxrwx   1 root   root       13 Dec 14  2005 mail -> /mail-spools/
drwx------   2 root   mail   278528 Jun 22 18:39 mqueue
drwxr-xr-x  16 root   root     4096 Jun 16 20:32 postfix
drwxr-xr-x   2 rpm    rpm      4096 Dec 31  2005 repackage
drwxrwxrwt   2 root   root     4096 Mar  8 07:59 samba
drwxr-x---   2 squid  squid    4096 Dec 31  2005 squid
drwxr-xr-x   2 root   root     4096 Mar  8 21:35 up2date
drwxrwxrwt   2 root   root     4096 Feb 21  2005 vbox
drwxr-xr-x   3 root   root     4096 May  1 17:57 work

[vaden at mail ~]$ ls -l /var/spool/mail
lrwxrwxrwx  1 root root 13 Dec 14  2005 /var/spool/mail -> /mail-spools/

[vaden at mail ~]$ ls -l /usr/bin/procmail
-rwxr-xr-x  1 root mail 80428 Feb 21  2005 /usr/bin/procmail
You have new mail in /var/spool/mail/vaden
[vaden at mail ~]$