From owner-freebsd-hackers Thu Aug 10 4:34: 4 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (wandering-wizard.cybercity.dk [212.242.44.236]) by hub.freebsd.org (Postfix) with ESMTP id 096C937BD1E for ; Thu, 10 Aug 2000 04:33:56 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id NAA14959 for ; Thu, 10 Aug 2000 13:33:54 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: hackers@freebsd.org Subject: mhn, sendmail & laptop at large... From: Poul-Henning Kamp Date: Thu, 10 Aug 2000 13:33:54 +0200 Message-ID: <14956.965907234@critter> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The only way I can get sendmail to accept emails from nhm when my laptop is InterNet challenged is by applying this patch to sendmail.cf. nhm connects to sendmail on port 127.0.0.1:25 and sendmail complains that it cannot look stuff up in DNS. The way I see it, these two checks are reversed from the logical sequence, but when I tried to explain this to Eric he said my config was "wrong somehow". Can anybody tell me the right way to make this work ? Poul-Henning --- freebsd.cf Fri Aug 4 23:33:30 2000 +++ /etc/mail/sendmail.cf Thu Aug 10 10:40:14 2000 @@ -15,9 +15,9 @@ ##### ##### SENDMAIL CONFIGURATION FILE ##### -##### built by root@flutter.freebsd.dk on Fri Aug 4 23:33:30 CEST 2000 -##### in /freebsd/src/etc/sendmail -##### using /freebsd/src/etc/sendmail/../../contrib/sendmail/cf/ as configuration include directory +##### built by root@usw2.freebsd.org on Mon Jul 31 11:32:29 GMT 2000 +##### in /usr/src/etc/sendmail +##### using /usr/src/etc/sendmail/../../contrib/sendmail/cf/ as configuration include directory ##### ###################################################################### ###################################################################### @@ -1005,6 +1005,9 @@ R $* $@ RELAY R<$*> <$*> $: $2 +# anything originating locally is ok +R$* $: $&{client_name} + # allow relaying for hosts which we MX serve R$+ < @ $* > $: < : $(mxserved $2 $) : > $1 < @ $2 > R< : $* : > $* $#error $@ 4.7.1 $: "450 Can not check MX records for recipient host " $1 @@ -1018,8 +1021,6 @@ R $+ $@ OK R<$+> $* $: $2 -# anything originating locally is ok -R$* $: $&{client_name} # check if bracketed IP address (forward lookup != reverse lookup) R [$+] $: [$1] # pass to name server to make hostname canonical -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message