Postfix und Mailrelaying

Theq

New Member
Hallo. Ich habe nun schon langsam das halbe Internet nach Lösungen abgegrast, bisher erfolglos.

Problem:
Über einen Relayserver möchte ich Mails die nicht an meine Domain gehen weiterleiten lassen. Ich habe eine Domain mit dynamischem DNS Dienst, daher wird kein Provider meine Mails direkt annehmen.

Von meinem Domainhoster Selfhost habe ich Daten eines Relayservers, sowie Anweisungen, wie Postfix zu konfigurieren ist.

Beim Senden von Mails die an eine andere Domain als meine gehen, bekomme ich folgende Fehlermeldung:

Code:
<[email protected]>: host mail.selfhost.de[82.98.82.25] said: 553 sorry,
    that domain isn't in my list of allowed rcpthosts

Aufgrund des
Code:
host mail.selfhost.de[82.98.82.25] said
nehme ich an, dass nicht mein MTA daran Schuld hat.

Ich möchte nun überprüfen, ob sich mein postfix überhaupt richtig am SMTP Server von Selfhost anmeldet, oder ob es schon daran scheitert. Bzw. wenn nicht daran, woran denn.

Hier erst einmal meine main.cf
Code:
myhostname = theqserver.de
mydomain = theqserver.de
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = debianserver.qnet.de, localhost.qnet.de, localhost, theqserver.de, qnet.de

smtpd_helo_required = yes
smtpd_helo_restrictions = reject_invalid_hostname
smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_domain, permit_sasl_authenticated, reject_unauth_destination
smtpd_sender_restrictions = reject_unknown_address
smtpd_client_restrictions = reject_invalid_hostname
home_mailbox = mails/

relayhost = [mail.selfhost.de]
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes
smtp_enforce_tls = yes
smtp_tls_enforce_peername=no

mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.178.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

# SASL Parameters
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
smtp_sasl_auth_enable = no
broken_sasl_auth_clients = yes
 
Du hast den Parameter smtp_sasl_auth_enable zweimal drin, einmal oben beim Relay-Host als
Code:
smtp_sasl_auth_enable = yes
und einmal weiter unten bei den SASL-Optionen als
Code:
smtp_sasl_auth_enable = no
Der zweite Eintrag macht den ersten überflüssig und muß raus, dann sollte die Authentifizierung auf funktionieren. Nutze selber auch für eine Domain selfhost.de als Relay.

PS: Poste die Lösung dann auch ins andere Forum, wenn meine Vermutung richtig war...
 
Danton, ich danke dir!

Es funktioniert. Manchmal sieht man den Wald vor Bäumen nicht.
Und ja ich füge es im Linuxforum auch hinzu.
 
Back
Top