Problem mit Postfix Emailversand

voyager

New Member
Hallo! Das Themengebiet ist neu für mich und dies der erste Forumeintrag, aber ich versuche mal mein Glück, da ich trotz Suchmaschine & Co. allein derzeit nicht weiterkomme.

Auf einem vServer bei 1&1 (CentOS 5.7, Plesk 11.0.9 Update #27, dedizierte IP) laufen 3 Domains, welche bei 1&1 (xxx.at, xxx.eu) bzw. extern (xxx.com) registriert sind. Für die Domain xxx.com ist der vServer als Mailserver eingerichtet. Die beiden anderen Domains laufen über den 1&1 Mailserver. Die MX Einträge sind gesetzt und soweit funktioniert auch alles ganz gut.

Die MX Abfrage liefert

Code:
@linux-i05d:~> dig xxx.com MX

; <<>> DiG 9.9.1-P4 <<>> xxx.com MX
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50407
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;xxx.com.                   IN      MX

;; ANSWER SECTION:
xxx.com.            7190    IN      MX      10 mail.xxx.com.

;; ADDITIONAL SECTION:
mail.xxx.com.       7190    IN      A       87.106.xx.xx

;; Query time: 4 msec
;; SERVER: 192.168.x.x#53(192.168.x.x)
;; WHEN: Wed Nov 28 19:35:15 2012
;; MSG SIZE  rcvd: 66

bzw.

Code:
@linux-i05d:~> dig xxx.eu MX

; <<>> DiG 9.9.1-P4 <<>> xxx.eu MX
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12258
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 8

;; QUESTION SECTION:
;xxx.eu.                    IN      MX

;; ANSWER SECTION:
xxx.eu.             86400   IN      MX      10 mx01.kundenserver.de.
xxx.eu.             86400   IN      MX      10 mx00.kundenserver.de.                                              

;; ADDITIONAL SECTION:
mx01.kundenserver.de.   2879    IN      A       212.227.15.169
mx00.kundenserver.de.   2879    IN      A       212.227.15.134
mx00.kundenserver.de.   2879    IN      A       212.227.15.186
mx01.kundenserver.de.   2879    IN      A       212.227.15.150
mx00.kundenserver.de.   2879    IN      A       212.227.15.150
mx01.kundenserver.de.   2879    IN      A       212.227.15.134
mx00.kundenserver.de.   2879    IN      A       212.227.15.169
mx01.kundenserver.de.   2879    IN      A       212.227.15.186

;; Query time: 77 msec
;; SERVER: 192.168.x.x#53(192.168.x.x)
;; WHEN: Wed Nov 28 19:36:13 2012
;; MSG SIZE  rcvd: 213

Es gibt auf den Domains xxx.eu und xxx.com die gleichen Emailadressen, also m.musterm@xxx.eu und m.musterm@xxx.com. Soweit so gut.

Wenn jetzt userA@xxx.com eine Email an userB@xxx.eu senden will, kommt es zu folgendem Fehler:

Code:
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: connection established fd 129
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: master_notify: status 0
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: rewrite socket: wanted attribute: request
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: input attribute name: request
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: input attribute value: resolve
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: rewrite socket: wanted attribute: sender
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: input attribute name: sender
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: input attribute value: userA@xxx.com
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: rewrite socket: wanted attribute: address
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: input attribute name: address
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: input attribute value: userB@xxx.eu
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: rewrite socket: wanted attribute: (list terminator)
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: input attribute name: (end)
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: match_string: xxx.eu ~? localhost.com
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: match_string: xxx.eu ~? localhost
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: match_string: xxx.eu ~? localhost.localdomain
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: match_list_match: xxx.eu: no match
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: match_string: xxx.eu ~? hash:/var/spool/postfix/plesk/virtual(0,lock|fold_fix)
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: match_list_match: xxx.eu: no match
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: match_string: xxx.eu ~? hash:/var/spool/postfix/plesk/vmailbox(0,lock|fold_fix)
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: match_string: xxx.eu ~? hash:/var/spool/postfix/plesk/virtual_domains(0,lock|fold_fix)
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: match_hostname: xxx.eu ~? localhost.com
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: match_hostname: xxx.eu ~? localhost
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: match_hostname: xxx.eu ~? localhost.localdomain
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: match_list_match: xxx.eu: no match
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: maps_find: transport_maps: userB@xxx.eu: not found
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: maps_find: transport_maps: xxx.eu: not found
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: maps_find: transport_maps: .eu: not found
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: `userA@xxx.com' -> `userB@xxx.eu' -> (`plesk_virtual' `xxx.eu' `userB@xxx.eu' `1024')
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: send attr flags = 0
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: send attr transport = plesk_virtual
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: send attr nexthop = xxx.eu
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: send attr recipient = userB@xxx.eu
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: send attr flags = 1024
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: master_notify: status 1
Nov 28 01:11:28 ... postfix-local[32459]: postfix-local: from=userA@xxx.com, to=userB@xxx.eu, dirname=/var/qmail/mailnames
Nov 28 01:11:28 ... imapd: 1354061488.429357 LOGOUT, user=userA@xxx.com, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=598, sent=331, maildir=/var/qmail/mailnames/xxx.com/userA/Maildir
Nov 28 01:11:28 ... postfix-local[32459]: cannot chdir to mailname dir userA: No such file or directory
Nov 28 01:11:28 ... postfix-local[32459]: Unknown user: userB@xxx.eu
Nov 28 01:11:28 ... postfix/pipe[32458]: 57DC518C41427: to=<userB@xxx.eu>, relay=plesk_virtual, delay=0.1, delays=0.06/0.02/0/0.02, dsn=2.0.0, status=sent (delivered via plesk_virtual service)
Nov 28 01:11:28 ... postfix/qmgr[32225]: 57DC518C41427: removed
Nov 28 01:11:33 ... postfix/cleanup[32456]: rewrite stream disconnect
Nov 28 01:11:33 ... postfix/trivial-rewrite[32457]: connection closed fd 128
Nov 28 01:11:33 ... postfix/trivial-rewrite[32457]: connection closed fd 129

