procmail
[Top] [All Lists]

Bounce message works sometimes!

2000-09-20 12:46:29
Hello,

First, let me apologize for the length of this email, I tried to include all
logs that are applicable.

What I am trying to do is set up my procmail so that a person must either be
in a list of acceptable addresses (this part works fine) or must include the
word spam-free in the header. (this also works)

If the person emailing does not fall in the above categories he will get
bounced back with an email telling him to use the words "spam-free" in the
subject.  This part works SOMETIMES.  I can't seem to figure out why it
works sometimes and sometimes does not.  Any help would be appreciated!

Here is the code that I am using:

:0E:
* ? (echo $FROM | $FGREP -i -f $ACCEPT)  <----this part works, this is the
file I put address that I will accept.
$DEFAULT

:0 
* !^Subject.*spam-free  
* !^FROM_DAEMON
* !^X-Loop: eldorado(_at_)io(_dot_)com
| (formail -brt ; \
echo "....My Message Here....." ; \
 
  ) | $SENDMAIL -oi -t

:0
* ^Subject.*spam-free
$DEFAULT


Below are the logs:

 
procmail: Match on ! "^Subject.*spam-free"
procmail: Match on !
"(^(Precedence:.*(junk|bulk|list)|(((Resent-)?(From|Sender)|X-Envelope-From)
:|>?From )(.*[^((_dot_)%(_at_)a-z0-9])?(Post($
procmail: Match on ! "^X-Loop: eldorado(_at_)io(_dot_)com"
procmail: Executing " (formail -brt ; \
echo ".....My Message Here......" ; \
                            
  ) | $SENDMAIL -oi -t"
procmail: [15394] Wed Sep 20 14:06:41 2000
procmail: Error while writing to " (formail -brt ; \   <--------------error
echo "....my message here....." ; \
   
  ) | $SENDMAIL -oi -t"
procmail: Assigning "LASTFOLDER= (formail -brt ; \
echo "....my message here...." ; \
   
  ) | $SENDMAIL -oi -t"
procmail: No match on "^Subject.*spam-free"
procmail: Locking "/var/spool/mail/eldorado.lock"
procmail: Assigning "LASTFOLDER=/var/spool/mail/eldorado" <-------------goes
ahead and delivers rather than deleting




procmail: Match on ! "^Subject.*spam-free"
procmail: Match on !
"(^(Precedence:.*(junk|bulk|list)|(((Resent-)?(From|Sender)|X-Envelope-From)
:|>?From )(.*[^((_dot_)%(_at_)a-z0-9])?(Post($
procmail: Match on ! "^X-Loop: eldorado(_at_)io(_dot_)com"
procmail: Assigning "LASTFOLDER= (formail -brt ; \
echo ".....My Message Here....." ; \
 
  ) | $SENDMAIL -oi -t"
From Joe_Messervy(_at_)s2systems(_dot_)com  Wed Sep 20 14:10:08 2000
 Subject: test
  Folder:  (formail -brt ; \ echo "************************************
1046   
procmail: Notified comsat: "eldorado@: (formail -brt ; \
echo "....My Message Here......" ; \
 
  ) | $SENDMAIL -oi -t"
procmail: Executing " (formail -brt ; \
echo "....My Message here....." ; \

  ) | $SENDMAIL -oi -t"

_______________________________________________
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>
  • Bounce message works sometimes!, Messervy, Joe <=