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 :-) -- You received this bug notification because you are a member of Canonical's Ubuntu QA, which is subscribed to Auto Package Testing. https://bugs.launchpad.net/bugs/2019195 Title: Domain name for autopkgtests ending with dot ('.') Status in Auto Package Testing: New Bug description: I have been looking at https://autopkgtest.ubuntu.com/results/autopkgtest-mantic/mantic/amd64/f/fwlogwatch/20230502_145023_da50b@/log.gz where the installation of postfix fails in the autopkgtest environment. The hostname passed to the test is "adt-mantic- amd64-fwlogwatch-20230502-143927-lrg-root5". After concatenating with the domain in postfix function check_myhostname() the hostname becomes "adt-mantic- amd64-fwlogwatch-20230502-143927-lrg-root5.openstack.prodstack5.lan." which terminates with a dot. Later function valid_hostname() detects that this is invalid. As the problem does not occur in a local autopkgtest I assume this is due to some issue with the openstack configuration. Best regards Heinrich To manage notifications about this bug go to: https://bugs.launchpad.net/auto-package-testing/+bug/2019195/+subscriptions -- Mailing list: https://launchpad.net/~canonical-ubuntu-qa Post to : canonical-ubuntu-qa@lists.launchpad.net Unsubscribe : https://launchpad.net/~canonical-ubuntu-qa More help : https://help.launchpad.net/ListHelp