Reject Email
Paul Boehmer
pboehmer at seidata.com
Mon Jun 30 08:26:40 PDT 2003
I had this put in my .mc file under local config for a while, but it became more of a hassle to maintain as spammers like to mangle the subject. You might have better luck using Spam Assassin or the like (not familiar with MailScanner), but if you have a couple of problematic emails, this should do the trick, YMMV.
Keep in mind that normal sendmail spacing rules apply, and that I reject the mail with "error 553: Header Error" (don't want to make it too obvious, right?). If needed, I can send this as an attachment.
Hope this helps, good luck!
Paul Boehmer
pboehmer at seidata.com
--------- Cut ----------
HSubject: $>+CheckSubject
KParseSubject regex -a<A> -f ^((ADV?[:]|ADU?LTS?|ILOVEYOU|BULK|CASH|EARN|GET PAID|Accept Credit Cards|MONEY|GUARANTEED).*|Are They Investigating You\?|Don.t (Miss These|Get Ripped Off!)!.*|Must be 18! *Free xxx inclosed!)$
SCheckSubject
R$* $: $(ParseSubject $&{currHeader} $: <OK> $)
R<OK> $@ OK
R$* $#error $: 553 Header Error $&f
---------------- Cut ----------------
On Mon, 30 Jun 2003 12:26:17 +0000
"Mauricio J. Mercado A." <mauricio at conexion.com.py> wrote:
> Hi, I need to reject a email by the subject of the email. I am running
> sendmail with MailScanner.
> Any one have an idea how can I do this?.
>
> _______________________________________________
> freebsd-isp at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-isp
> To unsubscribe, send any mail to "freebsd-isp-unsubscribe at freebsd.org"
>
More information about the freebsd-isp
mailing list