On Sat, 01 Nov 2008 14:51:26 +0100, Adeodato Simó wrote:
> Package: nullmailer
> Version: 1:1.04-1
> 
> Hello,
> 
> 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".
> 
> I'd like to be able to use unqualified mailnames, since I have a
> smarthost ready to accept them.
> 
> Cheers,
> 
> -- 
> Adeodato Simó                                     dato at net.com.org.es
> Debian Developer                                  adeodato at debian.org
>  
>                                Listening to: Eric Clapton - Born in time

  Hi.

    I'm crossposting this to the nullmailer mailing list
    because I think the solution is upstream, and I checked
    that nullmailer-1.05 does not change anything to this problem.

    I've tracked down the problem down to the file lib/hostname.cc,
    function read_hostnames(), I also derive a workaround.

    void read_hostnames()
    {
      int nome;
      nome = 0;
      if (!config_read("me", me)) {
        nome = 1;
        me = "me";
      }
      if (!config_read("defaultdomain", defaultdomain))
        defaultdomain = nome ? "defaultdomain" : me.c_str();
      if (!config_read("defaulthost", defaulthost))
        defaulthost = nome ? "defaulthost" : me.c_str();
      canonicalize(defaulthost);
    }

    "me" is debianized to point to /etc/mailname, but that's merely
    cosmetic.

    Now, what happens ?

    Say that the /etc/nullmailer/me or /etc/mailname contains
      "nullmailer.mydomain.tld"

    Then both defaulthost *and* defaultdomain will contain just that.

    If HOSTNAME is exported to "nullmailer", it will be canonicalized
    to "nullmailer.nullmailer.mydomain.tld"...... beep...

    defaultdomain has to somehow be set to "mydomain.tld"...

    This leads to the workaround the broken package, which is just to
    make /etc/nullmailer/defaultdomain contain
      "mydomain.tld"

  Regards to everyone.

-- 
  Eric Deplagne

Attachment: signature.asc
Description: Digital signature

Reply via email to