[Postfixbuch-users] said: 554 5.4.0 Error: too many hops (in reply to end of DATA command))

Tanja Moeser new_zealand at gmx.de
Fr Nov 9 14:47:14 CET 2007


Hallo da draussen, (sorry, wenn es etwas unübersichtlich wird in der Mail)

ich habe leider ein Problem mit der Auslieferung der eMails an den internen Mailserver.
Die Mails scheinen in einer Dauerschleife zwischen DMZ und internem LAN hin-und her zu wandern bis irgendwann Postfix "said: 554 5.4.0 Error: too many hops (in reply to end of DATA command))" meldet.

Hier mal meine main.cf (DMZ-Rechner): 
smtpd_banner = mail.domain1.eu ESMTP
biff = no
debug_peer_level = 4
append_dot_mydomain = no
transport_maps = hash:/etc/postfix/transport 
relay_recipient_maps = hash:/etc/postfix/relay_recipients
myhostname = proxy.local
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = domain1.eu
mydestination = proxy.local, mail.local
relayhost = 
relay_domains = domain1.eu, domain2.de
defer_transports = 
mailbox_transport = 
mynetworks = 127.0.0.0/8, 192.168.1.0/24
mailbox_command = 
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
program_directory = /usr/lib/postfix
masquerade_domains = 
disable_dns_lookups = no
default_transport = smtp
soft_bounce = no
content_filter = smtp-amavis:[127.0.0.1]:10024

master.cf:

smtp      inet  n       -       n       -       -       smtpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       -       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
	-o fallback_relay=
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache	  unix	-	-	-	-	1	scache
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix	-	n	n	-	2	pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}

smtp-amavis     unix    -       -       -       -       2       smtp
        -o smtp_data_done_timeout=1200
        -o disable_dns_lookups=yes

127.0.0.1:10025 inet    n       -       -       -       -       smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_delay_reject=no
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o strict_rfc821_envelopes=yes
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o smtpd_data_restrictions=reject_unauth_pipelining
        -o smtpd_end_of_data_restrictions=
        -o mynetworks=127.0.0.0/8
        -o smtpd_error_sleep_time=0
        -o smtpd_soft_error_limit=1001
        -o smtpd_hard_error_limit=1000
        -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks



main.cf (interner Mailserver):

smtpd_banner = mail.domain1.eu ESMTP
biff = no
append_dot_mydomain = no
inet_interface = all
myhostname = mail.local
mydestination =
relayhost = [192.168.3.2] <---IP-DMZ
mynetworks = 127.0.0.0/8, localhost, 192.168.3.2, 192.168.1.0/24, 192.168.2.0/24
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_domain, permit_sasl_authenticated, reject_unauth_destination

mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
local_recipient_maps = ldap:/etc/postfix/ldap_mbox.cf
home_mailbox = /Maildir
virtual_transport = virtual
local_transport = virtual
virtual_recipient_maps = ldap:/etc/postfix/ldap_mbox.cf
virtual_alias_maps = 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

Das verschicken klappt (ausser das meine eigenen Mails als Spam beim Empfänger landen, aber andere Baustelle ;-) ).
Das interne Mailing klappt auch.

