#270100 ssmtp: postinst fails to set rewriteDomain when previously commented-out

Package:
ssmtp
Source:
ssmtp
Description:
extremely simple MTA to get mail off the system to a mail hub
Submitter:
Yann Dirson
Date:
2010-02-11 09:12:03 UTC
Severity:
normal
#270100#5
Date:
2004-09-05 13:14:45 UTC
From:
To:
When a file with a commented-out rewiteDomain was generated (because an
empty value had been given), then any subsequent attempt at setting a
rewrite domain does not get written to the conffile.

#270100#10
Date:
2009-02-02 15:39:04 UTC
From:
To:
Hi,

Here is a patch to resolve this bug.
--- ssmtp.postinst.orig 2007-03-08 06:24:50.000000000 +0000 +++ ssmtp.postinst 2009-02-02 15:34:43.000000000 +0000 @@ -53,7 +53,7 @@ test -z "$FromOverride" && FromOverride=NO touch /etc/ssmtp/ssmtp.conf.tmp chmod 644 /etc/ssmtp/ssmtp.conf.tmp - sed "s/^root=.*/root=$root/;s/^mailhub=.*/mailhub=$mailhub/;s/^rewriteDomain =.*/rewriteDomain=$rewritedomain/;s/^hostname=.*/hostname=$hostname/;s/^ FromLineOverride=.*/FromLineOverride=$FromOverride/;s/^#FromLineOverride =.*/FromLineOverride=$FromOverride/" /etc/ssmtp/ssmtp.conf > /etc/ssmtp/ssmtp.conf.tmp + sed "s/^root=.*/root=$root/;s/^mailhub=.*/mailhub=$mailhub/;s/^rewriteDomain =.*/rewriteDomain=$rewritedomain/;s/^#rewriteDomain=.*/rewriteDomain=$re writedomain/;s/^hostname=.*/hostname=$hostname/;s/^FromLineOverride=.*/F romLineOverride=$FromOverride/;s/^#FromLineOverride=.*/FromLineOverride= $FromOverride/" /etc/ssmtp/ssmtp.conf > /etc/ssmtp/ssmtp.conf.tmp mv -f /etc/ssmtp/ssmtp.conf.tmp /etc/ssmtp/ssmtp.conf else touch /etc/ssmtp/ssmtp.conf Sorry for the very long lines. GRTNX, RobJE --
#270100#15
Date:
2010-02-11 09:10:40 UTC
From:
To:
Hi,

Any advancement on this bug? I've installed ssmtp and then rerun
dpkg-reconfigure to configure it and the value was not set
correctly, this bug is quite old.

Kind regards

Laurent Bigonville