| Zeile 1: |
Zeile 1: |
| − | Siehe auch [[Mail unter Linux#SMTP-Server]] | + | Siehe auch [[Mail unter Linux#SMTP-Server]], [[Mail unter Linux#Einfacher MTA mittels Postfix]] |
| | + | |
| | | | |
| | == Einrichten von Postfix zum Versenden über Mail-Provider arcor.de == | | == Einrichten von Postfix zum Versenden über Mail-Provider arcor.de == |
| Zeile 18: |
Zeile 19: |
| | * Hinzufügen folgender Zeilen: | | * Hinzufügen folgender Zeilen: |
| | smtp_sasl_auth_enable = yes | | smtp_sasl_auth_enable = yes |
| − | smtp_sasl_security_options = noplaintext noanonymous | + | smtp_sasl_security_options = noanonymous |
| | smtp_sasl_password_maps = hash:/etc/postfix/sasl_password | | smtp_sasl_password_maps = hash:/etc/postfix/sasl_password |
| | smtp_tls_security_level = may | | smtp_tls_security_level = may |
| | + | sender_canonical_maps = hash:/etc/postfix/sender_canonical |
| | | | |
| | Passwortdatei <code>/etc/postfix/sasl_password</code> | | Passwortdatei <code>/etc/postfix/sasl_password</code> |
| Zeile 44: |
Zeile 46: |
| | Test | | Test |
| | mail -s "hello" mein@private_email.de | | mail -s "hello" mein@private_email.de |
| | + | |
| | + | Mit einem anderen Absender: |
| | + | echo test | mail -s "helloXX" EMAIL4@gmx.de -a "From:VORNAME NACHNAME<EMAIL2@arcor.de>" |
| | + | |
| | + | == Nur Mails von localhost versenden == |
| | + | |
| | + | Mit der Zeile |
| | + | inet_interfaces = 127.0.0.1 |
| | + | statt |
| | + | inet_interfaces = all |
| | + | in <code>/etc/postfix/main.cf</code> wird verhindert, dass Mails auch von anderen Servern als localhost versendet werden können. |
| | | | |
| | == Nutzen mehrerer Smarthosts == | | == Nutzen mehrerer Smarthosts == |
| | | | |
| | Siehe | | Siehe |
| | + | * https://wiki.ubuntuusers.de/Postfix/Erweiterte_Konfiguration#Sender-abhaengige-Authentifizierung |
| | * https://ubuntu-tutorials.com/2009/03/13/configure-postfix-for-multiple-isp-client-smtp-authentication/ | | * https://ubuntu-tutorials.com/2009/03/13/configure-postfix-for-multiple-isp-client-smtp-authentication/ |
| | | | |