I recently upgraded to 21.04 from 20.04. And ever since I did whenever I download something, and install it I get this message:
Running newaliases
newaliases: warning: valid_hostname: misplaced delimiter: ChromePanther..
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: ChromePanther..
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)
The programs I install usually work fine anyway, but I would like to know what happened. I have tried changing the hostname. I have also looked in postfix main.conf
nothing seemed amiss.
The output of grep
:
$ grep myhostname /etc/postfix/main.cf
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
myhostname = ChromePanther..
mydestination = $myhostname, ChromePanther, localhost.localdomain, , localhost
After following the advice of the answer I now get this error(Still thankful for all your help):
Running newaliases
newaliases: warning: valid_hostname: misplaced delimiter: ChromePanther..
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad paramete
r value: ChromePanther..
dpkg: error processing package postfix (--configure):
installed postfix package post-installation script subprocess returned error ex
it status 75
Processing triggers for libc-bin (2.33-0ubuntu5) ...
Errors were encountered while processing:
postfix
sh: 0: getcwd() failed: No such file or directory
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have tried restarting, and I have removed the .. behind the host name. But every time I restart then use postfix I the .. comes back.