1. /Library/Server/Mail/Config/postfix/main.cf modifizieren, mit folgenden Zeilen ergänzen
1 2 3 4 5 6 7 8 9 10 | relayhost = myrelayhost.mydomain.com:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/Library/Server/Mail/Config/postfix/sasl_passwd smtp_sasl_security_options = smtp_sasl_local_domain = localhost broken_sasl_auth_clients = yes smtpd_pw_server_security_options = noanonymous smtp_use_tls=yes smtp_tls_security_level=encrypt tls_random_source=dev:/dev/urandom |
In diesem Beispiel bitte «myrelayhost.mydomain.com» durch ihren eigenen Host ersetzt.
2. /Library/Server/Mail/Config/postfix/sasl_passwd mit folgendem Inhalt erstellen
1 | myrelayhost.mydomain.com:587 username:passwd |
Auch hier «myrelayhost.mydomain.com» durch eigenen Hostnamen ersetzt, sowie username:passwort ebenso.
3. postmap auf dieses sasl_passwd File ausführen
1 | postmap /Library/Server/Mail/Config/postfix/sasl_passwd |
4. Testnachricht versenden
1 | echo 'Email is now working! :)' | mail -s 'Test Email' name@domain.ch |
Total 0 Votes:
0
0