Comment 4 for bug 160667

Revision history for this message
In , Rob Epping (r-epping) wrote : rewriteDomain patch

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
--

--

This e-mail is from Meteo Consult B.V., a MeteoGroup company. For more information, see http://www.weer.nl/gebruiksvoorwaarden.

This e-mail may contain confidential information. Only the addressee is permitted to read, copy, distribute or otherwise use this e-mail or any attachments. If you have received it in error, please contact the sender immediately. Any opinion expressed in this e-mail is personal to the sender and may not reflect the opinion of MeteoGroup.

Any e-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices.