I had this issue as well. Seems to be some sort of config issue. I replaced with /etc/postfix/main.cf with a blank file, and it worked.
I did not configure it myself, but I did get a question about postfix during my upgrade, where I selected the default selection. The upgrade was from 20.10->21.04, so I think this might be an upgrade issue. ** Changed in: postfix (Ubuntu) Status: Triaged => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1929786 Title: Postfix Local only configuration adds 2 dots on hostname , blocking package upgrades To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1929786/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs