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