In article <20110506000017.ga10...@leverton.org>,
Nick Leverton  <n...@leverton.org> wrote:
>In article <20101201145854.gd21...@goldorak3.eric.deplagne.name> Eric Deplagne 
>writes:
>>On Sat, 01 Nov 2008 14:51:26 +0100, Adeodato Simó wrote:
>>> 
>>> nullmailer seems to insist that the hostname in /etc/mailname contains
>>> at least one dot. If it doesn't, it will qualify mail by duplicating the
>>> name found there twice, as in "foo.foo".
>>
>>    This leads to the workaround the broken package, which is just to
>>    make /etc/nullmailer/defaultdomain contain
>>      "mydomain.tld"
>
>This is nullmailer working as designed.  If 'me' (aka /etc/mailname in
>Debian) contains no dots, then defaultdomain will be appended.

Ok, I'm thinking of changing the way the Debian package sets up the
nullmailer variables.

When 'me' aka Debian /etc/mailname is created or updated, either by
manual entry in debconf or (if that is left empty) by setting it from
"hostname --fqdn", I propose to set nullmailer's defaultdomain to the
domain part of mailname, and if there is none then to set it to null.

This means that the package should inter-work with other Debian tools
that are quite accepting of whether the hostname is qualified with a
domainname or not (it normally is but need not be), whilst not breaking
nullmailer's qmail-style defaultdomain handling.

Any comments gratefully received.  If none then this change will go in
the next upload in a few weeks' time.  As always, the config files can
be edited by hand in the traditional manner for those whom this scheme
doesn't suit (e.g. if defaultdomain should not be the same as this
host's FQDN).

Nick
-- 
"The Internet, a sort of ersatz counterfeit of real life"
        -- Janet Street-Porter, BBC2, 19th March 1996



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to