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 to@gmail.com -v
|
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 to@gmail.com -v | |||
|
feedback
|
|
You can set up a reverse alias in
it's hidden at the bottom of the man page. | ||||
|
feedback
|
|
I suggest you switch from ssmtp to msmtp since ssmtp is not actively developed any more. msmtp provides all the same features as ssmtp plus more. In particular, with msmtp you can set the from setting to control who the mail appears to be sent from. | |||
|
feedback
|
|
Add the following in Your /etc/ssmtp/ssmtp.conf file and You will capable to set any name and email during runtime :
| |||
|
feedback
|