Source: postfix
Severity: normal
On a very (arguably too) core system postfix failed to be configured:
setting myhostname: .UNKNOWN
[...]
newaliases: warning: valid_hostname: misplaced delimiter: .UNKNOWN
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad
parameter value: .UNKNOWN
dpkg: error processing package postfix (--configure):
subprocess installed post-installation script returned error exit status 75
[...]
dpkg: dependency problems prevent configuration of mailutils:
mailutils depends on default-mta | mail-transport-agent; however:
Package default-mta is not installed.
Package mail-transport-agent is not installed.
Package postfix which provides mail-transport-agent is not configured yet.
dpkg: error processing package mailutils (--configure):
dependency problems - leaving unconfigured
When I tried reconfigure, it failed with a syntax error at line 348 of
postinst (sorry, I didn't save the error message). Here's that line:
if [ ${hname} = ${hname%.*} ]; then
That test will fail if $hname is empty. This would work:
if [ "${hname}" = "${hname%.*}" ]; then
Please fix that. And please consider running shellcheck on the scripts.
- Jonas