procmail
[Top] [All Lists]

Lock Failure

1997-12-18 11:58:07
I am using procmail 3.10 on Solaris 2.5.1 as a delivery agent for sendmail
8.8.8.  Several times a week, a few users who receive simultaneous mails
end up with concatenated mails and a 'lock failure' error in their
procmail logs.  Is there a fix for this problem?

I have been unable to repeat the problem under controlled conditions
despite delivering several messages a second for extended periods of time
using the user's .procmailrc file.  I am using dotlocking with an NFS
mounted mail spool (with mode 1777).  The problem in these abstracts
occurs when delivering to an NFS mounted user home directory.  Logfile and
procmailrc extracts along with version information on the mail server and
procmail are included below.

----------------------------- logfile excerpt --------------------------------
procmail: [14886] Mon Dec  8 06:01:33 1997
procmail: Assigning "LOGABSTRACT=all"
procmail: [14887] Mon Dec  8 06:01:33 1997
procmail: Assigning "LOGABSTRACT=all"
procmail: Assigning "LASTFOLDER=/fs5/tmp/username/Mail/Mail-incoming/942"
procmail: Opening "/fs5/tmp/username/Mail/Mail-incoming/942"
procmail: Assigning "LASTFOLDER=/fs5/tmp/username/Mail/Mail-incoming/943"
procmail: Opening "/fs5/tmp/username/Mail/Mail-incoming/943"
procmail: [14894] Mon Dec  8 06:01:34 1997
procmail: Assigning "LOGABSTRACT=all"
procmail: [14895] Mon Dec  8 06:01:34 1997
procmail: Assigning "LOGABSTRACT=all"
procmail: Assigning "LASTFOLDER=/fs5/tmp/username/Mail/Mail-incoming/944"
procmail: Opening "/fs5/tmp/username/Mail/Mail-incoming/944"
procmail: Assigning "LASTFOLDER=/fs5/tmp/username/Mail/Mail-incoming/945"
procmail: Opening "/fs5/tmp/username/Mail/Mail-incoming/945"
From maillist-owner(_at_)ichips(_dot_)intel(_dot_)com  Mon Dec  8 06:01:33 1997
 Subject: BOUNCE maillist(_at_)ichips(_dot_)intel(_dot_)com: Approval required
  Folder: /fs5/tmp/username/Mail/Mail-incoming/942                 1687
procmail: [14886] Mon Dec  8 06:01:34 1997
procmail: Locking "msgid.lock"
From maillist-owner(_at_)ichips(_dot_)intel(_dot_)com  Mon Dec  8 06:01:33 1997
 Subject: BOUNCE maillist(_at_)ichips(_dot_)intel(_dot_)com: Approval required
  Folder: /fs5/tmp/username/Mail/Mail-incoming/943                 2784
procmail: [14887] Mon Dec  8 06:01:34 1997
procmail: Locking "msgid.lock"
procmail: Executing "/usr/intel/bin/formail,-D,8192,msgid.cache"
procmail: Lock failure on "msgid.lock"
procmail: Executing "/usr/intel/bin/formail,-D,8192,msgid.cache"
procmail: Program failure (1) of "/usr/intel/bin/formail"
procmail: Assigning "LASTFOLDER=/usr/intel/bin/formail -D 8192
msgid.cache"
procmail: Unlocking "msgid.lock"
procmail: No match on "To:.*ntemacs-users"
procmail: No match on "Cc:.*ntemacs-users"
procmail: Program failure (1) of "/usr/intel/bin/formail"
procmail: Assigning "LASTFOLDER=/usr/intel/bin/formail -D 8192 
msgid.cache"
[many No matches here]
procmail: Locking "/fs12/q/username/Mail/mbox.lock"
[many No matches here]
procmail: Locking "/fs12/q/username/Mail/mbox.lock"
procmail: Assigning "LASTFOLDER=/fs12/q/username/Mail/mbox"
procmail: Opening "/fs12/q/username/Mail/mbox"
procmail: Lock failure on "/fs12/q/username/Mail/mbox.lock"
procmail: [14887] Mon Dec  8 06:01:35 1997
procmail: Assigning "LASTFOLDER=/fs12/q/username/Mail/mbox"
procmail: Opening "/fs12/q/username/Mail/mbox"
From maillist-owner(_at_)ichips(_dot_)intel(_dot_)com  Mon Dec  8 06:01:33 1997
 Subject: MESSAGE TO maillist DEFERRED TO LIST OWNER (Approval required)
  Folder: /fs5/tmp/username/Mail/Mail-incoming/944                   2229
procmail: [14894] Mon Dec  8 06:01:35 1997
procmail: Locking "msgid.lock"

--------------------------- .procmailrc excerpt ------------------------------
PATH=/bin:/usr/bin:/usr/local/bin
MAILDIR=$HOME/Mail      # you'd better make sure it exists
DEFAULT=$MAILDIR/mbox
LOGFILE=$MAILDIR/mail_log
VERBOSE=yes
LOGABSTRACT=all

:0 c
/fs5/tmp/username/Mail/Mail-incoming/.

## Prevent duplicate mailings.
##
:0 Wh: msgid.lock
| /usr/intel/bin/formail -D 8192 msgid.cache

## Mail sent to emacs-nt mailing list.
##
:1:
To:.*ntemacs-users
ntemacs_mbox
:1:
Cc:.*ntemacs-users
ntemacs_mbox

[many recipes elided as delivery does not go to them but to $DEFAULT]

------------------------ machine and procmail info -------------------------
# uname -a
SunOS ichips-ra 5.5.1 Generic_103640-12 sun4u sparc SUNW,Ultra-Enterprise

# procmail -v
procmail v3.10 1994/10/31 written and created by Stephen R. van den Berg
                                
berg(_at_)pool(_dot_)informatik(_dot_)rwth-aachen(_dot_)de

Submit questions/answers to the procmail-related mailinglist by sending
to:
        procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de

And of course, subscription and information requests for this list to:
        procmail-request(_at_)informatik(_dot_)rwth-aachen(_dot_)de

Locking strategies:     dotlocking
Default rcfile:         $HOME/.procmailrc
System mailbox:         /usr/spool/mail/$LOGNAME


James Walden, MD6 OR Postmaster   |
Intel MD6 Engineering Computing   | "Sendmail is the sort of tool that gave
JF1-22, 1st floor, pole H-16      |  UNIX its bad reputation."
(503) 712-1433                    |    -- _System Performance Tuning_

<Prev in Thread] Current Thread [Next in Thread>