Postfix nimmt keine Mails an!

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
steini1980
Posts: 13
Joined: 2007-06-27 18:52
 

Postfix nimmt keine Mails an!

Post by steini1980 »

Hallo, ich habe einen SuSE 10.1 mit Confix 3 am laufen. Als MTA verwende ich Postfix mit Courier IMAP. Mails Senden und SMTP-AUTH funktionieren soweit auch ganz gut. Jedoch nimmt der Server keine Mails an, weder von außen noch lokal. Ich bekomme immer folgende Bouncemail zurück:
Hi. This is the qmail-send program at mail.gmx.net.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<test@musterfrau.de>:
72.159.195.207_does_not_like_recipient./Remote_host_said:_554_<test@musterfrau.de>:_Relay_access_denied/Giving_up_on_72.159.195.207./
Hier noch meine Postconf:
alias_maps = hash:/etc/aliases
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
home_mailbox = Maildir/
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 = $myhostname, localhost.$mydomain
myhostname = linux2.domain.com
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
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
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_domains = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual
Hier noch ein Stück vom Logfile (hoffe das ist der Part auf den es ankommt):
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: >>> END Sender address RESTRICTIONS <<<
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: >>> START Recipient address RESTRICTIONS <<<
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: generic_checks: name=permit_sasl_authenticated
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: generic_checks: name=permit_sasl_authenticated status=0
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: generic_checks: name=permit_mynetworks
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: permit_mynetworks: mail.gmx.net 213.165.64.20
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: match_hostname: mail.gmx.net ~? 127.0.0.0/8
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: match_hostaddr: 213.165.64.20 ~? 127.0.0.0/8
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: match_hostname: mail.gmx.net ~? 192.168.5.0/24
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: match_hostaddr: 213.165.64.20 ~? 192.168.5.0/24
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: match_hostname: mail.gmx.net ~? [::1]/128
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: match_hostaddr: 213.165.64.20 ~? [::1]/128
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: match_hostname: mail.gmx.net ~? [fe80::]/64
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: match_hostaddr: 213.165.64.20 ~? [fe80::]/64
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: match_list_match: mail.gmx.net: no match
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: match_list_match: 213.165.64.20: no match
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: generic_checks: name=permit_mynetworks status=0
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: generic_checks: name=reject_unauth_destination
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: reject_unauth_destination: test@musterfrau.de
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: permit_auth_destination: test@musterfrau.de
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: ctable_locate: move existing entry key test@musterfrau.de
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: NOQUEUE: reject: RCPT from mail.gmx.net[213.165.64.20]: 554 <test@musterfrau.de>: Relay access denied; from=<xxxx@gmx.de> to=<test@musterfrau.de> proto=SMTP helo=<mail.gmx.net>
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: generic_checks: name=reject_unauth_destination status=2
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: > mail.gmx.net[213.165.64.20]: 554 <test@musterfrau.de>: Relay access denied
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: < mail.gmx.net[213.165.64.20]: QUIT
Jun 27 18:52:20 linux2 postfix/smtpd[18433]: > mail.gmx.net[213.165.64.20]: 221 Bye

Hab schon tagelang gegoogelt, habe schon öfter ähnliche Probleme gefunden, jedoch nie eine Lösung - Ihr seit meine letzte Hoffnung!

Gruß
Steini
Last edited by steini1980 on 2007-06-28 16:02, edited 1 time in total.
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Postfix nimmt keine Mails an!

Post by Roger Wilco »

Steht musterfrau.de bzw. die entsprechenden E-Mail-Adressen in /etc/postfix/virtual und wurde der Hash darüber (`man postmap`) korrekt erstellt?
adjustman
Posts: 1132
Joined: 2003-03-26 23:29
Location: SA
 

Re: Postfix nimmt keine Mails an!

Post by adjustman »

Steini1980 wrote: Hier noch meine Postconf:
virtual_alias_domains = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual
sollte

Code: Select all

virtual_maps = hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains
virtual_alias_maps = hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains
heissen
steini1980
Posts: 13
Joined: 2007-06-27 18:52
 

Re: Postfix nimmt keine Mails an!

Post by steini1980 »

Dankeschön, genau das wars:-)
steini1980
Posts: 13
Joined: 2007-06-27 18:52
 

Re: Postfix nimmt keine Mails an!

Post by steini1980 »

Kommando zurück, es funktioniert leider noch nicht ganz. Wenn ich aus dem lokalen Netz eine Mail verschicke kommt Sie nun an, aber bspw. über GMX Webmail bekomme ich immer noch die Fehlermeldung:

