Linux – ssmtp change ” From: “root” ” root name

email-serverlinux

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

Best Answer

You can set up a reverse alias in /etc/ssmtp/revaliases

root:someone@yourdomain.tld

it's hidden at the bottom of the man page.

Related Topic