Re: nullmailer: does not allow unqualified "mailname"

Nick Leverton <[email protected]> Fri, 6 May 2011 01:00:17 +0100
Newsgroups gmane.mail.nullmailer
Message-ID <[email protected]>
In article <[email protected]> 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"

Hi,

This is nullmailer working as designed.  If 'me' (aka /etc/mailname in
Debian) contains no dots, then defaultdomain will be appended.  It just
happens that if defaultdomain is not set but 'me' is, then defaultdomain
defaults to the value of 'me', as Adeodato observed.

The correct configuration of nullmailer when the mail hostname is not
an FQDN is to set defaultdomain, as you've said.

It's not a bug, but I could probably make the Debian package smarter in
the case where the Debian /etc/mailname isn't an FQDN, or failing that
at least improve the Debian docs.  Leave it with me whilst I think.

Debian followups to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504184,
please.

Nick (new Debian maintainer for nullmailer package)