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.
Best Answer
As I understand it, the
root
configuration setting for sSMTP is only used for local accounts so should be set to a username that’s valid for the local host. It’s not an alias like those used by other more fully-featured MTAs (which can be used to forward mail to another domain).The comments in my
/etc/ssmtp/ssmtp.conf
state