Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 2002 07:46:42 +1200
From:      Jonathan Chen <jonc@chen.org.nz>
To:        Stephen Hovey <shovey@buffnet.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Sorta OT:  Sendmail question
Message-ID:  <20020530074642.A10146@grimoire.chen.org.nz>
In-Reply-To: <Pine.BSF.4.05.10205290754040.5644-100000@buffnet11.buffnet.net>; from shovey@buffnet.net on Wed, May 29, 2002 at 07:55:13AM -0400
References:  <Pine.BSF.4.05.10205290754040.5644-100000@buffnet11.buffnet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <TAB> before $#error.

Cheers.
-- 
Jonathan Chen                      |      To do is to be  -- Nietzsche
<jonc@chen.org.nz>                 |      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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020530074642.A10146>