Postfix Local only configuration adds 2 dots on hostname , blocking package upgrades
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postfix (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
After updating from 20.10 to 21.04 (Xubuntu) I ended up during upgrade asked if I want "internet site" or "Local only" configuration on postfix.
Since not planning on having FQDN mail server on this machine, I choosed Local only.
If I remove 2 dots from hostname = in /etc/postfix/
' apt upgrade ' and that seems to stop packages upgrade process on machine.
Setting up postfix (3.5.6-1) ...
setting myhostname=xdesk.. in /etc/postfix
Postfix (main.cf) is now set up with the changes above. If you need to make
changes, edit /etc/postfix/
configuration values, see postconf(1).
After modifying main.cf, be sure to run 'systemctl reload postfix'.
Running newaliases
newaliases: warning: valid_hostname: misplaced delimiter: xdesk..
newaliases: fatal: file /etc/postfix/
dpkg: error processing package postfix (--configure):
installed postfix package post-installation script subprocess returned error exit status 75
Processing triggers for libc-bin (2.33-0ubuntu5) ...
Errors were encountered while processing:
postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: postfix 3.5.6-1
ProcVersionSign
Uname: Linux 5.11.0-17-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu65.1
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: XFCE
Date: Thu May 27 09:35:04 2021
DuplicateSignature: InvalidHostOrDomain
EtcMailname: *** /etc/mailname does not exist ***
Hostname: xdesk
PostconfMydomain: .
PostconfMyhostname: xdesk..
PostconfMyorigin: $myhostname
SourcePackage: postfix
UpgradeStatus: Upgraded to hirsute on 2021-05-27 (0 days ago)
This crash has the same stack trace characteristics as bug #1531299. However, the latter was already fixed in an earlier package version than the one in this report. This might be a regression or because the problem is in a dependent package.