Linux, change “email from” address for user

linuxssmtp

I have ssmtp installed in order to use the company server to send emails from the machine.

The problem is that the server is outlook and the emails have the "reply to" set to the user name: "root". This greatly upsets the outlook server, because it considers it to be junk.

How can I change the email address for the users? I don't want to use the forward solution proposed on other threads (~/.forward).

I would like to set ssmtp to send the reply address to user@hostname or something with "@domain"

Thank you

Best Answer

Quick googling pointed me to man page of ssmtp and it seems that You can use -f option in ssmtp.

-fname

Sets the name of the ''from'' person. This option is valid only if no From: line is specified within the header of the email.

Related Topic