Die Emailadressen der Domain xxx.eu sind von außen problemlos erreichbar, nur beim Versand von xxx.com an xxx.eu tritt das Problem auf. Hier noch ein Beispiel, wenn vom Server eine Email an die Domain gmx.de gesendet wird.

Code:
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: connection established fd 129
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: master_notify: status 0
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: rewrite socket: wanted attribute: request
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: input attribute name: request
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: input attribute value: resolve
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: rewrite socket: wanted attribute: sender
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: input attribute name: sender
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: input attribute value: userA@xxx.com
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: rewrite socket: wanted attribute: address
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: input attribute name: address
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: input attribute value: userB@gmx.de
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: rewrite socket: wanted attribute: (list terminator)
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: input attribute name: (end)
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: match_string: gmx.de ~? localhost.com
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: match_string: gmx.de ~? localhost
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: match_string: gmx.de ~? localhost.localdomain
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: match_list_match: gmx.de: no match
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: match_string: gmx.de ~? hash:/var/spool/postfix/plesk/virtual(0,lock|fold_fix)
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: match_list_match: gmx.de: no match
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: match_string: gmx.de ~? hash:/var/spool/postfix/plesk/vmailbox(0,lock|fold_fix)
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: match_string: gmx.de ~? hash:/var/spool/postfix/plesk/virtual_domains(0,lock|fold_fix)
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: match_list_match: gmx.de: no match
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: match_hostname: gmx.de ~? localhost.com
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: match_hostname: gmx.de ~? localhost
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: match_hostname: gmx.de ~? localhost.localdomain
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: match_list_match: gmx.de: no match
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: maps_find: sender_dependent_default_transport_maps: userA@xxx.com: not found
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: maps_find: sender_dependent_default_transport_maps: userA: not found
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: maps_find: sender_dependent_default_transport_maps: hash:/var/spool/postfix/plesk/sdd_transport_maps(0,lock|no_regsub|fold_fix): @xxx.com = 87.106.xx.xx-:
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: mail_addr_find: userA@xxx.com -> 87.106.xx.xx-:
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: maps_find: transport_maps: userB@gmx.de: not found
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: maps_find: transport_maps: gmx.de: not found
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: maps_find: transport_maps: .de: not found
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: `userA@xxx.com' -> `userB@gmx.de' -> (`87.106.xx.xx-' `gmx.de' `userB@gmx.de' `4096')
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: send attr flags = 0
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: send attr transport = 87.106.xx.xx-
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: send attr nexthop = gmx.de
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: send attr recipient = userB@gmx.de
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: send attr flags = 4096
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: master_notify: status 1
Nov 28 01:07:22 ... imapd: 1354061242.914748 LOGOUT, user=userA@xxx.com, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=589, sent=331, maildir=/var/qmail/mailnames/xxx.com/userA/Maildir
Nov 28 01:07:23 ... postfix/smtp[32386]: CE2BA18C41427: to=<userB@gmx.de>, relay=mx01.gmx.net[213.165.67.97]:25, delay=0.71, delays=0.06/0.02/0.03/0.61, dsn=2.0.0, status=sent (250 Requested mail action okay, completed: id=0LnDLl-1T0quM0Wfl-00hJgF)
Nov 28 01:07:23 ... postfix/qmgr[32225]: CE2BA18C41427: removed
Nov 28 01:07:27 ... postfix/trivial-rewrite[32385]: connection closed fd 129

