Hallo Christian, hallo Liste,
vielen Dank für deine Mühe.
Ich habe es direkt ausprobiert.
relayhost = [smtp.1und1.de]:587
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtp_sasl_auth_enable = true
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
Nach
echo "Hallo" | mailx lothar@s522116222.online.de
führt
ein
systemctl status postfix.service
zu
● postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2020-11-21 22:00:21 CET; 41s ago
Process: 21564 ExecStartPre=/bin/echo Starting mail service (Postfix) (code=exited, status=0/SUCCESS)
Process: 21565 ExecStartPre=/usr/lib/postfix/systemd/config_postfix (code=exited, status=0/SUCCESS)
Process: 21566 ExecStartPre=/usr/lib/postfix/systemd/update_chroot (code=exited, status=0/SUCCESS)
Process: 21567 ExecStartPre=/usr/lib/postfix/systemd/update_postmaps (code=exited, status=0/SUCCESS)
Process: 21578 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
Process: 21650 ExecStartPost=/usr/lib/postfix/systemd/wait_qmgr 60 (code=exited, status=0/SUCCESS)
Process: 21653 ExecStartPost=/usr/lib/postfix/systemd/cond_slp register (code=exited, status=0/SUCCESS)
Main PID: 21647 (master)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/postfix.service
├─21647 /usr/lib/postfix/bin//master -w
├─21648 pickup -l -t fifo -u
├─21649 qmgr -l -t fifo -u
├─21869 cleanup -z -t unix -u
└─21870 trivial-rewrite -n rewrite -t unix -u
Nov 21 22:00:21 tux postfix[21651]: Postfix is running with backwards-compatible default settings
Nov 21 22:00:21 tux postfix[21651]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Nov 21 22:00:21 tux postfix[21651]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Nov 21 22:00:21 tux systemd[1]: Started Postfix Mail Transport Agent.
Nov 21 22:00:56 tux postfix/pickup[21648]: B18F2B2034: uid=1000 from=<lothar>
Nov 21 22:00:56 tux postfix/cleanup[21869]: B18F2B2034: message-id=<20201121210056.B18F2B2034@tux.vorrath.ddnss.de>
Nov 21 22:00:56 tux postfix/qmgr[21649]: B18F2B2034: from=
Hallo Lothar, hallo zusammen,
Am Samstag, 21. November 2020, 10:34:14 CET schrieb Lothar: ...
smtp_use_tls = yes # Aktiviert TLS für Postfix smtp_sasl_auth_enable = yes # Aktiviert SMTP AUTH für Postfix smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd # Gibt an wo Postfix die Zugangsdaten findet smtp_sasl_security_options = # Durch setzen der leeren Option wird die PLAIN- und anonyme Authentifizierung aktivier ##smtp_sasl_mechanism_filter = plain ... postfix/smtp[16853]:fatal:bad boolean configuration:smtp_sasl_auth_enable = yes # Aktiviert SMTP AUTH f??r Postfix
Was kann ich tun ????
Die Fehlermeldung ist eigentlich recht deutlich - "yes # Aktiviert SMTP AUTH f??r Postfix" ist kein gültiger boolean-Wert ;-)
Scheinbar geht Postfix davon aus, dass alles hinter dem "=" zur Config- Option gehört, und rechnet nicht mit inline-Kommentaren. Siehst Du auch im postconf -n unten - ich habe das mal auf die betroffenen Optionen zusammengekürzt.
tux:/etc/postfix # postconf -n ... smtp_sasl_auth_enable = yes # Aktiviert SMTP AUTH für Postfix smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd # Gibt an wo Postfix die Zugangsdaten findet smtp_sasl_security_options = # Durch setzen der leeren Option wird die PLAIN- und anonyme Authentifizierung aktivier ... smtp_use_tls = yes # Aktiviert TLS für Postfix
Schreib die Kommentare in eine eigene Zeile, nicht hinter das "=".
Gruß
Christian Boltz