Hier noch der Auszug aus dem Log (der eingetnliche Eintrag ist elend lang) des DMZ-Rechners:
Nov  9 14:22:28 proxy postfix/smtpd[4074]: connect from fmmailgate04.web.de[217.72.192.242]
Nov  9 14:22:29 proxy postfix/smtpd[4074]: 0F39D41C2EF: client=fmmailgate04.web.de[217.72.192.242]
Nov  9 14:22:29 proxy postfix/cleanup[4078]: 0F39D41C2EF: message-id=<334835252 at web.de>
Nov  9 14:22:29 proxy postfix/qmgr[3781]: 0F39D41C2EF: from=<new_zealand at gmx.de>, size=1328, nrcpt=1 (queue active)
Nov  9 14:22:29 proxy postfix/smtpd[4074]: disconnect from fmmailgate04.web.de[217.72.192.242]
Nov  9 14:22:32 proxy postfix/smtpd[4084]: connect from localhost[127.0.0.1]
Nov  9 14:22:32 proxy postfix/smtpd[4084]: 7166A41C2F7: client=localhost[127.0.0.1]
Nov  9 14:22:32 proxy postfix/cleanup[4078]: 7166A41C2F7: message-id=<334835252 at web.de>
Nov  9 14:22:32 proxy postfix/smtpd[4084]: disconnect from localhost[127.0.0.1]
Nov  9 14:22:32 proxy postfix/qmgr[3781]: 7166A41C2F7: from=<new_zealand at gmx.de>, size=1768, nrcpt=1 (queue active)
Nov  9 14:22:32 proxy amavis[4070]: (04070-01) Passed CLEAN, [87.139.125.198] <new_zealand at gmx.de> -> <tanja at domain2.de>, Message-ID: <334835252 at web.de>, mail_id: SaG4FBMYQwX6, Hits: 0.845, 3554 ms
Nov  9 14:22:32 proxy postfix/smtp[4080]: 0F39D41C2EF: to=<tanja at domain2.de>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.6, delays=0.06/0.01/0.01/3.6, dsn=2.6.0, status=sent (250 2.6.0 Ok, id=04070-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 7166A41C2F7)
Nov  9 14:22:32 proxy postfix/qmgr[3781]: 0F39D41C2EF: removed
Nov  9 14:22:32 proxy postfix/smtp[4085]: 7166A41C2F7: to=<tanja at domain2.de>, relay=192.168.1.7[192.168.1.7]:25, delay=0.44, delays=0.2/0.02/0.17/0.04, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 1A409D0054)
Nov  9 14:22:32 proxy postfix/qmgr[3781]: 7166A41C2F7: removed
Nov  9 14:22:32 proxy postfix/smtpd[4074]: connect from unknown[192.168.1.7]
Nov  9 14:22:32 proxy postfix/smtpd[4074]: E17AD41C2EF: client=unknown[192.168.1.7]
Nov  9 14:22:32 proxy postfix/cleanup[4078]: E17AD41C2EF: message-id=<334835252 at web.de>
Nov  9 14:22:34 proxy postfix/qmgr[3781]: 2227C41C2F7: from=<new_zealand at gmx.de>, size=5763, nrcpt=1 (queue active)
Nov  9 14:22:34 proxy postfix/smtpd[4084]: disconnect from localhost[127.0.0.1]
Nov  9 14:22:34 proxy amavis[4071]: (04071-03) Passed CLEAN, [87.139.125.198] <new_zealand at gmx.de> -> <tanja.moeser at bhd-immoserv.de>, Message-ID: <334835252 at web.de>, mail_id: xl+GVvs1M9xc, Hits: 0.845, 160 ms
Nov  9 14:22:34 proxy postfix/smtp[4080]: EF28541C2EF: to=<tanja at domain2.de>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.23, delays=0.07/0/0/0.16, dsn=2.6.0, status=sent (250 2.6.0 Ok, id=04071-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2227C41C2F7)
Nov  9 14:22:34 proxy postfix/qmgr[3781]: EF28541C2EF: removed
Nov  9 14:22:34 proxy postfix/smtp[4085]: 2227C41C2F7: to=<tanja at domain2.de>, relay=192.168.1.7[192.168.1.7]:25, delay=0.08, delays=0.06/0/0/0.02, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 67665D0054)
Nov  9 14:22:34 proxy postfix/qmgr[3781]: 2227C41C2F7: removed
Nov  9 14:22:35 proxy postfix/smtp[4085]: 7E1EE41C2F7: to=<tanja at domain2.de>, relay=192.168.1.7[192.168.1.7]:25, delay=0.07, delays=0.06/0/0/0, dsn=5.4.0, status=bounced (host 192.168.1.7[192.168.1.7] said: 554 5.4.0 Error: too many hops (in reply to end of DATA command))
Nov  9 14:22:35 proxy postfix/cleanup[4078]: 9C04541C2EF: message-id=<20071109132235.9C04541C2EF at proxy.local>
Nov  9 14:22:35 proxy postfix/qmgr[3781]: 9C04541C2EF: from=<>, size=12396, nrcpt=1 (queue active)
Nov  9 14:22:35 proxy postfix/bounce[4098]: 7E1EE41C2F7: sender non-delivery notification: 9C04541C2EF
Nov  9 14:22:35 proxy postfix/qmgr[3781]: 7E1EE41C2F7: removed
Nov  9 14:22:36 proxy postfix/smtp[4085]: 9C04541C2EF: to=<new_zealand at gmx.de>, relay=mx0.gmx.de[213.165.64.100]:25, delay=0.54, delays=0.02/0/0.21/0.31, dsn=2.6.0, status=sent (250 2.6.0 Message accepted {mx026})
Nov  9 14:22:36 proxy postfix/qmgr[3781]: 9C04541C2EF: removed

Ich habe hier auf der Liste im Archiv einen ähnlichen Eintrag entdeckt, da kam es aber zu keiner Lösung.
Die Einträge von gmx und web.de hängen damit zusammen, dass mein privater gmx-account auf einen web.de-account (von dem aus ich diese Mail geschrieben habe) weitergeleitet werden.

Vorab Danke und Gruß,
Tanja

______________________________________________________________________
XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club!		
Jetzt testen! http://produkte.web.de/club/?mc=021130




Mehr Informationen über die Mailingliste Postfixbuch-users