Linux – sSMTP From Address

linuxssmtp

Is there a way to configure sSMTP to use a different name when sending emails?

I dont want my emails to my linux account as the username.

Best Answer

from the man pages of ssmtp

REVERSE ALIASES
A reverse alias gives the From: address placed on a user's outgoing messages and (optionally) the mailhub these messages will be sent through. Example:

root:jdoe@isp.com:mail.isp.com

Messages root sends will be identified as from jdoe@isp.com and sent through mail.isp.com.

FILES
/etc/ssmtp/ssmtp.conf - configuration file
/etc/ssmtp/revaliases - reverse aliases file