From owner-freebsd-isp@FreeBSD.ORG Mon Jun 30 08:26:39 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCBCF37B401 for ; Mon, 30 Jun 2003 08:26:39 -0700 (PDT) Received: from mailer.seidata.com (mail1.seidata.com [206.162.192.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8C0743FE5 for ; Mon, 30 Jun 2003 08:26:38 -0700 (PDT) (envelope-from pboehmer@seidata.com) Received: from wopr.seidata.com (wopr.seidata.com [206.162.192.54]) by mailer.seidata.com (8.12.9/8.12.9) with SMTP id h5UFQTCH050830 for ; Mon, 30 Jun 2003 11:26:31 -0400 (EDT) (envelope-from pboehmer@seidata.com) Date: Mon, 30 Jun 2003 11:26:39 -0400 From: Paul Boehmer To: freebsd-isp@freebsd.org Message-Id: <20030630112639.4a12a6b5.pboehmer@seidata.com> In-Reply-To: <3F002C69.40301@conexion.com.py> References: <3F002C69.40301@conexion.com.py> Organization: SEI Data, Inc. X-Mailer: Sylpheed version 0.8.10claws (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 30 Jun 2003 08:32:40 -0700 Subject: Re: Reject Email X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2003 15:26:40 -0000 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 -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} $: $) R $@ OK R$* $#error $: 553 Header Error $&f ---------------- Cut ---------------- On Mon, 30 Jun 2003 12:26:17 +0000 "Mauricio J. Mercado A." 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" >