3 messages in net.sourceforge.lists.courier-maildrop[maildropl] How to use list of blocke...
FromSent OnAttachments
Philip MakDec 26, 2001 10:48 pm 
Philip MakDec 27, 2001 3:34 pm 
Philip MakDec 28, 2001 4:38 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] How to use list of blocked addresses?Actions...
From:Philip Mak (pm@animeglobe.com)
Date:Dec 26, 2001 10:48:40 pm
List:net.sourceforge.lists.courier-maildrop

I'm migrating from sendmail. I have a long list of addresses that I want to block from sending me mail, like this:

dai@d5.dion.ne.jp REJECT Wrong address! E-mail sal@aaaanime.com instead inma@earthlink.net REJECT Your address is marked as a spammer Broa@LAMarket.net REJECT Your address is marked as a spammer dian@excite.com REJECT Your address is marked as a spammer ret@trafficmagnet.net REJECT Your address is marked as a spammer zHom@yahoo.co.uk REJECT Your address is marked as a spammer redr@earthlink.net REJECT You are/were infected by an e-mail virus gro@mediaone.net REJECT You are/were infected by an e-mail virus

So, there's an address followed by a reason for rejection.

Does anyone have some stock code that I could put in .mailfilter to easily read from a blacklist of e-mail addresses? I thought of putting them in like this:

if (/^From:.*gro@mediaone.net/) { echo "You are/were infected by an e-mail virus" return 111 }

but that seems cumbersome, inefficient, and it doesn't even work (I fudged up the syntax somewhere, I guess).