[Ddclient-support] Specify sender address for email notifications
Brought to you by:
supersandro2000,
wimpunk
From: <ddc...@pl...> - 2020-03-30 03:45:11
|
Hi, I'm using OpenSMTPD to send emails from my server. This program uses an external SMTP server to send mail. My SMTP server will only accept mail from specific sender addresses, and thus using the default sender of user@hostname fails. Instead, I manually set the sender address by editing `/etc/mail.rc` and adding: set from="Foo Bar <fo...@do...>" I have also set up aliases, and hence when I test with the following, it works perfectly: $ echo "body" | mail -s "subject" root However, ddclient doesn't seem to respect the sender address. Instead, it still sends from user@hostname, which is rejected by my SMTP server. Is there a way to specify the sender address for ddclient? Thanks in advance! |