Re: nullmailer: does not allow unqualified "mailname"
Eric Deplagne <[email protected]> Wed, 1 Dec 2010 15:58:54 +0100
| Newsgroups | gmane.mail.nullmailer |
|---|---|
| Message-ID | <[email protected]> |
--4SFOXa2GPu3tIq4H
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sat, 01 Nov 2008 14:51:26 +0100, Adeodato Sim=F3 wrote:
> Package: nullmailer
> Version: 1:1.04-1
>=20
> Hello,
>=20
> 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".
>=20
> I'd like to be able to use unqualified mailnames, since I have a
> smarthost ready to accept them.
>=20
> Cheers,
>=20
> --=20
> Adeodato Sim=F3 dato at net.com.org.es
> Debian Developer adeodato at debian.org
> =20
> 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 =3D 0;
if (!config_read("me", me)) {
nome =3D 1;
me =3D "me";
}
if (!config_read("defaultdomain", defaultdomain))
defaultdomain =3D nome ? "defaultdomain" : me.c_str();
if (!config_read("defaulthost", defaulthost))
defaulthost =3D 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.
--=20
Eric Deplagne
--4SFOXa2GPu3tIq4H
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFM9mKuej7DisjVpq4RAmdtAJ9D1IwPonW7cKk2vYGJPIfUWgD9agCeM8WN
sgHYOPonM5BgfMppliXgoRM=
=zHb7
-----END PGP SIGNATURE-----
--4SFOXa2GPu3tIq4H--