procmail
[Top] [All Lists]

Re: Bounced mail

2001-04-04 23:12:19
From: Poohba <poohba(_at_)poohba(_dot_)adsl(_dot_)duke(_dot_)edu>
Date: Wed, 04 Apr 2001 13:11:30 -0400

Is there anyway to create a bounced email?  I want a bounced email to go
back to specific senders so that they think this account is invalid.

I regret to say that I no longer have the name of the list member
who provided this recipe a few years back.

You must have GNU grep for the $EGREP.  You should have this anyway.
The undesired sender (if on your reject list) gets a MAILER-DAEMON message
back (produced by the EXITCODE = 77) and you get nothing but their 
mail header tucked away in the gzipped file.

Dave Robbins

--
BOZOS=.reject              # file with addresses to reject (one per line)
FROM=`formail -rzxTo:`
:0
* ? echo "$FROM" | $EGREP -i -f $BOZOS
* ? test -r $BOZOS -a -s $BOZOS
{
   EXITCODE = 77
   :0h:
   | gzip -fc >> $MAILDIR/.headers.gz
}
_______________________________________________
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>