From owner-freebsd-questions@FreeBSD.ORG Sun Jul 20 12:33:07 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C228D37B401 for ; Sun, 20 Jul 2003 12:33:07 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CAD643F85 for ; Sun, 20 Jul 2003 12:33:07 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h6KJWu0e091574; Sun, 20 Jul 2003 14:32:56 -0500 (CDT) (envelope-from dan) Date: Sun, 20 Jul 2003 14:32:56 -0500 From: Dan Nelson To: "Kevin Kinsey, DaleCo, S.P." Message-ID: <20030720193255.GD66281@dan.emsphone.com> References: <00c801c34eed$f262e910$0441d5cc@nitanjared> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00c801c34eed$f262e910$0441d5cc@nitanjared> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: questions@freebsd.org Subject: Re: Sendmail reject non-extant hosts? RFC1123 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2003 19:33:08 -0000 In the last episode (Jul 20), Kevin Kinsey, DaleCo, S.P. said: > I'm not happy that Sendmail is allowing connections from non- > existent hosts (i.e., spammers...) > > So, how do I tell Sendmail that if a host doesn't exist, (i.e. > d3kr890d.129ddk.org) I don't want to talk to it... This works for me: http://www.sendmail.org/~ca/email/chk-810.html#810UNRESOLVIP LOCAL_RULESETS SLocal_check_rcpt # check client name: did it resolve? R$* $: < $&{client_resolve} > R $#error $@ 4.7.1 $: "450 Cannot resolve PTR record for " $&{client_addr} R $#error $@ 5.7.1 $: "550 IP name possibly forged " $&{client_name} R $#error $@ 5.7.1 $: "550 IP name lookup failed " $&{client_name} -- Dan Nelson dnelson@allantgroup.com