  | |  Re: Denying e-mail based on a word in the body of message -- > insendmail
8.11 | Re: Denying e-mail based on a word in the body of message -- > insendmail
8.11 2003-04-11 - By Dirk Dettmering
Back Hy,
Gerry Doris wrote: > > On Thu, 10 Apr 2003, gti617 wrote: > > > If an e-mail is addressed to one of your group members and it contains the > > word "viagra" within the > > body or subject of the message. How can you block receiving this type > > messages and send a message back > > to the sender; informing them, "to cut the sh.." as a warning. > > You might want to consider SpamAssassin. Although separate from sendmail > it does scan email content and is very good at flagging such things as > viagra.
Or even better: switch to postfix and use the bad_headers/bad_body content filtering feature and reject the spam in the moment when the spammer delivers it. I really like it this way as you can avoid traffic and you show the spammers that you activly fight against UCE. SA is only my second and third line of defense against spam (once called for all mails via amavisd-new with a relative high score and for several accounts called again from .procmailrc with an individual score). But the bad_headers/bad_body checks together with the rbl lookups of postfix are so effective that only 1-2% of all spam will reach my SA. :) More informations about the postfix content filtering features can be found here: http://www.hispalinux.es/~data/postfix/ (not available in the moment due to protesting against the iraq war).
Bye
Dirk
Earn $52 per hosting referral at Lunarpages.
|
|
 |