From owner-freebsd-questions Wed Jan 28 05:23:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA28971 for questions-outgoing; Wed, 28 Jan 1998 05:23:39 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from federation.addy.com (federation.addy.com [207.239.68.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA28927 for ; Wed, 28 Jan 1998 05:23:33 -0800 (PST) (envelope-from fbsdlist@federation.addy.com) Received: from localhost (fbsdlist@localhost) by federation.addy.com (8.8.5/8.6.12) with SMTP id IAA20192 for ; Wed, 28 Jan 1998 08:23:24 -0500 (EST) Date: Wed, 28 Jan 1998 08:23:23 -0500 (EST) From: Cliff Addy To: questions@FreeBSD.ORG Subject: Stopping mail relaying (again) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk According to the anti-relaying stuff on sendmail.org, this will stop relaying if placed in sendmail.cf: #LOCAL_CONFIG FR-o /etc/sendmail.cf.relays #LOCAL_RULESETS Scheck_rcpt # anything terminating locally is ok R< $+ @ $=w > $@ OK R< $+ @ $=R > $@ OK # anything originating locally is ok R$* $: $(dequote "" $&{client_name} $) R$=w $@ OK R$=R $@ OK R$@ $@ OK # anything else is bogus R$* $#error $: "550 Relaying Denied" My question is: is it checking the machine name that's making the smtp connection to you or just the To: and From: headers? In other words, if I place "abc.com" into the sendmail.cf.relays file, will a user dialed into the ISP "def.com" be able to relay as long as his copy of Netscape has "joe_user@abc.com" as the return address? Or will it get rejected because sendmail sees the connection is coming from "dialup247.def.net"?