[Postfixbuch-users] Empfänger erhält Mail mehrfach, Sender bekommt 554

Andreas Winkelmann ml at awinkelmann.de
Mi Nov 21 21:47:19 CET 2007


On Mittwoch, 21. November 2007, Tanja Moeser wrote:

> ich habe hier seit heute ein ziemlich merkwürdiges Problem.
> Wenn ein Empänger eine Mail erhält, ist dieselbe Mail mehrfach im
> Posteingang?! Aber der Sender bekommt trotzdem eine "Undelivered Mail
> Returned to Sender" Nachricht mit dem Hinweis:
> <tanja.moeser at meineDomain.de>: host 127.0.0.1[127.0.0.1] said: 554 5.6.0
> Failed, id=09199-01, from MTA([127.0.0.1]:10025): 554 5.4.0 Error: too many
> hops (in reply to end of DATA command)

Du hast einen Loop konfiguriert.

> Ich nutze einen Postfix in der DMZ und einen im internen LAN.
>
> Hier die Logs -> Interner Server
> Nov 21 20:40:20 mail postfix/smtpd[3120]: connect from unknown[192.168.3.2]
> Nov 21 20:40:20 mail postfix/smtpd[3120]: 2D5ABD0054: 
> client=unknown[192.168.3.2]  
> Nov 21 20:40:20 mail postfix/cleanup[3122]: 2D5ABD0054: 
> message-id=<349251783 at web.de>  
> Nov 21 20:40:20 mail postfix/qmgr[1474]: 2D5ABD0054: 
> from=<new_zealand at gmx.de>, size=1805, nrcpt=2 (queue active) 

Eine Mail an zwei Empfänger.

> Nov 21 20:40:20 mail postfix/smtpd[3120]: disconnect 
> from unknown[192.168.3.2] 
> Nov 21 20:40:20 mail postfix/virtual[3123]: 2D5ABD0054: to=<tam at mail.local>, 
> orig_to=<tanja.moeser at meineDomain.de>, relay=virtual, delay=0.05, 
> delays=0.03/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir) 

Einer geht an virtual und wird lokal ausgeliefert.

> Nov 21 20:40:20 mail postfix/smtp[3125]: 2D5ABD0054: 
> to=<tanja.moeser at meineDomain.de>, relay=192.168.3.2[192.168.3.2]:25,
> delay=0.12, delays=0.03/0.01/0.06/0.02, dsn=2.0.0, status=sent (250 2.0.0
> Ok: queued as 7337641C408)

Einer geht in die DMZ und kommt vermutlich von dort wieder zurück.

> Nov 21 20:40:20 mail postfix/qmgr[1474]: 2D5ABD0054: removed
> Nov 21 20:40:20 mail postfix/smtpd[3120]: connect from unknown[192.168.3.2]
> Nov 21 20:40:20 mail postfix/smtpd[3120]: 772B2D0054:
> client=unknown[192.168.3.2] Nov 21 20:40:20 mail postfix/cleanup[3122]:
> 772B2D0054: message-id=<349251783 at web.de> Nov 21 20:40:20 mail
> postfix/smtpd[3120]: disconnect from unknown[192.168.3.2] Nov 21 20:40:20
> mail postfix/qmgr[1474]: 772B2D0054: from=<new_zealand at gmx.de>, size=2605,
> nrcpt=2 (queue active) Nov 21 20:40:20 mail postfix/virtual[3123]:
> 772B2D0054: to=<tam at mail.local>, orig_to=<tanja.moeser at meineDomain.de>,
> relay=virtual, delay=0.02, delays=0.02/0/0/0, dsn=2.0.0, status=sent
> (delivered to maildir) Nov 21 20:40:20 mail postfix/smtp[3125]: 772B2D0054:
> to=<tanja.moeser at meineDomain.de>, relay=192.168.3.2[192.168.3.2]:25,
> delay=0.09, delays=0.02/0/0.05/0.02, dsn=2.0.0, status=sent (250 2.0.0 Ok:
> queued as B9C8B41C408) Nov 21 20:40:20 mail postfix/qmgr[1474]: 772B2D0054:
> removed
> Nov 21 20:40:23 mail postfix/smtpd[3120]: connect from unknown[192.168.3.2]
> Nov 21 20:40:23 mail postfix/smtpd[3120]: E757DD0054:
> client=unknown[192.168.3.2] Nov 21 20:40:23 mail postfix/smtpd[3120]:
> disconnect from unknown[192.168.3.2] *snip*
>
> Log aus der DMZ (192.168.3.2)

> ---> Hier noch die main.cf aus dem LAN:
> smtpd_banner = mail.meineDomain.de ESMTP
> biff = no
> append_dot_mydomain = no
> inet_interface = all
> myhostname = mail.local
> mydestination =
> relayhost = [192.168.3.2]
> #mynetworks_style = host

> mynetworks = 127.0.0.0/8, localhost, 192.168.3.2

Was ist localhost bei Dir und wieso steht es trotz 127.0.0.0/8 dort?

> mailbox_size_limit = 0
> recipient_delimiter = +
> inet_interfaces = all

> local_recipient_maps = ldap:/etc/postfix/ldap_mbox.cf

Ist ohne mydestination ziemlicher Unsinn.

> home_mailbox = /Maildir

> virtual_transport = virtual

Das dürfte default sein und ist in der main.cf nutzlos.

> local_transport = virtual

ebenfalls Unsinnig.

> virtual_recipient_maps = ldap:/etc/postfix/ldap_mbox.cf

Das gibt es nicht.

> virtual_alias_maps = ldap:/etc/postfix/ldap_alias.cf

Was ergibt:

# postmap -q tanja.moeser at meineDomain.de ldap:/etc/postfix/ldap_alias.cf

> virtual_mailbox_maps = ldap:/etc/postfix/ldap_dir.cf
> virtual_uid_maps = ldap:/etc/postfix/ldap_uid.cf
> virtual_gid_maps = ldap:/etc/postfix/ldap_gid.cf
> virtual_mailbox_domains= ldap:/etc/postfix/ldap_domain.cf
> virtual_mailbox_base = /
> virtual_minimum_uid = 500
> virtual_mailbox_limit = 0

Bitte das nächste mal die Ausgabe von "postconf -n" - wie vermutlich bereits 
tausend mal hier erwähnt.

> --> Main.cf aus der DMZ:

-- 
	Andreas



Mehr Informationen über die Mailingliste Postfixbuch-users