Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jun 2003 11:26:39 -0400
From:      Paul Boehmer <pboehmer@seidata.com>
To:        freebsd-isp@freebsd.org
Subject:   Re: Reject Email
Message-ID:  <20030630112639.4a12a6b5.pboehmer@seidata.com>
In-Reply-To: <3F002C69.40301@conexion.com.py>
References:  <3F002C69.40301@conexion.com.py>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-isp
> To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030630112639.4a12a6b5.pboehmer>