Postfix Setup als RelayHost mit SSL/TLS

Ich gehe hier von einer funktionierenden Konfiguration des Postfix Server Dienstes aus.
Um den Server zum RelayHost zu ändern müssen wir die Konfigurationsdatei /etc/postfix/main.cf anpassen:

relayhost = [my.relay.host]
# [] verhindern ein dns lookup. So sollte kein mx record existieren
# klappt es trotzdem
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous

Anschließend legen wir die Authentifizierungsdatei /etc/postfix/smtp_auth mit folgendem Inhalt an:

my.relay.host        your_account_number:your_secret_password

Jetzt müssen wir die Authentifizierungsdatei umwandeln und Postfix neustarten:

$ cd /etc/postfix
$ postmap smtp_auth
$ /etc/init.d/postfix restart

Fertig

Keine Kommentare

Beitrag kommentieren