ssmtp does not replace the "From" with what is given
by the configuration file. If I define "root=tps@vr-web.de"
all mail for user-id beyond 1000 shall go to user
"tps@vr-web.de". But instead I find all mail for
users beyond 1000 going to "root@vr-web.de" this
clearly wrong.
Here is my ssmtp.conf:
root=tps@vr-web.de
mailhub=mail.vr-web.de
rewritedomain=vr-web.de
FromLineOverride=NO
UseTLS=yes
UseSTARTTLS=yes
AuthUser=xxx
AuthPass=xxx
AuthMethod=AUTH-PLAIN
Sending mail to "root" on localhost gives:
Delivered-To: tps@localmail-ka.vrweb.de
Return-Path: <root@vr-web.de>
Received: from mx0.vr-web.de
(vrwf103.vrweb.de [::ffff:192.168.27.6])
by loc.vr-web.de with esmtp;
Mon, 08 Feb 2010 13:30:32 +0100
id 00057D64.4B7003E8.0000205D
Received: from sen.tps
(dslb-084-056-101-235.pools.arcor-ip.net
[::ffff:84.56.101.235])
(QVVUSDogTE9HSU4gdHBzLCBUTFM6IFRMU3Y
L1NTTHYzLDI1NmJpdHMsQUVTMjU2LVNIQQ==)
by mx0.vr-web.de with esmtp;
Mon, 08 Feb 2010 13:30:56 +0100
id 0004FB1C.4B700400.00004118
Received: by sen.tps (sSMTP sendmail emulation);
Mon, 08 Feb 2010 13:30:28 +0100
From: "Charlie &" <root@vr-web.de>
Date: Mon, 08 Feb 2010 13:30:28 +0100
To: root@vr-web.de
Subject: test
test
I would expect the header to be:
Delivered-To: tps@localmail-ka.vrweb.de
Return-Path: <tps@vr-web.de>
Received: from mx0.vr-web.de
(vrwf103.vrweb.de [::ffff:192.168.27.6])
by loc.vr-web.de with esmtp;
Mon, 08 Feb 2010 13:30:32 +0100
id 00057D64.4B7003E8.0000205D
Received: from sen.tps
(dslb-084-056-101-235.pools.arcor-ip.net
[::ffff:84.56.101.235])
(QVVUSDogTE9HSU4gdHBzLCBUTFM6IFRMU3Y
L1NTTHYzLDI1NmJpdHMsQUVTMjU2LVNIQQ==)
by mx0.vr-web.de with esmtp;
Mon, 08 Feb 2010 13:30:56 +0100
id 0004FB1C.4B700400.00004118
Received: by sen.tps (sSMTP sendmail emulation);
Mon, 08 Feb 2010 13:30:28 +0100
From: "Charlie &" <root@vr-web.de>
Date: Mon, 08 Feb 2010 13:30:28 +0100
To: tps@vr-web.de
Subject: test
test
It is just some special configuration at my providers
site making the mail being send to me not to the real
"root@vr-web.de". ssmtp failing to rewrite "To:"
correctly will, if not special precautions where done
mail had been gone to my providers "root"-address. Not
what was intended!
I suggest replacing "To:" correctly with what is
configured in the configuration file. I could find
this with ssmtp on
Debian GNU/Linux experimental, testing, stable
FreeBSD 5, 6, 7, 8, HEAD
Ubuntu 9.04, 9.10, 10.04
for me it looks like ssmtp is badly broken at the time
being!