From owner-freebsd-questions Wed May 29 13:26: 4 2002 Delivered-To: freebsd-questions@freebsd.org Received: from buffnet4.buffnet.net (buffnet4.buffnet.net [205.246.19.13]) by hub.freebsd.org (Postfix) with ESMTP id 5771837B401 for ; Wed, 29 May 2002 13:25:55 -0700 (PDT) Received: from buffnet11.buffnet.net (buffnet11.buffnet.net [205.246.19.55]) by buffnet4.buffnet.net (8.9.3/8.8.7) with ESMTP id QAA25707; Wed, 29 May 2002 16:25:57 -0400 (EDT) (envelope-from shovey@buffnet.net) Date: Wed, 29 May 2002 16:25:38 -0400 (EDT) From: Stephen Hovey To: Jonathan Chen Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Sorta OT: Sendmail question In-Reply-To: <20020530074642.A10146@grimoire.chen.org.nz> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanx - thats basically fall thru raw code instead of the mc macro stuff so its perfect - Thanx! On Thu, 30 May 2002, Jonathan Chen wrote: > On Wed, May 29, 2002 at 07:55:13AM -0400, Stephen Hovey wrote: > > > > How can I adjust sendmail.cf to not accept incoming email from hosts > > lacking in-addr.arpa? The default is to say 'received from > > 999.999.999.999' etc (sometimes in []s). > > I dunno about cf files, but I've done it with mc files. Add the > following at the end of the .mc file: > > LOCAL_RULESETS > SLocal_check_relay > # Deny addresses which fail reverse-lookup > R[ $+ ] $| $+ $#error $@ 5.7.1 $: "550 Access denied, your host failed a reverse-lookup" > > Note: theres a before $#error. > > Cheers. > -- > Jonathan Chen | To do is to be -- Nietzsche > | To be is to do -- Sartre > | Scooby do be do -- Scooby > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message