From owner-freebsd-questions Wed May 29 12:47:54 2002 Delivered-To: freebsd-questions@freebsd.org Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by hub.freebsd.org (Postfix) with ESMTP id 3856637B404 for ; Wed, 29 May 2002 12:47:42 -0700 (PDT) Received: from grimoire.chen.org.nz (localhost [127.0.0.1]) by chen.org.nz (8.12.3/8.12.3) with ESMTP id g4TJkgNg010223; Thu, 30 May 2002 07:46:42 +1200 (NZST) (envelope-from jonc@grimoire.chen.org.nz) Received: (from jonc@localhost) by grimoire.chen.org.nz (8.12.3/8.12.3/Submit) id g4TJkg6Z010222; Thu, 30 May 2002 07:46:42 +1200 (NZST) Date: Thu, 30 May 2002 07:46:42 +1200 From: Jonathan Chen To: Stephen Hovey Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Sorta OT: Sendmail question Message-ID: <20020530074642.A10146@grimoire.chen.org.nz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from shovey@buffnet.net on Wed, May 29, 2002 at 07:55:13AM -0400 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 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