From owner-freebsd-questions Wed Jan 28 15:36:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA17172 for questions-outgoing; Wed, 28 Jan 1998 15:36:04 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: (from jmb@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA17137; Wed, 28 Jan 1998 15:35:47 -0800 (PST) (envelope-from jmb) From: "Jonathan M. Bresler" Message-Id: <199801282335.PAA17137@hub.freebsd.org> Subject: Re: Stopping mail relaying (again) In-Reply-To: from Cliff Addy at "Jan 28, 98 05:14:10 pm" To: fbsdlist@federation.addy.com (Cliff Addy) Date: Wed, 28 Jan 1998 15:35:46 -0800 (PST) Cc: dan@dpcsys.com, questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk Cliff Addy wrote: > On Wed, 28 Jan 1998, Dan Busarow wrote: > > > On Wed, 28 Jan 1998, Cliff Addy wrote: > > > According to the anti-relaying stuff on sendmail.org, this will stop > > > relaying if placed in sendmail.cf: > > > > Use Claus Assman's rules. See http://www.beach.net/~dan for > > the URL and some notes on how the rules work. > > Like all the others, this seems to assume that I know what ip addresses > spam is coming from. I don't, my clients can be ANYWHERE. I need to > reject email based on their return or sending addresses, NOT the ip. I > need to have a file with a list of "allowed" domain names. If abc.com is > in the file, then mail to or from abc.com is allowed, REGARDLESS of > whether the sending machine is abc.com is filtering on the envelope-from address acceptable to you? the check_mail rules will do this. chewck_mail examines the "MAIL FROM:" address the sending machine is ${client_addr} and ${client_name} jmb