To: header should be user@hostname (hostname from config), not just unqualified user. That's because smarthost adds its hostname to unqualified username, and we get confusion when reading the message.
Even worse - my Exim 4.5 smarthost passes such mails on without adding its hostname to unqualified username, and then further hosts may well reject the message because of broken header syntax.
Am 2006-09-25 17:00:18, schrieb Josip Rodin:
ssmtp do the same...
Because a broken ssmtp.conf the MTA has forwarded my
"cron" messages send as root to my ISP root box... :-/
They went several 1000' messages and it was my ISP who
has called me and told me about my misconfigured MTA.
Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant
Hello, I created a patch that solves this problem. It does not simply append the hostname to the To||Cc-Headers, but respects the RewriteDomain. If the recipient is listed in /etc/ssmtp/revaliases, the alias address is used in the To||Cc-Header. Much of the patch code is taken from other functions in ssmtp.c. Regards Christoph