Re: Artikel zu sendmail mit smtp.web.de als Relay

From: Andreas Braml <a.strich.b(at)web.de>
Date: Wed, 24 Sep 2003 17:19:35 +0200

Hallo,

danke erstmal für die schnellen Antworten, das ist ja besser als der
SuSE-Support! ;-)

> Was sagt denn deine mailer.conf und diff -u freebsd.cf sendmail.cf?

Nein, ich habe nicht aus Frust mal was anderes als sendmail probiert, deshalb
meine mailer.conf:

sendmail /usr/libexec/sendmail/sendmail
send-mail /usr/libexec/sendmail/sendmail
mailq /usr/libexec/sendmail/sendmail
newaliases /usr/libexec/sendmail/sendmail
hoststat /usr/libexec/sendmail/sendmail
purgestat /usr/libexec/sendmail/sendmail

diff -u gibt mir (leider etwas viel):

--- freebsd.cf Mon Jul 21 15:04:37 2003
+++ sendmail.cf Wed Sep 24 15:42:58 2003
@@ -17,9 +17,9 @@
 #####
 ##### SENDMAIL CONFIGURATION FILE
 #####
-##### built by root@ on Mon Jul 21 15:03:18 CEST 2003
-##### in /usr/src/etc/sendmail
-##### using /usr/src/etc/sendmail/../../contrib/sendmail/cf/ as configuration include directory
+##### built by root(at)localhost.my.domain on Wed Sep 24 15:42:55 CEST 2003
+##### in /etc/mail
+##### using /usr/share/sendmail/cf/ as configuration include directory
 #####
 ######################################################################
 #####
@@ -61,6 +61,17 @@
 
 
 
+##### $Id: masquerade_envelope.m4,v 8.9 1999/02/07 07:26:10 gshapiro Exp $ #####
+
+
+##### $Id: genericstable.m4,v 8.21 2001/03/16 00:51:26 gshapiro Exp $ #####
+
+
+
+
+
+
+
 
 
 
@@ -107,7 +118,7 @@
 CP.
 
 # "Smart" relay host (may be null)
-DS
+DSsmtp.web.de
 
 
 # operators that cannot be in local usernames (i.e., network indicators)
@@ -151,8 +162,11 @@
 # class N: domains that should not be converted to $M
 #CL root
 C{E}root
+F{G}/etc/mail/genericsdomain
+C{TrustAuthMech}GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN
 
-
+# who I masquerade as (null for no masquerading) (see also $=M)
+DMweb.de
 
 # my name for error messages
 DnMAILER-DAEMON
@@ -169,6 +183,9 @@
 # Virtual user table (maps incoming users)
 Kvirtuser hash -o /etc/mail/virtusertable
 
+# Generics table (mapping outgoing addresses)
+Kgenerics hash -o /etc/mail/genericstable
+
 # Configuration version number
 DZ8.12.9
 
@@ -523,10 +540,10 @@
 #O MailboxDatabase=pw
 
 # list of authentication mechanisms
-#O AuthMechanisms=EXTERNAL GSSAPI KERBEROS_V4 DIGEST-MD5 CRAM-MD5
+O AuthMechanisms=GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN
 
 # default authentication information for outgoing connections
-#O DefaultAuthInfo=/etc/mail/default-auth-info
+O DefaultAuthInfo=/etc/mail/default-auth-info
 
 # SMTP AUTH flags
 #O AuthOptions
@@ -714,6 +731,7 @@
 R$* < @ $=w > $* $: $1 < @ $2 . > $3
 R$* < @ $=M > $* $: $1 < @ $2 . > $3
 R$* < @ $={VirtHost} > $* $: $1 < @ $2 . > $3
+R$* < @ $=G > $* $: $1 < @ $2 . > $3
 R$* < @ $* . . > $* $1 < @ $2 . > $3
 
 
@@ -963,18 +981,44 @@
 
 SMasqHdr=93
 
+# handle generics database
+R$+ < @ $=G . > $: < $1@$2 > $1 < @ $2 . > @ mark
+R$+ < @ *LOCAL* > $: < $1@$j > $1 < @ *LOCAL* > @ mark
+R< $+ > $+ < $* > @ $: < $(generics $1 $: @ $1 $) > $2 < $3 >
+R<@$+ + $* @ $+> $+ < @ $+ >
+ $: < $(generics $1+*@$3 $@ $2 $:@$1 + $2@$3 $) > $4 < @ $5 >
+R<@$+ + $* @ $+> $+ < @ $+ >
+ $: < $(generics $1@$3 $: $) > $4 < @ $5 >
+R<@$+ > $+ < @ $+ > $: < > $2 < @ $3 >
+R< > $+ < @ $+ . > $: < $(generics @$2 $@ $1 $: $) > $1 < @ $2 . >
+R< > $+ < @ $+ > $: < $(generics $1 $: $) > $1 < @ $2 >
+R< > $+ + $* < @ $+ > $: < $(generics $1+* $@ $2 $: $) > $1 + $2 < @ $3 >
+R< > $+ + $* < @ $+ > $: < $(generics $1 $: $) > $1 + $2 < @ $3 >
+R< $* @ $* > $* < $* > $@ $>canonify $1 @ $2 found qualified
+R< $+ > $* < $* > $: $>canonify $1 @ *LOCAL* found unqualified
+R< > $* $: $1 not found
 
 # do not masquerade anything in class N
 R$* < @ $* $=N . > $@ $1 < @ $2 $3 . >
 
-R$* < @ *LOCAL* > $@ $1 < @ $j . >
+# special case the users that should be exposed
+R$=E < @ *LOCAL* > $@ $1 < @ $j . > leave exposed
+R$=E < @ $=M . > $@ $1 < @ $2 . >
+R$=E < @ $=w . > $@ $1 < @ $2 . >
+
+# handle domain-specific masquerading
+R$* < @ $=M . > $* $: $1 < @ $2 . @ $M > $3 convert masqueraded doms
+R$* < @ $=w . > $* $: $1 < @ $2 . @ $M > $3
+R$* < @ *LOCAL* > $* $: $1 < @ $j . @ $M > $2
+R$* < @ $+ @ > $* $: $1 < @ $2 > $3 $M is null
+R$* < @ $+ @ $+ > $* $: $1 < @ $3 . > $4 $M is not null
 
 ###################################################################
 ### Ruleset 94 -- convert envelope names to masqueraded form ###
 ###################################################################
 
 SMasqEnv=94
-R$* < @ *LOCAL* > $* $: $1 < @ $j . > $2
+R$+ $@ $>MasqHdr $1
 
 ###################################################################
 ### Ruleset 98 -- local part of ruleset zero (can be null) ###
@@ -1225,7 +1269,7 @@
 R$* $| RELAY $@ RELAY
 R T $+ $| $* $#error $1
 # anything else is bogus
-R$* $#error $@ 5.7.1 $: "550 Relaying denied"
+R$* $#error $@ 5.7.1 $: "550 Relaying denied. Proper authentication required."
 
 
 ######################################################################

> In einem Buch hatte ich mal ein Bild von einer alten Winchester Platte
> gesehen die an einen Datenretter geschickt wurde, nachdem der Besitzer
> aus Wut die Platte mit einer anderen Art von Winchchester behandelt hat.
> Es gab gleich mehrere Einschußlöcher.

...weshalb ich manchmal ganz froh über die hiesige Rechtslage in Sachen privater
Waffenbesitz bin.
;-)

Gruß
Andi

To Unsubscribe: send mail to majordomo.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 24 Sep 2003 - 17:20:53 CEST

search this site