PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Postfix loops back to myself Fehler



Dolphon
28.04.08, 22:06
Hi,

ich habe angefangen auf meinem V-Server Postfix+mysql für virtuelle Domainen + Dovecot zu installieren und zu konfigurieren. Jetzt beim testen mit "telnet localhost 25" bekomme ich beim Zustellen der virtuellen Mail immer die Fehlermeldung "loops back to myself" in den Logs. E-mails die nach extern gehen, werden einwandfrei versenden.
Irgendwo habe ich wohl einen kleinen Fehler gemacht. Kann diesen aber leider nicht finden.

Nun die einzelnen Configfiles:

/etc/hosts


127.0.0.1 zzzzz.stratoserver.net zzzzz localhost localhost.localdomain
81.169.xxx.xxx mail.xyx.de mail


/etc/postfix/main.cf



inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
virtual_alias_domains = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
mydomain = xyx.de
myhostname = mail.xyx.de
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains =
mydestination = $myhostname, $mydomain, 81.169.xxx.xxx, localhost.$mydomain.
defer_transports =
mynetworks_style = subnet
disable_dns_lookups = no
relayhost =
mailbox_command =
mailbox_transport =
strict_8bitmime = no
disable_mime_output_conversion = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
virtual_mailbox_maps=mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf

cane
29.04.08, 00:40
Ich tippe spontan drauf das irgendeine Domain in "virual alias maps" und mydestination steht was IMO nicht sein darf.

--> Wie sehen die "virtual alias maps" in der mySQL Datenbank aus?

mfg
cane

Dolphon
29.04.08, 05:40
Hier einmal der Inhalt aller Tabellen:

view_alias
email destination
john@xyx.de john@xyx.de
john@xyx.de zzzzz@bhbh.de

view_user
email password
john@xyx.de 14cbfb845af1f030e372b1cb9275e6dd

virtual_aliases
id domain_id source destination
1 1 john john@xyx.de
2 1 john zzzzz@bhbh.de

virtual_domains
id name
1 xyx.de

virtual_users
id domain_id user password
1 1 john 14cbfb845af1f030e372b1cb9275e6dd

cane
29.04.08, 11:19
Dann schau mal bitte ob xyz.de auch in der main.cf auftaucht.
Das wäre dann IMO der Fehler.

mfg
cane

Dolphon
29.04.08, 12:00
Diese 3 Parameter enthalten die Domaine xyx.de


mydomain = xyx.de
myhostname = mail.xyx.de
mydestination = $myhostname, $mydomain, 81.169.xxx.xxx, localhost.$mydomain.

Muss ich diese auskommentieren??

cane
29.04.08, 22:04
IMO darf mydomain nicht in virtual_domains enthalten sein, lies aber besser nochmal nach.

mfg
cane

Dolphon
30.04.08, 12:10
Zu deiner Aussage habe ich nichts gefunden.
Was ich aber gefunden habe, ist das mydomain sowie die virtualle domains nicht in mydestination stehen dürfen.

Hiermal meine abgeänderte main.cf.
Allerdings immernoch mit dem selben Fehler.


inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
#virtual_alias_domains = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
#mydomain = xyx.de
myhostname = mail.xyx.de
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains =
mydestination = localhost
defer_transports =
mynetworks_style = subnet
disable_dns_lookups = no
relayhost =
mailbox_command =
mailbox_transport =
strict_8bitmime = no
disable_mime_output_conversion = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
smtp_use_tls = no
#alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
virtual_mailbox_maps=mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf

cane
30.04.08, 14:17
Zu deiner Aussage habe ich nichts gefunden.

Probiers doch einfach mal aus...

mfg
cane

Dolphon
30.04.08, 17:59
So habe es einmal probiert, und ein komplett andere Domain eingetragen auf beiden Seiten.
Leider immernoch mitdem selben Resultat.

jockelicke
30.04.08, 18:09
Hi,

kannst Du mal die Ausgabe von postconf -n posten?

MfG
jockelicke

Dolphon
30.04.08, 19:07
biff = no
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
defer_transports =
disable_dns_lookups = no
disable_mime_output_conversion = no
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
message_size_limit = 10240000
mydestination = localhost
myhostname = hhhhhhh.stratoserver.net
mynetworks_style = subnet
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = no
smtp_use_tls = no
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_use_tls = no
strict_8bitmime = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
virtual_gid_maps = static:5000
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_transport = dovecot
virtual_uid_maps = static:5000

jockelicke
30.04.08, 19:17
Hi,
versuch bitte mal:

mydestination = $myhostname localhost.$mydomain
mydomain =
myhostname = Hostname ohne Domain

und wenn das nicht geht, dann bitte die Ausgabe des Logfiles posten.

MfG
jockelicke

undefined
30.04.08, 19:48
Schalte bitte die Debugging Optionen hoch werfe einen Blick in die /var/log/mail*
Bei solchen fehlern gibt es zu 100 % unter Postfix die entsprechende Meldung ;)

