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