procmail
[Top] [All Lists]

Re: Bounced mail

2001-04-05 12:03:00

Hi!

With the script you gave an example of.. The sender get something like
this... here under.. Something im not so happy with is the body...
I would like to get rid of the body and to change the part
with micke(_at_)localhost to something like the_adress(_at_)they_tried to send 
to...

Is this possible?
<snip>


----- Original Message ----- 
From: "Mail Delivery Subsystem" <MAILER-DAEMON(_at_)cliffhanger(_dot_)com>
To: <Sender(_at_)somedomain(_dot_)com>
Sent: Thursday, April 05, 2001 6:32 PM
Subject: Returned mail: Insufficient permission


 The original message was received at Thu, 5 Apr 2001 18:32:32 +0200
 from root(_at_)localhost
 
    ----- The following addresses had permanent fatal errors -----
 micke(_at_)localhost
 
    ----- Transcript of session follows -----
 /usr/sbin/scanmails: add: command not found
 550 micke(_at_)localhost(_dot_)(_dot_)(_dot_) Insufficient permission
 
<snap>
On Wed, 4 Apr 2001, Dave Robbins wrote:

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


In this vale
Of toil and sin
Your head grows bald
But not your chin.
                -- Burma Shave

_______________________________________________
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>