Comment 2 for bug 2019195

Revision history for this message
Iain Lane (laney) wrote : Re: Domain name for autopkgtests ending with dot ('.')

Fully qualified domain names do have a trailing dot, so this is a legal domain name. Question is whether postfix likes it like that, and it seems like not.

I think this setting comes from postfix.postinst. There's some code in there (myfqdn()) which finds out the fqdn of the host. There's a bit of code to look up the domain name from search paths in /etc/resolv.conf. That will strip off a trailing dot if it is there.

Since we still see a trailing dot I think that means that the hostname in /etc/hostname must itself have the trailing dot in it. As far as I can tell that is perfectly fine, if uncommon.

If that's all right (a big assumption) then I would suggest the fix is in postfix.postinst to always strip a trailing dot if it finds one, thereby making myhostname into something which postfix likes the look of.

Do let me know if I misunderstood any of this :-)