Sendmail ohne DNS

Manchmal braucht man einen Sendmail der ohne DNS leben kann.
Da echte Männer[tm] das *.cf file editieren und mit *.mc nix anfangen
können; hier nun wie es gemacht wird.


Los gehts, ohne Umschweife. Hier die Änderung die im *.cf file gemacht werden
müssten per ‚diff -u‘ extrahiert

--- weasel.futzelnet.de.cf	Tue Jun  6 11:45:45 2006
+++ weasel.futzelnet.de.cf_ohnedns	Tue Jun  6 11:41:45 2006
@@ -17,7 +17,7 @@
#####
#####		SENDMAIL CONFIGURATION FILE
#####
-##### built by root@weasel.futzelnet.de on Mon May 31 20:02:25 CEST 2004
+##### built by root@weasel.futzelnet.de on Tue Jun 6 11:41:45 CEST 2006
##### in /etc/mail
##### using /usr/share/sendmail/cf/ as configuration include directory
#####
@@ -61,6 +61,13 @@

+#####  $Id: accept_unresolvable_domains.m4,v 8.10 1999/02/07 07:26:07 gshapiro Exp $  #####
+
+
+#####  $Id: nocanonify.m4,v 8.12 1999/08/28 00:42:01 ca Exp $  #####
+
+
+

@@ -124,8 +131,6 @@
C{Accept}OK RELAY

-# Resolve map (to check if a host exists in check_mail)
-Kresolve host -a -T
C{ResOk}OKR

@@ -696,17 +701,17 @@

# if really UUCP, handle it immediately

-# try UUCP traffic as a local address
-R$* < @ $+ . UUCP > $*		$: $1 < @ $[ $2 $] . UUCP . > $3
-R$* < @ $+ . . UUCP . > $*	$@ $1 < @ $2 . > $3

# hostnames ending in class P are always canonical
R$* < @ $* $=P > $*		$: $1 < @ $2 $3 . > $4
R$* < @ $* $~P > $*		$: $&{daemon_flags} $| $1 < @ $2 $3 > $4
-R$* CC $* $| $* < @ $+.$+ > $*	$: $3 < @ $4.$5 . > $6
-R$* CC $* $| $*			$: $3
-# pass to name server to make hostname canonical
-R$* $| $* < @ $* > $*		$: $2 < @ $[ $3 $] > $4
+# pass to name server to make hostname canonical if in class {Canonify}
+R$* $| $* < @ $* $={Canonify} > $*	$: $2 < @ $[ $3 $4 $] > $5
+# pass to name server to make hostname canonical if requested
+R$* c $* $| $* < @ $* > $*	$: $3 < @ $[ $4 $] > $5
+R$* $| $* < @ $+ . > $*		$: $2 < @ $3 . > $4
+# add a trailing dot to qualified hostnames so other rules will work
+R$* $| $* < @ $+.$+ > $*	$: $2 < @ $3.$4 . > $5
R$* $| $*			$: $2

# local host aliases and pseudo-domains are always canonical
@@ -1157,9 +1162,7 @@
# handle non-DNS hostnames (*.bitnet, *.decnet, *.uucp, etc)
R $* < @ $* $=P >	$:  $1 < @ $2 $3 >
R $* < @ $j >	$:  $1 < @ $j >
-R $* < @ $+ >	$:  $) > $1 < @ $2 >
-R> $* < @ $+ >
-			$: < $2> $3 < @ $4 >
+R $* < @ $+ >	$:  $1 < @ $2 >		... unresolvable OK

# check sender address: user@address, user@, address
R< $+> $+ < @ $* >	$: @< $1> < $2 < @ $3 >> $|

Das sollte funktionieren. (Laut Versuchskanninchen. 😉 )