ssmtp change " From: "root" <xy@com>" root name
My root user send emails with ssmtp. However I can't change "From: root ..." root name. Is there any way to send email with another name without using another user?
Tried:
echo 'From: "New name" ' | ssmtp [email protected] -v
You can set up a reverse alias in /etc/ssmtp/revaliases
root:[email protected]
it's hidden at the bottom of the man page.
Add the following in Your /etc/ssmtp/ssmtp.conf file and You will capable to set any name and email during runtime :
FromLineOverride=YES