#299150 To: line without hostname

Package:
ssmtp
Source:
ssmtp
Description:
extremely simple MTA to get mail off the system to a mail hub
Submitter:
Srdjan
Date:
2010-04-30 10:57:03 UTC
Severity:
normal
#299150#5
Date:
2005-03-12 03:28:21 UTC
From:
To:
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.

#299150#10
Date:
2006-09-25 15:00:18 UTC
From:
To:
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.

#299150#15
Date:
2006-12-30 18:13:25 UTC
From:
To:
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

#299150#20
Date:
2010-04-30 10:36:30 UTC
From:
To:
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