[Postfixbuch-users] Bei receive_override_options Problem mit alias-lookups

Achim Altmann aa at com-gate.com
Mo Nov 10 15:54:33 CET 2003


Hallo,



Ralf Hildebrandt schrieb:
> * Achim Altmann <aa at com-gate.com>:
> 
>>Problem wenn ich
>>content_filter = smtp-amavis:[127.0.0.1]:10024
>>receive_override_options=no_address_mappings
>>in der main.cf verwende
>>was sich wie folgt im log bemerkbar macht
>>
>>ov  9 15:49:02 alpha1 postfix/smtpd[8553]: starting TLS engine
>>Nov  9 15:49:02 alpha1 postfix/smtpd[8553]: connect from  smtp.com-gate.com[80.190.226.52]
>>Nov  9 15:49:03 alpha1 postfix/smtpd[8553]: disconnect from smtp.com-gate.com[80.190.226.52]
>>Nov  9 15:49:49 alpha1 postfix/postfix-script: refreshing the Postfix mail system
>>Nov  9 15:49:49 alpha1 postfix/master[6026]: reload configuration
>>Nov  9 15:50:17 alpha1 postfix/smtpd[8613]: starting TLS engine
>>Nov  9 15:50:17 alpha1 postfix/smtpd[8613]: connect from pop.gmx.de[213.165.64.20]
>>Nov  9 15:50:17 alpha1 postfix/smtpd[8613]: 343CB1C00081: client=pop.gmx.de[213.165.64.20]
>>Nov  9 15:50:45 alpha1 postfix/smtpd[8613]: warning: 20.64.165.213.relays.visi.com: RBL lookup error: Host or domain name not 
>>found. Name service error for name=20.64.165.213.relays.visi.com type=A: Host not found, try again
>>Nov  9 15:50:45 alpha1 postfix/cleanup[8614]: 343CB1C00081: message-id=<17859.1068389417 at www20.gmx.net>
>>Nov  9 15:50:45 alpha1 postfix/nqmgr[8581]: 343CB1C00081: from=<kubinek at gmx.de>, size=966, nrcpt=1 (queue active)
>>Nov  9 15:50:45 alpha1 postfix/smtpd[8613]: disconnect from pop.gmx.de[213.165.64.20]
>>Nov  9 15:50:46 alpha1 postfix/smtpd[8624]: starting TLS engine
>>Nov  9 15:50:46 alpha1 postfix/smtpd[8624]: connect from localhost[127.0.0.1]
>>Nov  9 15:50:46 alpha1 postfix/smtpd[8624]: 3E1481C00082: client=localhost[127.0.0.1]
>>Nov  9 15:50:46 alpha1 postfix/cleanup[8614]: 3E1481C00082: message-id=<17859.1068389417 at www20.gmx.net>
>>Nov  9 15:50:46 alpha1 postfix/nqmgr[8581]: 3E1481C00082: from=<kubinek at gmx.de>, size=1661, nrcpt=1 (queue active)
>>Nov  9 15:50:46 alpha1 postfix/smtp[8621]: 343CB1C00081: to=<postmaster at com-gate.com>, relay=127.0.0.1[127.0.0.1], delay=29, status=sent (250 2.6.0 Ok, id=05982-03, from MTA: 250 Ok: queued as 3E1481C00082)
>>Nov  9 15:50:46 alpha1 postfix/smtpd[8624]: disconnect from localhost[127.0.0.1]
>>Nov  9 15:50:46 alpha1 postfix/pipe[8628]: 3E1481C00082: to=<postmaster at com-gate.com>, relay=cyrus, delay=0, status=bounced (data format error. Command output: postmaster: Mailbox does not exist )
>>Nov  9 15:50:46 alpha1 postfix/cleanup[8614]: 59ECE1C00081: message-id=<20031109145046.59ECE1C00081 at smtp.com-gate.com>
>>Nov  9 15:50:46 alpha1 postfix/nqmgr[8581]: 59ECE1C00081: from=<>, size=3480, nrcpt=1 (queue active)
>>Nov  9 15:50:46 alpha1 postfix/smtp[8636]: 59ECE1C00081: to=<kubinek at gmx.de>, relay=mx0.gmx.de[213.165.64.100], delay=0, 
>>status=sent (250 {mx007-rz3} Message accepted)
> 
> 
> Wo ist jetzt das Problem?
> Die Mailbox postmaster existiert nicht in cyrus
> 
Ich habe die mail ja nich an postmaster gesendet sondern an 
postmaster at com-gate.com und die existiert.
wenn ich den eintrag in der main.cf rausnehme dann funzt es ja nur wird 
mir dann das x-original-to überschrieben wenn die mail weitergeleitet 
wird und mit dem eintrag receive_override_options=no_address_mappings in 
der main.cf soll das angeblich verhindert werden.
Habe dies auch schon unter postfix.org gepostet und dort wurde ich auf 
diesen eintrag hingewiesen und mir empfohlen dass ich doch auf das 
akuelle snapshot updaten solle. Weisst Du noch ?

> 
>>ich verwende mysql-lookups die zuvor jedenfalls funktionierten
>>hier ein auszug aus postconf -n
>>mydestination = $myhostname, localhost.localdomain, localhost.$mydomain, 
>>mysql:/etc/postfix/mysql-mydestination.cf
>>sender_canonical_maps = mysql:/etc/postfix/mysql-canonical.cf
>>virtual_alias_maps = hash:/etc/postfix/virtual 
>>mysql:/etc/postfix/mysql-virtual.cf
> 
> 
> D.h. diese werden nicht verwendet wegen
> receive_override_options=no_address_mappings
> 
> 
>>Weiss jemand Rat ?
> 
> 
> Warum nutzt DU receive_override_options=no_address_mappings in main.cf
> und nicht in master.cf?

weil inter FILTER_README folgendes steht
To enable content filtering in this manner, specify in main.cf:

     /etc/postfix/main.cf:
         content_filter = scan:localhost:10025
         receive_override_options = no_address_mappings

The first line causes Postfix to add one extra content filtering
record to each incoming mail message, with content scan:localhost:10025.
The content filtering records are added by the smtpd, pickup and
qmqpd servers.

The second line disables address mapping before the content filter,
so that the content filter sees the original mail addresses instead
of the result of virtual alias expansion, canonical mapping, address
masquerading, etc.

Und mir wurde in der postfix.org mailinglist empfohlen den eintrag 
receive_override_options vor dem content_filter zu setzen.


Ich habe es allerdings auch schon in der master.cf probiert
ungefähr so
  /etc/postfix/master.cf:
         localhost:10025     inet  n      -      n      -      10      smtpd
             -o content_filter=
             -o 
receive_override_options=no_unknown_recipient_checks,no_header_body_checks,no_address_mappings

hat aber auch nur Probleme gemacht.

Wenn ich es nochmals von neuem probieren soll also step by step dann gerne

Hier nochmals kurz mein Problemfall

Ich sende eine mail an postmaster at com-gate.com dort ist ein filter 
installiert der die mail an z.B 138_postmaster.com-gate.com at sms.in 
weitersendet , spool at sms.in hat einen catch_all @sms.in und nimmt die 
mail also an. Nur wird der header dann so umgeschrieben das nicht der 
ursprüngliche empfäger drinn steht sondern nun der spool at sms.in.
Und dieses umschreiben möchte/muss ich verhindern.
Ohne content_filter hat es ja auch funktioniert.

Gruss und danke schonmal

Achim




Mehr Informationen über die Mailingliste Postfixbuch-users