I have installed:
- sudo apt-get install ssmtp
- sudo apt-get install mailutils
When I use command:
echo "something" | mail -s "testing email" firstname.lastname@example.org
The generated email have From field set to something like this:
From: "Username" <email@example.com>
Is there a config file or something, where I can change this FROM default address?
Note, that changing the TO field is easy, as explained here: How to get ssmtp to map local user to email address for the To: field, but I need to change the default FROM field.
Edit: I also need to change FROM address for sendmail emulation. In my case, the Cron sets FROM: root and TO: root, that I would like to change to normal email address.