Hello,
Not a member of this list so please include reply to sender.
I am using procmail as mda with sendmail 8.9.1
I have an account for handling system questions with a .procmailrc
in it which doesn't behave as documented. The first recipe is a
delivering recipe (as defined in procmailrc(5)) but execution of
the .procmailrc after that recipe is continues. I expected that
execution should stop at that point.
I know it isn't exiting at "Should exit here" because the
"! $USSG_LIST" is being executed and the test addresses *are*
receiving the mail.
Is this a bug or behavior defined to be different when procmail
is used as the mda?
##################OUTPUT OF "procmail -v"
procmail v3.11pre7 1997/04/28 written and created by Stephen R. van den Berg
<srb(_at_)cuci(_dot_)nl>
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, fcntl(), lockf(), flock()
Default rcfile: $HOME/.procmailrc
Your system mailbox: /var/spool/mail/valid
#############OUTPUT OF "cat .procmailrc" (edited for privacy; names changed)
PATH=/bin:/usr/bin:/usr/local/bin
MAILDIR=$HOME/Mail #you'd better make sure it exists
LOGFILE=$MAILDIR/procmail.log #recommended
IGN_LIST="uucp listserv majordomo listproc" #for X-Ignore header
# production:
#USSG_LIST="validD(_at_)valid(_dot_)umass(_dot_)edu,validC(_at_)valid(_dot_)umass(_dot_)edu,validB(_at_)valid(_dot_)oit(_dot_)umass(_dot_)edu,validA(_at_)valid(_dot_)umass(_dot_)edu"
# testing:
USSG_LIST="valid(_at_)valid(_dot_)valid(_dot_)umass(_dot_)edu,
valid(_at_)valid(_dot_)valid(_dot_)umass(_dot_)edu"
ACK_MSG=/usr/users/ussg/.ACKmessage
:0:
* ^From:.*validusername
* ^From:.*valid.*lastnamex
* ^From:.*valid.*lastnamey
* ^From:.*valid.*lastnamez
$DEFAULT
#Should exit here on match!!
# Send ACK to users _not_ on this list.
# Add entries as needed.
:0c
* ! ^From(_dot_)*ussg(_at_)(_dot_)*
* ! ^From.*hd[0-9][0-9][0-9].*
* ! ^From.*lastname6.*
* ! ^From.*lastname5.*
* ! ^From.*lastname4.*
* ! ^From.*lastname3.*
* ! ^From.*lastname2.*
* ! ^From.*lastname1.*
| /usr/local/bin/formail -cr -i "X-Ignore: $IGN_LIST" | \
cat - $ACK_MSG | \
/usr/lib/sendmail -oi -t
# Forward message to all members of USSG and put it
# in $DEFAULT
:0c
! $USSG_LIST
:0:
$DEFAULT
--
Peter deFriesse UNIX Systems Administration
Email: peter(at)oit.umass.edu [All standard disclaimers apply:]