From owner-freebsd-questions Sat May 17 14:31:14 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA12947 for questions-outgoing; Sat, 17 May 1997 14:31:14 -0700 (PDT) Received: from cedb.dpcsys.com (cedb.DPCSYS.com [209.25.4.3]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA12936 for ; Sat, 17 May 1997 14:31:11 -0700 (PDT) Received: from localhost (dan@localhost) by cedb.dpcsys.com (8.8.5/8.8.2) with SMTP id VAA20323; Sat, 17 May 1997 21:31:02 GMT Date: Sat, 17 May 1997 14:31:01 -0700 (PDT) From: Dan Busarow To: Shawn Ramsey cc: questions@FreeBSD.ORG Subject: Re: smtp server? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sat, 17 May 1997, Shawn Ramsey wrote: > Does it matter where the "F{LocalIP} /etc/LocalIP options goes? I have > this, and it still disallows everyone to use relay...Including the local > machine! :( It needs to come before check_rcpt and outside of any other rule. Put it immediately before Scheck_rcpt like the example. F{LocalIP} /etc/LocalIP Scheck_rcpt R$+ $: $(dequote "" $&{client_addr} $) $| $1 R0 $| $* $@ ok no client addr: directly invoked R$={LocalIP}$* $| $* $@ ok from here LocalIP allows a lot of short cuts in the rest of the rule, basically short circuiting it if the machine is local. It's very important to making this version work. Remember to include 127.0.0 Dan -- Dan Busarow 714 443 4172 DPC Systems / Beach.Net dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82