/etc/postfix/main.cf is not created when 'postfix/main_mailer_type'
debconf option is set to 'No configuration'.
root@postfix-resolute:~# echo 'postfix postfix/main_mailer_type select No
configuration' | debconf-set-selections
root@postfix-resolute:~# DEBIAN_FRONTEND=noninteractive apt install -y postfix
...
Postfix (main.cf) was not set up. Start with
cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf
. If you need to make changes, edit /etc/postfix/main.cf (and others) as
needed. To view Postfix configuration values, see postconf(1).
After modifying main.cf, be sure to run 'systemctl reload postfix'.
...
root@postfix-resolute:~# ls -la /etc/postfix
total 16
drwxr-xr-x 4 root root 9 Sep 14 13:35 .
drwxr-xr-x 107 root root 201 Sep 14 13:35 ..
-rw-r--r-- 1 root root 60 Sep 14 13:35 dynamicmaps.cf
-rw-r--r-- 1 root root 2455 May 5 15:45 main.cf.proto
-rw-r--r-- 1 root root 7335 Sep 14 13:35 master.cf
-rw-r--r-- 1 root root 7335 May 5 15:45 master.cf.proto
-rw-r--r-- 1 root root 9313 May 5 15:45 postfix-files
drwxr-xr-x 2 root root 2 May 5 15:45 postfix-files.d
drwxr-xr-x 2 root root 2 May 5 15:45 sasl
I guess we should guard the relevant sections in the postinst script to
check if /etc/postfix/main.cf exists.
** Changed in: postfix (Ubuntu)
Status: Incomplete => Confirmed
** Tags added: server-todo
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2165958
Title:
package postfix 3.10.6-4ubuntu2.1 failed to install/upgrade: old
postfix package postinst maintainer script subprocess failed with exit
status 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/2165958/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs