Hallo allerseits, kann ich sendmail so konfigurieren, daß eine Domain wirklich komplett "verborgen" wird, also auch im Received Header nicht die interne Struktur des Netzes abzulesen ist? Bisher arbeite ich mit folgender Konfig: include(`../m4/cf.m4') VERSIONID(`jetsys.de V1.0')dnl OSTYPE(linux)dnl MASQUERADE_AS(jetsys.de) MASQUERADE_DOMAIN(jetsys.de) define(`confDEF_USER_ID', `daemon:daemon')dnl define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl define(`QUEUE_DIR', `/var/mqueue')dnl define(`confMIME_FORMAT_ERRORS', `False')dnl define(`confUSE_ERRORS_TO', `True')dnl define(`confMAX_HOP', `30')dnl define(`confTRUSTED_USERS', `news uucp mdom wwwrun fnet')dnl define(`SMART_HOST', `relay:mailto.btx.dtag.de')dnl # t-online SMTP Server define(`confCON_EXPENSIVE', `True')dnl # Verteilen ist teuer define(`confTO_QUEUERETURN', `3d')dnl # Nach 3 Tagen zurueck define(`confTO_QUEUEWARN', `1d')dnl # Nach 1 Tage Warnung define(`confUSERDB_SPEC', `/etc/userdb.db')dnl # Adresskorrektur define(`confBIND_OPTS', `-DNSRCH -DEFNAMES')dnl # define(`SMTP_MAILER_FLAGS', `e')dnl # smtp ist teuer define(`confCONNECTION_RATE_THROTTLE', `2')dnl # Max. 2 Conn/S define(`confMAX_DAEMON_CHILDREN', `4')dnl # Max. 5 Childs define(`confQUEUE_LA', `4')dnl # Ab Load 4 in die Queue define(`confREFUSE_LA', `6')dnl # Ab Load 6 ablehnen FEATURE(local_procmail)dnl FEATURE(use_cw_file)dnl # Cnames fuer localhost FEATURE(nodns)dnl # Kein eigener Nameserver FEATURE(nocanonify)dnl # Beim Senden DNS nicht benutzen FEATURE(nouucp)dnl # Wir benutzen kein UUCP FEATURE(masquerade_envelope) FEATURE(masquerade_entire_domain) FEATURE(mailertable,hash /etc/mailertable.db) MAILER(local)dnl MAILER(procmail)dnl MAILER(smtp)dnl MAILER(uucp)dnl MAILER(ftn)dnl MAILER(ffx)dnl MAILER(fax)dnl Krewrite hash -o /etc/rewrite.db # Map for `LOCAL_RULE_3' rewrite rules LOCAL_CONFIG LOCAL_RULE_3 # Rewrite addresses according to rewrite.db map R$* < @ $* > $* $: $1 < @ $(rewrite $2 $@ %1 $: $2 $) > $3 LOCAL_NET_CONFIG Verschicke ich jetzt eine Mail von Host tekener (daolin ist der Mailserver), so taucht der Name tekener im Received Header und der Message-ID auf. An der Message ID ist wohl nicht viel zu machen, die wurde von Outlook Express gesetzt. Aber könnte man zumindest im Received Header den Name des postenden Hosts eliminieren? $rSMTP $stekener $_tekener.jetsys.de [192.168.9.2] S<js@daolin.jetsys.de> RPFD:<js@boom.lip.eunet.de> H?P?Return-Path: <js@jetsys.de> HReceived: from tekener (tekener.jetsys.de [192.168.9.2]) by daolin.jetsys.de (8.8.5/8.8.5) with SMTP id PAA25254 for <js@boom.lip.eunet.de>; Sun, 10 Jan 1999 15:41:12 +0100 H?x?Full-Name: Jörg Spilker HMessage-ID: <000301be3ca7$45341a00$0209a8c0@tekener.jetsys.de> HFrom: "=?iso-8859-1?Q?J=F6rg_Spilker?=" <js@jetsys.de> HTo: <js@boom.lip.eunet.de> HSubject: Test HDate: Sun, 10 Jan 1999 15:41:11 +0100 HMIME-Version: 1.0 HContent-Type: text/plain; charset="iso-8859-1" HContent-Transfer-Encoding: 7bit Mfg Jörg Spilker -- Um aus der Liste ausgetragen zu werden, eine Mail an majordomo@suse.com schicken, mit dem Text: unsubscribe suse-linux
On Sun, Jan 10, 1999 at 03:52:23PM +0100, Joerg Spilker wrote:
kann ich sendmail so konfigurieren, daß eine Domain wirklich komplett "verborgen" wird, also auch im Received Header nicht die interne Struktur des Netzes abzulesen ist?
Ja, das geht. Dafuer sind aber noch einige kleine Klimmzuege notwendig. Schau dir mal die FAQ zu Sendmail an und beschaeftige dich mit dem Thema virtuelle Domain. Voraussetzung ist im Regelfall der Einsatz eines eigenen DNS, sonst wird es recht komplex.
LOCAL_RULE_3 # Rewrite addresses according to rewrite.db map R$* < @ $* > $* $: $1 < @ $(rewrite $2 $@ %1 $: $2 $) > $3
Das muss noch etwas ausgebaut werden, so dass sendmail fuer lokale Adressen keine Domain anhaengt und die hosts akzeptiert. hier ein Auszug aus meiner sendmail.mc LOCAL_RULE_0 # Use mailboxtable-database: # key value meaning # ======== ==== ======================== # x@d u x@d -> u # d u unmatched_user@d -> u # @a b u@a -> u@b R$+ < @ $+ . > $: $1 < @ $2 > . R$+ < @ $+ > $* $: $(mbt $1@$2 $: $1 < @ $2 > $3 $) R$+ < @ $+ > $* $: $(mbt $2 $: $1 < @ $2 > $3 $) R$+ < @ $+ > $* $: $1 < @ $(mbt @$2 $: $2 $) > $3 R$+ < @ $+ @ $+ > $* $: $2 < @ $3 > $4 RERROR $* $#error $: $1 R$+ < @ $+ > . $: $1 < @ $2 . > LOCAL_RULE_3 # local SMTP hosts are canonical R$* < @ $=S > $* $: $1 < @ $2 .$m. > $3 R$* < @ $=S . $m > $* $: $1 < @ $2 .$m. > $3 # Handle adresses in local domain R$* < @ $* $m > $* $: $1 < @ $2 $m. > $3 LOCAL_NET_CONFIG # Mail to domain only is local R$+ < @ $=m . > $#local $: $1
Verschicke ich jetzt eine Mail von Host tekener (daolin ist der Mailserver), so taucht der Name tekener im Received Header und der Message-ID auf. An der Message ID ist wohl nicht viel zu machen, die wurde von Outlook Express gesetzt. Aber könnte man zumindest im Received Header den Name des postenden Hosts eliminieren?
Den Hostnamen sucht sich sendmail ueber resolver. Wenn du einen anderen Namen verwenden moechtest, dann muss das in sendmail.cf explizit definiert werden. # my official domain name # ... define this only if sendmail cannot automatically determine your domain Djx23.st-wendel.de Mario -- Um aus der Liste ausgetragen zu werden, eine Mail an majordomo@suse.com schicken, mit dem Text: unsubscribe suse-linux
participants (2)
-
mmaureraks@st-wendel.de
-
spilker@t-online.de