#568867 ssmtp not rewriting "To:" correctly

Package:
ssmtp
Source:
ssmtp
Description:
extremely simple MTA to get mail off the system to a mail hub
Submitter:
Thomas Schweikle
Date:
2010-03-01 23:27:05 UTC
Severity:
normal
#568867#5
Date:
2010-02-08 13:06:19 UTC
From:
To:
  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!

#568867#10
Date:
2010-02-25 00:42:26 UTC
From:
To:
Am 2010-02-08 14:06:19, schrieb Thomas Schweikle:

This s not rewriting but forarding

This is exactly was "courier-mta", "exim" and "postfix" do too.

You need full blown MTA to do this like exim, but courier can not do it.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant

#568867#15
Date:
2010-03-01 23:20:39 UTC
From:
To:
OK. In this case --- could you please correct the manual not talking
from rewrition then from forwarding?

OK. For forwarding.

Would be a "nice to have", but forwarding is OK too.