Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jun 2002 22:23:15 -0400
From:      "Dan Langille" <dan@langille.org>
To:        "Jeremy C. Reed" <reed@reedmedia.net>
Cc:        chat@freebsd.org
Subject:   Re: postfix: stopping spam sent to user@host.example.org
Message-ID:  <20020604022415.645D23F3A@bast.unixathome.org>
In-Reply-To: <Pine.LNX.4.43.0205311238580.14075-100000@pilchuck.reedmedia.net>
References:  <20020531193427.DE4BC3F35@bast.unixathome.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <dan@langille.org>; Sat,  1 Jun 2002 22:49:18 -0400 (EDT)
From: Home Opportunities <homebizops@hotmail.com>
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 <homebizops@hotmail.com>
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




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