Empfangen endet in 554: Relay access denied (state 14)

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
markusb
Posts: 3
Joined: 2009-05-24 18:54
 

Empfangen endet in 554: Relay access denied (state 14)

Post by markusb »

Hallo,

ich habe das Problem, dass auf meinem Server mehrere Domains hinterlegt sind.
Als Hauptdomain (auf diese läuft auch der Server nutze ich domain1.de).

Ich habe Postfix so konfiguriert, dass per Postfixadmin mehrer Domains verwaltet werden können. Hier nutze ich auch Domain2.de.

Schicke ich eine Mail von Extern an markus@domain1.de funktioniert dies wunderbar.
Von Extern an markus@domain2.de funktioniert nicht.

Intern von markus@domain1.de an markus@domain2.de gibt es keine Probleme, auch umgekehrt funktioniert es wunderbar.
Genauso erreiche Mails von markus@domain1.de und markus@domain2.de auch externe Adressen.

Meine /etc/postfix/main.cf

Code: Select all

broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 1
default_destination_concurrency_limit = 10
home_mailbox = .maildir/
html_directory = /usr/share/doc/postfix-2.5.5/html
inet_interfaces = all
inet_protocols = ipv4, ipv6
local_destination_concurrency_limit = 10
local_recipient_maps = $virtual_mailbox_maps
local_transport = virtual
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = domain1.de
myhostname = name.domain1.de
mynetworks = 127.0.0.0/8 ip.adres.se.0/24 [::1]/128 [ipv6:adresse::]/64
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.5.5/readme
relay_domains = proxy:pgsql:/etc/postfix/pgsql/relay-domains.cf
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_bind_address6 = ipv6:adresse::1
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_client_connection_count_limit = 100
smtpd_client_connection_rate_limit = 30
smtpd_recipient_restrictions = permit_sasl_authenticated,       permit_mynetworks,      reject_unknown_sender_domain,   reject_invalid_hostname,        reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/tls/cacert.pem
smtpd_tls_cert_file = /etc/postfix/tls/newcert.pem
smtpd_tls_key_file = /etc/postfix/tls/newkey.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 450
virtual_alias_maps = proxy:pgsql:/etc/postfix/pgsql/virtual-alias-maps.cf
virtual_gid_maps = static:1001
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = proxy:pgsql:/etc/postfix/pgsql/virtual-domains.cf
virtual_mailbox_maps = proxy:pgsql:/etc/postfix/pgsql/virtual-mailbox-maps.cf
virtual_uid_maps = static:1000
Interessant an der ganzen Geschichte ist, das ich im Logfile nicht einmal einen Fehler bekomme. Es scheint also so, als wäre die Mail nie gekommen.
Mein bind9 Eintrag für die Domain2:

Code: Select all

$TTL 1D
@       IN      SOA     dns1.domain1.de.        root    (
                2009250401      ;serial
                3h              ;refresh after 3h
                1h              ;retry after 1h
                1w              ;expire after 1d
                1d)             ;minimum ttl of 1d

        IN      NS      dns1.domain1.de.
        IN      NS      ns1.domain.de.

        IN      MX      10      mail.domain1.de.

;IPv6
domain2.de.          IN      AAAA    ipv6:adresse::1
hostname                    IN      AAAA    ipv6:adresse::1

;IPv4
domain2.de.          IN      A       ip.v4.addr.esse
hostname                    IN      A       ip.v4.addr.esse

www                     IN      CNAME   hostname
Ich hoffe hier kann mir jemand dazu helfen. Sämtliche Internetrecherchen blieben leider erfolglos, und auch die MAN-Pages haben nicht zum gehofften Erfolg geführt.
oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim
 

Re: Empfangen endet in 554: Relay access denied (state 14)

Post by oxygen »

Da domain1.de deine myhostname Domain zu sein scheint, ist es klar dass es dort immer funktioniert. Immer im Sinne, ohne deine PostgreSQL Datenbank. Vermutlich liegt dort der Fehler irgendwo. Entweder funktioniert die Anbindung gar nicht, oder die virtual-domains ist irgendwie kaputt/falsch.
User avatar
mattis
Posts: 41
Joined: 2008-12-30 17:44
Location: Bayern
 

Re: Empfangen endet in 554: Relay access denied (state 14)

Post by mattis »

Mach doch mal einen MX-Lookup für die Domain.
Und dann von extern senden und die Logs beobachten. Wenn die Namensauflösung passt und der externe Mailer weiß wohin der die Mail schicken muss, dann wird sich in den Logs auch was tun.

Und die Domains würde ich immer komplett virtuell abwickeln.
markusb
Posts: 3
Joined: 2009-05-24 18:54
 

Re: Empfangen endet in 554: Relay access denied (state 14)

Post by markusb »

Der Lookup hats raus gehauen. Ich hab bei DeNIC noch gar nicht die DNS Server eintragen lassen.
Das hätte ich mal früher bemerken sollen.
Danke vielmals.
markusb
Posts: 3
Joined: 2009-05-24 18:54
 

Re: Empfangen endet in 554: Relay access denied (state 14)

Post by markusb »

Ich hab das weitere Problem, das mich Outlook ständig vom IMAP abmeldet. Im Logfile wird ein logout angezeigt. Domain1 meldet sich jedoch nicht so häufig ab, wie domain2.

Woran kann das liegen?
EdRoxter
Posts: 483
Joined: 2006-01-06 03:23
Location: Neben Bonn
 

Re: Empfangen endet in 554: Relay access denied (state 14)

Post by EdRoxter »

Das klingt leider nach Plattitüde, aber im Zweifelsfall liegt's an Outlook.

Probier doch einfach mal probehalber alternativ mit Thunderbird auf das IMAP-Konto zuzugreifen und schau, ob sich das Verhalten damit reproduzieren lässt.