my ssmtp doesn't change "To" from 'root' to my email.
In my ssmtp.conf I have:
In debug output I found only one difference between working and not working commands:
working command: echo "body" | mail -s "test" email@example.com
Feb 16 13:28:20 deb1-sh sSMTP: To: firstname.lastname@example.org
not working command: echo "body" | mail -s "test" root
Feb 16 13:27:21 deb1-sh sSMTP: To: root
According to this post:http://possiblelossofprecision.net/?p=591 I tried to add file /etc/mail.rc with following content:
alias root email@example.com
With no success.
I run debian jessie 8.3.
It looks like ssmtp root alias doesn't work. Has anybody idea why? Or how to solve this issue? Thank you.