From owner-freebsd-chat Mon Jun 3 19:23:24 2002 Delivered-To: freebsd-chat@freebsd.org Received: from bast.unixathome.org (bast.unixathome.org [216.187.105.150]) by hub.freebsd.org (Postfix) with ESMTP id 14EB437B404 for ; Mon, 3 Jun 2002 19:23:21 -0700 (PDT) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id 645D23F3A; Mon, 3 Jun 2002 22:24:15 -0400 (EDT) From: "Dan Langille" Organization: DVL Software Limited To: "Jeremy C. Reed" Date: Mon, 3 Jun 2002 22:23:15 -0400 MIME-Version: 1.0 Subject: Re: postfix: stopping spam sent to user@host.example.org Reply-To: dan@langille.org Cc: chat@freebsd.org References: <20020531193427.DE4BC3F35@bast.unixathome.org> In-reply-to: X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Message-Id: <20020604022415.645D23F3A@bast.unixathome.org> Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 31 May 2002 at 12:39, Jeremy C. Reed wrote: > On Fri, 31 May 2002, Dan Langille wrote: > > > I'm using postfix. Is there a way to stop this spam? i.e. block all > > mail with a TO: field containing @host.example.com. > > Have a look at your postfix's main.cf and read the small section about > "header_checks". Damn. I thought I had them. But it's not stopping them. They might have a "To: Undisclosed@host.example.org" but that gets through. I'm not sure why. Here's an example: Received: from 217.56.69.162 (host162-69.pool21756.interbusiness.it [217.56.69.162]) by host.example.org (Postfix) with SMTP id 7E19B7A9E for ; Sat, 1 Jun 2002 22:49:18 -0400 (EDT) From: Home Opportunities To: Undisclosed@host.example.org, Recipients@host.example.org Cc: Subject: Earn $3 to $5 per envelope you stuff! $2,000+ weekly. Sender: Home Opportunities Mime-Version: 1.0 $ less /usr/local/etc/postfix/header_checks /^to: .*@host\.example\.org/ REJECT /^To: Undisclosed\@host\.example\.org/ REJECT /^Subject: PLEASE CAN YOU ASSIST/ REJECT Clues please? -- Dan Langille The FreeBSD Diary - http://freebsddiary.org/ - practical examples To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message