62.159.195.200_does_not_like_recipient./Remote_host_said:_554_<test@musterfrau.de>:_Relay_access_denied/Giving_up_on_62.159.195.200./
adjustman
Posts: 1132
Joined: 2003-03-26 23:29
Location: SA
 

Re: Postfix nimmt keine Mails an!

Post by adjustman »

ohne _aktuelle_ postconf -n Ausgabe und relevante Logzeilen nicht möglich
Steini1980 wrote:Wenn ich aus dem lokalen Netz eine Mail verschicke kommt Sie nun an, aber bspw. über GMX Webmail bekomme ich
was soll das bedeuten?
steini1980
Posts: 13
Joined: 2007-06-27 18:52
 

Re: Postfix nimmt keine Mails an!

Post by steini1980 »

Also erstmal zum Netzwerk:

Es stehen mehrere Webserver in unserer DMZ hinter einem IPCop. Wenn ich von Webserver1 an Webserver2 eine Mail schicke kommt Sie an. Wenn ich vom Internet, also z.B. über GMX eine Mail schicke kommt diese nicht an. Vor deinem hinweis mit den virtual_alias_maps kam garnichts an!

Zu Postconf -n:
alias_maps = hash:/etc/aliases
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
home_mailbox = Maildir/
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 = $myhostname, localhost.$mydomain
myhostname = linux2.domain.com
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
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
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_domains = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains
Und der Logfile:
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: >>> END Sender address RESTRICTIONS <<<
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: >>> START Recipient address RESTRICTIONS <<<
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: generic_checks: name=permit_sasl_authenticated
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: generic_checks: name=permit_sasl_authenticated status=0
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: generic_checks: name=permit_mynetworks
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: permit_mynetworks: mail.gmx.net 213.165.64.20
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: match_hostname: mail.gmx.net ~? 127.0.0.0/8
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: match_hostaddr: 213.165.64.20 ~? 127.0.0.0/8
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: match_hostname: mail.gmx.net ~? 192.168.5.0/24
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: match_hostaddr: 213.165.64.20 ~? 192.168.5.0/24
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: match_hostname: mail.gmx.net ~? [::1]/128
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: match_hostaddr: 213.165.64.20 ~? [::1]/128
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: match_hostname: mail.gmx.net ~? [fe80::]/64
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: match_hostaddr: 213.165.64.20 ~? [fe80::]/64
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: match_list_match: mail.gmx.net: no match
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: match_list_match: 213.165.64.20: no match
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: generic_checks: name=permit_mynetworks status=0
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: generic_checks: name=reject_unauth_destination
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: reject_unauth_destination: test@musterfrau.de
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: permit_auth_destination: test@musterfrau.de
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: ctable_locate: move existing entry key test@musterfrau.de
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: NOQUEUE: reject: RCPT from mail.gmx.net[213.165.64.20]: 554 <test@musterfrau.de>: Relay access denied; from=<xxx@gmx.de> to=<test@musterfrau.de> proto=SMTP helo=<mail.gmx.net>
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: generic_checks: name=reject_unauth_destination status=2
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: > mail.gmx.net[213.165.64.20]: 554 <test@musterfrau.de>: Relay access denied
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: < mail.gmx.net[213.165.64.20]: QUIT
Jun 28 15:59:47 linux2 postfix/smtpd[26031]: > mail.gmx.net[213.165.64.20]: 221 Bye
adjustman
Posts: 1132
Joined: 2003-03-26 23:29
Location: SA
 

Re: Postfix nimmt keine Mails an!

Post by adjustman »

Steini1980 wrote:Es stehen mehrere Webserver in unserer DMZ hinter einem IPCop
du redest _wirklich_ von mehreren Rechnern?
Evtl. ein Firewall Problem. Hast du mal per telnet die Ports geprüft?
steini1980
Posts: 13
Joined: 2007-06-27 18:52
 

Re: Postfix nimmt keine Mails an!

Post by steini1980 »

Hallo,

ja ich rede von mehreren phys. Rechnern. Die Ports habe ich geprüft und ich lande immer dort wo ich auch hin möchte (sonst würde der Server vermutlich auch nicht mit "Relay Access Denied" antworten bzw. kein Eintrag im Logfile).

Demnach müsste es ja an der Konfiguration liegen und nicht an unserem Netzwerk.

Gruß
Steini
adjustman
Posts: 1132
Joined: 2003-03-26 23:29
Location: SA
 

Re: Postfix nimmt keine Mails an!

Post by adjustman »

ok. Die meisten Einträge in deiner Conf sind sowieso unnötig, weil default,
bzw. sinnlos (unbenutzt). Wie machst du denn smtp-auth?
Ich sehe auch keinen mynetworks Eintrag
rootsvr
Posts: 538
Joined: 2005-09-02 11:12
 

