procmail
[Top] [All Lists]

Multiple Recipients Question

2002-09-15 14:06:18
I'm running an anti-spam procmail script (www.spambouncer.org) on a
linux 2.4 system with sendmail 8.12.5 as the mta. Procmail is set up as
the local delivery agent (i.e., FEATURE(local_procmail) is set).

I've noticed that when mail with two local recipients is handed off to
procmail to run the spambouncer script the two successive invocations
don't operate the same way (I know this because when run in VERBOSE mode
the second recipient's mail doesn't get properly processed by the
spambouncer script).

The difference appears after the following line in the log file (I've
attached a bigger chunk of the log file at the end of this email):

procmail: Executing "/usr/local/bin/formail,-D,8192,msgid.cache"

For the first recipient this is followed by:

     procmail: Non-zero exitcode (1) from "/usr/local/bin/formail"
     procmail: Assigning "LASTFOLDER=/usr/local/bin/formail -D 8192
msgid.cache"

and then the rest of the spambouncer script executes.

For the second recipient the line after the "Executing" one is:

     procmail: Assigning "LASTFOLDER=/usr/local/bin/formail -D 8192
msgid.cache"

So it looks like there wasn't any exitcode returned from the call to
formail?

I'm pretty sure sendmail is sending two separate items (i.e., the 'm'
flag is not set on the local mailer), so I'm wondering if there's some
way to "re-initialize" the procmail "environment" between executions?

Thanx in advance for any thoughts or help!

- Mark 
mark(_at_)arcabama(_dot_)com 

p.s. The relevant sections of the procmail log that show the problem
appear to be:

(first recipient; delivered properly)

procmail: Assigning "FORMAIL=/usr/local/bin/formail"
procmail: Assigning "SENDMAIL=/usr/local/sbin/sendmail"
procmail: Assigning "BLOCKFOLDER=/home/mail/spam"
procmail: Assigning "BLOCKREPLY=SILENT"
procmail: Assigning "BYPASSWD=zeugma"
procmail: Assigning "FREEMAIL=INTERNAL"
procmail: Assigning "MYEMAIL=/myemail"
procmail: Assigning "SBDIR=/usr/local/spambouncer"
procmail: Assigning "NOBOUNCE=/usr/local/spambouncer/nobounce"
procmail: Assigning "NOLOOP="
procmail: Assigning "PATTERNMATCHING=SILENT"
procmail: Assigning "SPAMFOLDER=/home/mail/spam"
procmail: Assigning "BIGFOLDER=/home/mail/bigmesg"
procmail: Assigning "SPAMREPLY=SILENT"
procmail: Assigning "LEAN=no"
procmail: Locking "msgid.lock"
procmail: Executing "/usr/local/bin/formail,-D,8192,msgid.cache"
procmail: Non-zero exitcode (1) from "/usr/local/bin/formail"
procmail: Assigning "LASTFOLDER=/usr/local/bin/formail -D 8192
msgid.cache"
procmail: Unlocking "msgid.lock"
procmail: Assigning "LASTFOLDER=backup"
procmail: Opening "backup"
<snip; further spambouncer processing>
procmail: Locking "/var/spool/mail/mark.lock"
procmail: Executing " $FORMAIL -A"X-Sorted: Default" >>$DEFAULT"
procmail: Assigning "LASTFOLDER= $FORMAIL -A"X-Sorted: Default"
$DEFAULT"
procmail: Unlocking "/var/spool/mail/mark.lock"
procmail: Notified comsat: "mark@:/home/mail/ $FORMAIL -A"X-Sorted:
Default" >>$DEFAULT"
From root(_at_)arcabama(_dot_)com  Sun Sep 15 12:37:33 2002
 Subject: Test Multiple
  Folder:  $FORMAIL -A"X-Sorted: Default" >>$DEFAULT
683

(second recipient; no delivery)

procmail: Assigning "FORMAIL=/usr/local/bin/formail"
procmail: Assigning "SENDMAIL=/usr/local/sbin/sendmail"
procmail: Assigning "BLOCKFOLDER=/home/mail/spam"
procmail: Assigning "BLOCKREPLY=SILENT"
procmail: Assigning "BYPASSWD=zeugma"
procmail: Assigning "FREEMAIL=INTERNAL"
procmail: Assigning "MYEMAIL=/myemail"
procmail: Assigning "SBDIR=/usr/local/spambouncer"
procmail: Assigning "NOBOUNCE=/usr/local/spambouncer/nobounce"
procmail: Assigning "NOLOOP="
procmail: Assigning "PATTERNMATCHING=SILENT"
procmail: Assigning "SPAMFOLDER=/home/mail/spam"
procmail: Assigning "BIGFOLDER=/home/mail/bigmesg"
procmail: Assigning "SPAMREPLY=SILENT"
procmail: Assigning "LEAN=no"
procmail: Locking "msgid.lock"
procmail: Executing "/usr/local/bin/formail,-D,8192,msgid.cache"
procmail: Assigning "LASTFOLDER=/usr/local/bin/formail -D 8192
msgid.cache"
procmail: Unlocking "msgid.lock"
procmail: Notified comsat: "barbara@:/usr/local/bin/formail -D 8192
msgid.cache"
From root(_at_)arcabama(_dot_)com  Sun Sep 15 12:37:35 2002
 Subject: Test Multiple
  Folder: /usr/local/bin/formail -D 8192 msgid.cache
564

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • Multiple Recipients Question, Mark Olbert <=