procmail
[Top] [All Lists]

Re: Blacklist

2003-02-05 03:22:20
On Monday, February 3, 2003, at 05:11 AM, Frank Nørvig wrote:
Hi there,

How can I make a blacklist-script to sort out specific domains using procmail ?

KILLFILE=$HOME/.killfile
:0:
* $? formail -xFrom: | grep -i -f $KILLFILE
/dev/null

put what you want killed in the file .killfile

       echo "To: $FROM";\
       echo "From: $MODTAGER";\
       echo "Subject: Blacklist notify";\
       echo "X-Loop: noloop";\
       echo ;\
       echo "This is an autoreply!";\
       echo ;\
echo "Your mail-address has been blacklisted and your mail has therefor";\
       echo "been deleted before reaching destination!";\

If you are doing this be sure the email is not from a mailing list.

--
The Piper's calling you to join him


_______________________________________________
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>
  • Blacklist, Frank =?unknown?q?N=F8rvig?=
    • Re: Blacklist, Professional Software Engineering
    • Re: Blacklist, LuKreme <=