Re: Postfix nimmt keine Mails an!

Post by rootsvr »

Code: Select all

virtual_maps = hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains 
virtual_alias_maps = hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains
Oben wurden zwei Zeilen gepostet, Du hast nur eine übernommen.. ohne die Einträge in den maps geht es vermutlich auch nicht.. (allerdings kenne ich Confixx nicht)

mit einem
postmap -q "test@musterfrau.de" hash:/etc/postfix/confixx_virtualUsers
bzw. postmap -q "test@musterfrau.de" hash:/etc/postfix/confixx_localDomains
Kannst Du ja gucken ob er was findet. Tut er das nicht wird es auf jedenfall schiefgehen.


Deine postconf -n ist wirklich umfangreich.. solltest deine Config mal ausmisten. Dafür keine Authentifizierung (Sasl) Wie hast du das aufgesetzt.. Confixx richtet sowas doch normalerweise alles ein? das ist ziemlicher Crap zZ..
oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim
 

Re: Postfix nimmt keine Mails an!

Post by oxygen »

Mittlerweile ist Confixx dazu übergegangen möglichst wenig an vorhandenen Konfigurationsdateien zu verändern. Wenn SASL vor der Installation nicht eingerichtet war, ist es das danach auch nicht. Finde ich eigentlich sinnvoll. Das bietet dem Nutzer mehr Flexibiltät. Das einzige, was Confixx z.B. bei mir in die main.cf eingefügt hat, ist:

Code: Select all

## CONFIXX POSTFIX ENTRY ###

virtual_maps = hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains

### /CONFIXX POSTFIX ENTRY ###
steini1980
Posts: 13
Joined: 2007-06-27 18:52
 

Re: Postfix nimmt keine Mails an!

Post by steini1980 »

@rootsrv: Ich habe beide Zeilen wie oben eingefügt, bzw. die eine Zeile hatte Confixx bereits für mich schon eingefügt. Wieso postconf -n nur die Zeile ausgibt welche ich nachträglich eingefügt habe weiss ich allerdings nicht.
postmap -q "test@musterfrau.de" hash:/etc/postfix/confixx_virtualUsers
web1p1
postmap -q "test@musterfrau.de" hash:/etc/postfix/confixx_localDomains
Frage mich allerdings wieso der zweite postmap -q keine Rückgabe liefert.


@oxygen: Confixx hat bei mir auch nur diese eine Zeile eingefügt, Cyrus-SASL habe ich zwar per Yast installiert, allerdings noch nicht eingerichtet. Werd mich mal daran versuchen.
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Postfix nimmt keine Mails an!

Post by Roger Wilco »

Steini1980 wrote:Frage mich allerdings wieso der zweite postmap -q keine Rückgabe liefert.
Weil in der /etc/postfix/confixx_localDomains nur die Domains stehen (example.org, example.com), in /etc/postfix/confixx_virtualUsers aber die kompletten User (user1@example.org, user2@example.com).
Last edited by Roger Wilco on 2007-06-28 18:24, edited 1 time in total.
steini1980
Posts: 13
Joined: 2007-06-27 18:52
 

Re: Postfix nimmt keine Mails an!

Post by steini1980 »

Da ich beim Senden von Nachrichten eine Authentifizierung brauche (gleiche Login-Daten wie Posteingangsserver) und beim EHLO "250-AUTH PLAIN LOGIN" erhalte gehe ich aber davon aus, dass die Authentifzierung soweit richtig läuft oder?
steini1980
Posts: 13
Joined: 2007-06-27 18:52
 

Re: Postfix nimmt keine Mails an!

Post by steini1980 »

@Roger Wilco: Klingt soweit logisch, dann liegts daran also nicht
User avatar
Joe User
Project Manager
Project Manager
Posts: 11185
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: Postfix nimmt keine Mails an!

Post by Joe User »

Du kannst Dich weitestgehend nach http://www.rootforum.org/wiki/howto/gen ... er/postfix richten, lediglich ein paar Pfade und Optionen musst Du an Dein System anpassen. Backup anlegen!
steini1980
Posts: 13
Joined: 2007-06-27 18:52
 

Re: Postfix nimmt keine Mails an!

Post by steini1980 »

Hab das nach vielen Stunden endlich hinbekommen. Die Lösung war eigentlich ganz einfach, musste nur mydestination um die localDomains ergänzen:
mydestination = $myhostname, /etc/postfix/confixx_localDomains

Danke noch mal an alle beteiligten!