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).