I didn't have a choice, but I had to make two simultaneous changes,
moving from one version of linux to another, AND upgrading from
procmail 3.10 to 3.13. In the process, I notice that I am getting the
following error message:
fetchmail: SMTP listener doesn't like recipient address
`nugrange(_at_)localhost'
Here is the output of the procmail -v:
procmail -v
procmail v3.13.1 1999/04/05, Copyright (c) 1999, Stephen R. van den Berg
<srb(_at_)cuci(_dot_)nl>
Submit questions/answers to the procmail-related mailinglist by sending
to:
<procmail-users(_at_)procmail(_dot_)org>
And of course, subscription and information requests for this list to:
<procmail-users-request(_at_)procmail(_dot_)org>
Locking strategies: dotlocking, fcntl(), lockf(), flock()
Default rcfile: $HOME/.procmailrc
Your system mailbox: /var/spool/mail/root
and here is my /etc/procmailrc:
PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
MAILDIR=/var/spool/mail/ # You'd better make sure it exists
DEFAULT=$MAILDIR/steveh
LOGFILE=$MAILDIR/logfile
LOCKFILE=$MAILDIR/.lockmail
VERBOSE=on
:0:
* ^X-SpamFactor
spam
:0c
backup
:0ic
| cd backup && rm -f dummy `ls -t msg.* | sed -e 1,100d`
:0:
* ^TO_bridget
/var/spool/mail/bridget
# Is this mail from jamie or bunker?
:0:
* ^From .*(hillj|bunker|sfnb)
{
FWDS # clear out the forwards
:0 # is it already addressed to steveh?
* !^TO_(steveh)
{ FWDS=steveh } # no, add it to the forwards
:0 # already addressed to dianne?
* !^TO_(dianne)
{ FWDS="$FWDS dianne" } # no, add it to the forwards
# any forwards to process? if so, mark the mail with a "Fowarded:"
# So we'll see that it was done
:0fh
* FWDS ?? .
| formail -I"Forwarded: $FWDS" -I"X-loop: yes"
:0ac # and now really forward it
! $FWDS
}
:0fh # If Dianne is an addressee, give her a copy.
* ^TO_dianne
* !^X-loop
| formail -I"X-loop: processed from procmail (root to dianne)"
:0ac
/var/spool/mail/dianne
:0fh # If Jamie is an addressee, give one to her.
* ^TO_jamie
* !^X-loop
| formail -I"X-loop: processed from procmail (root to jamie)"
:0ac
/var/spool/mail/jamie
:0fh # If Steve is an addressee, give one to him.
* ^TO_steveh_
* !^X-loop
| formail -I"X-loop: processed from procmail (root to steve)"
:0ac
/var/spool/mail/steveh
# If Dianne or Jamie or both got it and it isn't for Steve also, lose it.
:0HB
* LASTFOLDER ?? ^^(dianne|jamie)^^
* !^TO_(steveh|nugrange(_at_)best\(_dot_)com)
junkmail
An example of what I am seeing in the logfile is:
procmail: [1152] Tue Jun 1 16:31:22 1999
procmail: No match on "^X-SpamFactor"
procmail: Assigning "LASTFOLDER=backup/msg.CYF"
procmail: Opening "backup/msg.CYF"
procmail: Acquiring kernel-lock
procmail: Kernel-lock failed
procmail: Kernel-unlock failed
procmail: Executing " cd backup && rm -f dummy `ls -t msg.* | sed -e
1,100d`"
procmail: Assigning "LASTFOLDER= cd backup && rm -f dummy `ls -t msg.* |
sed -e 1,100d`"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)bridget"
procmail: No match on "^From .*(hillj|bunker|sfnb)"
procmail: Extraneous locallockfile ignored
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)dianne"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)jamie"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)steveh_"
procmail: No match on "^^(dianne|jamie)^^"
procmail: Kernel-lock failed
procmail: Kernel-unlock failed
From Poohhoop1(_at_)aol(_dot_)com Tue Jun 1 16:30:32 1999
Subject: Fwd: Moose Jaw Jobie
Folder: /var/spool/mail//steveh
14820
The other question that I have, is why am I seeing the locks fail, given
what I see in the procmail -v output.
Thanks for any feedback!
Steve
--
email: steveh(_at_)iname(_dot_)com
-----------------------