T
T
Twelfth Doctor2017-07-25 13:46:14
linux
Twelfth Doctor, 2017-07-25 13:46:14

Why is Postfix not installed?

Hello! After removing the postfix package, I deleted the /etc/postfix folder, started installing postfix again - I saw an error:

[email protected]:~# sudo apt install postfix
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin
  libsasl2-modules postfix-cdb mail-reader ufw postfix-doc
....
Setting up postfix (3.1.0-3) ...

Postfix configuration was not changed.  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 '/etc/init.d/postfix reload'.

Running newaliases
 * Stopping Postfix Mail Transport Agent postfix                         [ OK ] 
 * Starting Postfix Mail Transport Agent postfix                                postfix: Postfix is running with backwards-compatible default settings
postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details
postfix: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
/usr/lib/postfix/sbin/post-install: Error: /etc/postfix/postfix-files is not a file.
postfix/postfix-script: warning: unable to create missing queue directories
postfix/postfix-script: fatal: Postfix integrity check failed!
                                                                         [fail]
invoke-rc.d: initscript postfix, action "restart" failed.
dpkg: error processing package postfix (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Errors were encountered while processing:
 postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)

What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Twelfth Doctor, 2017-07-25
@verdex

Problem solved

sudo dpkg --remove postfix
 sudo dpkg --purge postfix

https://bugs.launchpad.net/ubuntu/+source/postfix/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question