Offenichtlich gibt es einen Unterschied bei
Code:
transport_maps

Code:
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: maps_find: transport_maps: userB@xxx.eu: not found
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: maps_find: transport_maps: xxx.eu: not found
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: maps_find: transport_maps: .eu: not found
Nov 28 01:11:28 ... postfix/trivial-rewrite[32457]: `userA@xxx.com' -> `userB@xxx.eu' -> (`plesk_virtual' `xxx.eu' `userB@xxx.eu' `1024')

bzw. wenn es funktionert, dann wird
Code:
sender_dependent_default_transport_maps
verwendet

Code:
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: maps_find: sender_dependent_default_transport_maps: userA@xxx.com: not found
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: maps_find: sender_dependent_default_transport_maps: userA: not found
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: maps_find: sender_dependent_default_transport_maps: hash:/var/spool/postfix/plesk/sdd_transport_maps(0,lock|no_regsub|fold_fix): @xxx = 87.106.xx.xx-:
Nov 28 01:07:22 ... postfix/trivial-rewrite[32385]: mail_addr_find: userA@xxx.com -> 87.106.xx.xx-:

Kann mir jemand ein Tipp geben woran es liegt und was in der Konfiguration ggf. zu ändern ist?

Danke vorab...
 
Also nochmal kurz zusammengefasst:

- Die Mails an xxx.eu kommen von deinem Server aus nicht an
- xxx.eu hat sein Mailzeugs extern liegen

Wenn ich das nun soweit richtig zusammengefasst habe, dann schalte im Plesk das Mailhosting für xxx.eu aus. Danach sollte er beim Versand den MX-Record abfragen und entsprechend ausliefern, anstelle des derzeitigen lokalen Versuchs.
 
*** Gelöst ***

Nachdem das Thema lange auf Eis lag, weil es nicht wirklich störte, habe ich mich der Sache jetzt nochmals angenommen.

Um es kurz zu machen hier die Lösung:

Die Domain xxx.eu habe ich unter Plesk 11.5 auf einen anderen Webspace verschoben und dort den Emaildienst deaktiviert. Das geht unter Email -> Einstellungen ändern und Checkbox bei "E-Mail-Dienst auf Domain aktivieren" deaktivieren. Für einzelne Domains lässt sich das unter Plesk 11 ja leider nicht mehr tun, deshalb die Verschiebung auf den neuen Webspace. Alle Domains sind wie gewollt unter der gleichen IP erreichbar, aber der Mailserver versucht die Mails, welche von xxx.com zu xxx.eu gehen nicht mehr lokal zuzustellen. :D
 
Back
Top