my ssmtp doesn't change "To" from 'root' to my email.
In my ssmtp.conf I have: [email protected]
In debug output I found only one difference between working and not working commands:
working command: echo "body" | mail -s "test" [email protected]
debug output:
Feb 16 13:28:20 deb1-sh sSMTP[21160]: To: [email protected]
not working command: echo "body" | mail -s "test" root
debug output:
Feb 16 13:27:21 deb1-sh sSMTP[21151]: 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 protected]
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.