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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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> $*            $@ 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< : $* <TEMP> : > $*  $#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<?> [$+]              $: <BAD> [$1]
 # pass to name server to make hostname canonical

--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED]         | 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to