Am 10.01.23 um 17:42 schrieb Axel Braun:
Hi,
small update to the above topic:
Am Montag, 12. Dezember 2022, 17:24:03 CET schrieb Carlos E. R.:
---- # cat /etc/default/systemd-status-mail
# ADDRESS is the mail account to which the status mails should be send ADDRESS=myaddress@gmx.de
# Set HOSTNAME if the system does not set it or if you need to override # the system default #HOSTNAME=myhostname
# Valid values for MAILER: "sendmail" or "mailx" MAILER="mailx -Sverbose -Ssmtp-use-starttls -Ssmtp-auth=login -Ssmtp-auth-user="myaddress@gmx.de" -Ssmtp-auth-password="TopSecret" "
Maybe it only accepts "mailx" with no parameters.
Yes, and in between the systemd-status-mail was extended by the variable MAILX_OPTIONS which allow you to enter all the needed parameters.
Small issue that still exists - if you set the -f parameter to specify the FROM address, this is currently not considered for the outgoing mail. So the sender is always root@myhostname. This fails with most service providers, as they check that the FROM address is from within their domain (like web.de etc).
You mean "-r" ? Option "f" is something different. There is also the mailx env variable MAILRC to read options from.
Cheers Axel