Dolphon
30.04.08, 19:50
#mydomain =
müsste ich auskommentieren wegen Fehlermeldung:

fatal: bad string length 0 < 1: mydomain =


Apr 30 20:47:34 h1387332 postfix/smtpd[24543]: connect from h1387332.stratoserver.net[127.0.0.1]
Apr 30 20:48:05 h1387332 postfix/smtpd[24543]: 2AF761DC0E66: client=h1387332.stratoserver.net[127.0.0.1]
Apr 30 20:48:10 h1387332 postfix/cleanup[24554]: 2AF761DC0E66: message-id=<20080430184805.2AF761DC0E66@h1387332>
Apr 30 20:48:10 h1387332 postfix/qmgr[24531]: 2AF761DC0E66: from=<steve@xmailing.de>, size=350, nrcpt=2 (queue active)
Apr 30 20:48:10 h1387332 postfix/smtp[25809]: 2AF761DC0E66: to=<john@xmailing.de>, relay=none, delay=18, delays=18/0.02/0/0, dsn=5.4.6, status=bounced (mail for xmailing.de loops back to myself)
Apr 30 20:48:10 h1387332 postfix/smtp[25808]: 2AF761DC0E66: to=<dolphon@gmx.de>, orig_to=<john@xmailing.de>, relay=mx0.gmx.de[213.165.64.100]:25, delay=18, delays=18/0.01/0.1/0.2, dsn=5.7.1, status=bounced (host mx0.gmx.de[213.165.64.100] said: 550-5.7.1 {mx071} Sorry, your helo has been denied. 550 5.7.1 ( http://portal.gmx.net/serverrules ) (in reply to RCPT TO command))
Apr 30 20:48:10 h1387332 postfix/cleanup[24554]: D8B381DC0E6A: message-id=<20080430184810.D8B381DC0E6A@h1387332>
Apr 30 20:48:10 h1387332 postfix/qmgr[24531]: D8B381DC0E6A: from=<>, size=2578, nrcpt=1 (queue active)
Apr 30 20:48:10 h1387332 postfix/bounce[25810]: 2AF761DC0E66: sender non-delivery notification: D8B381DC0E6A
Apr 30 20:48:10 h1387332 postfix/qmgr[24531]: 2AF761DC0E66: removed
Apr 30 20:48:10 h1387332 postfix/smtp[25809]: D8B381DC0E6A: to=<steve@xmailing.de>, relay=none, delay=0.02, delays=0.01/0/0/0, dsn=5.4.6, status=bounced (mail for xmailing.de loops back to myself)
Apr 30 20:48:10 h1387332 postfix/qmgr[24531]: D8B381DC0E6A: removed
Apr 30 20:48:12 h1387332 postfix/smtpd[24543]: disconnect from h1387332.stratoserver.net[127.0.0.1]

Bevor meinen Änderungen hat er die Mail nach extern weggeschickt. Und nun nicht mehr.

undefined
30.04.08, 19:53
Und was steht hier ? ;-)

e>, relay=none, delay=18, delays=18/0.02/0/0, dsn=5.4.6, status=bounced (mail for <xxxxxxxxxx>.de loops back to myself)

Dolphon
30.04.08, 19:54
Der Fehler, welchen ich weiter oben bereits erwähne. (Steht im Betreff)
Um den geht es mir ja, weiß nicht wie ich diesen behoben bekomme.

undefined
30.04.08, 19:56
PS: Keiner Akzeptiert localhost ;)


################# Netzwerk #################
myhostname = smtp.xmailing.de
mydomain = xmailing.de
# myorigin = xmailing.de
inet_protocols = all
inet_interfaces =
127.0.0.1
81.169.137.67

mydestination = $mydomain
localhost.$mydomain
mail.$mydomain

mynetworks_style = subnet

mynetworks =
81.169.137.67
127.0.0.0/8

Mal frei ohne testen.

Dolphon
30.04.08, 20:28
Danke für die deine Hilfe.

So sehen jetzt die Einträge in der main.cf aus:


mydestination = $mydomain, localhost.$mydomain, mail.$mydomain
myhostname = mail
mydomain = xmailing.de
mynetworks = 127.0.0.0/8, 81.169.137.67
mynetworks_style = subnet
inet_interfaces = 127.0.0.1, 81.169.137.67
inet_protocols = all



Folgende Fehlermeldung bekomme ich nun. Er sucht am falschen Ort nach dem Alias.


Apr 30 21:20:32 h1387332 postfix/local[1345]: warning: lookup john, NIS domain stratoserver.net, map mail.aliases: internal yp server or client error
Apr 30 21:20:32 h1387332 postfix/local[1345]: 3606A1DC0E6C: to=<john@xmailing.de>, relay=local, delay=21, delays=21/0.01/0/0.01, dsn=4.3.0, status=deferred (alias database unavailable)

undefined
01.05.08, 08:01
Dann erstelle die aliasmap (siehe Postfix postalias) und sorge dafür das deine DNS Auflösungen stimmen. ;)