From owner-freebsd-questions Fri Jan 16 06:22:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA16531 for questions-outgoing; Fri, 16 Jan 1998 06:22:38 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: (from jmb@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA16520; Fri, 16 Jan 1998 06:22:27 -0800 (PST) (envelope-from jmb) From: "Jonathan M. Bresler" Message-Id: <199801161422.GAA16520@hub.freebsd.org> Subject: Re: sendmail - anti-spam, relay hosts In-Reply-To: <3.0.5.32.19980115222057.02ed7e50@ccsales.com> from "Randy A. Katz" at "Jan 15, 98 10:20:57 pm" To: randyk@ccsales.com (Randy A. Katz) Date: Fri, 16 Jan 1998 06:22:27 -0800 (PST) Cc: freebsd-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 Randy A. Katz wrote: > Hello, > > I know this is not for sendmail but I always get the best answers here and > I'm using FreeBSD. > > I put in the rules to sendmail.cf for not allowing others to relay mail > through our server. I have a number of virtual web sites on the server and > each has a POP account and sends/receives email to/from the POP and to the > world (the users are allowed to use us as their SMTP host). > > As soon as I put the no relay rules in they can no longer use us as an SMTP > host. Is there a way to allow them if they are a valid POP account? you must explicitly allow the virtual websites addresses to use your machine as a relay. your anti-relay rules probably include allow mmail to/from $=w (all the names of your mahcine). define a classs, say "R", and add all the virtual website, forwards and aliases to it. the copy the "$=w" rule and chnage the copy from "$=w" to "$=R" jmb