We used to use NTMail which had this feature built-in.
Unfortunately, grepping won't work as the words are actually multi-word
phrases each and there must be a copy in EVERY users directory....
Example List:
angie.mackay
Newport Internet Marketing
Neuport Internet Marketing
702 Mangrove Avenue
Stealth Mass
jtsr-stock.com
888-295-6365
904-282-0945
NEWSGROUP BULK ADVERTISING SOFTWARE
EXTRAORDINARY ELECTRONIC MULTI-LEVEL
There are about 150 phrases in our list and we prefer it to be done at the
SMTP level. The response should be:
"550 Error - Message is either SPAM or contains a Virus"
Any patching suggestions would be helpful as I am not comfortable coding
this myself.
-----Original Message-----
From: Charles Cazabon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 11, 2000 4:32 PM
To: Travis Rail
Cc: Qmail Discussion List
Subject: Re: Anti-Spam Filter
Travis Rail <[EMAIL PROTECTED]> wrote:
> Is there anyway that Qmail can filter incoming message for certain words.
> Basically what I need is some kind of �Rejected Words List�. A message
> comes in and is scanned and checked against a file containing a list of
> words that the postmaster would like to reject. If the email message
> contains one of these words it is marked rejected and turned back to the
> sender. Does anyone know of an Add-On or anything like this I can use
with
> Qmail?
If you want to do this at the time of the SMTP receipt, you'll have to patch
qmail-smtpd. But if you want to do it at delivery time, you can put
something like this in your .qmail file:
|egrep -qw '(word1|word2|...)' && exit 99
./Maildir/
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------