Package: dovecot-core
Version: 2.2.27-3+deb9u2
Severity: grave
Debian: Stretch amd64
Regression: Unknown
Trying to install dovecot on debian 9.2 leaded to error during the
post-install process, leading to dovecot partially installed and
non-working, resulting in an unusable program (all dovecot packages),
resulting in making a server unusable for email services.
Note also that the system is up-to-date (with aptitute update and
aptitute upgrade).
Here are the outputs of the console:
root@utopia:/etc/exim4# aptitude install dovecot-imapd dovecot-mysql
dovecot-lmtpd
The following NEW packages will be installed:
dovecot-core{a} dovecot-imapd dovecot-lmtpd dovecot-mysql
libexttextcat-2.0-0{a} libexttextcat-data{a} libstemmer0d{a}
0 packages upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,756 kB of archives. After unpacking 13.0 MB will be used.
Do you want to continue? [Y/n/?]
Get: 1 http://mirrors.online.net/debian stretch/main amd64
libexttextcat-data all 3.4.4-2 [167 kB]
Get: 2 http://mirrors.online.net/debian stretch/main amd64
libexttextcat-2.0-0 amd64 3.4.4-2+b1 [16.2 kB]
Get: 3 http://mirrors.online.net/debian stretch/main amd64 libstemmer0d
amd64 0+svn585-1+b2 [63.3 kB]
Get: 4 http://security.debian.org/debian-security stretch/updates/main
amd64 dovecot-core amd64 1:2.2.27-3+deb9u2 [3,324 kB]
Get: 5 http://security.debian.org/debian-security stretch/updates/main
amd64 dovecot-imapd amd64 1:2.2.27-3+deb9u2 [814 kB]
Get: 6 http://security.debian.org/debian-security stretch/updates/main
amd64 dovecot-lmtpd amd64 1:2.2.27-3+deb9u2 [692 kB]
Get: 7 http://security.debian.org/debian-security stretch/updates/main
amd64 dovecot-mysql amd64 1:2.2.27-3+deb9u2 [679 kB]
Fetched 5,756 kB in 0s (8,028 kB/s)
Selecting previously unselected package libexttextcat-data.
(Reading database ... 106573 files and directories currently installed.)
Preparing to unpack .../0-libexttextcat-data_3.4.4-2_all.deb ...
Unpacking libexttextcat-data (3.4.4-2) ...
Selecting previously unselected package libexttextcat-2.0-0:amd64.
Preparing to unpack .../1-libexttextcat-2.0-0_3.4.4-2+b1_amd64.deb ...
Unpacking libexttextcat-2.0-0:amd64 (3.4.4-2+b1) ...
Selecting previously unselected package libstemmer0d:amd64.
Preparing to unpack .../2-libstemmer0d_0+svn585-1+b2_amd64.deb ...
Unpacking libstemmer0d:amd64 (0+svn585-1+b2) ...
Selecting previously unselected package dovecot-core.
Preparing to unpack .../3-dovecot-core_1%3a2.2.27-3+deb9u2_amd64.deb ...
Unpacking dovecot-core (1:2.2.27-3+deb9u2) ...
Selecting previously unselected package dovecot-imapd.
Preparing to unpack .../4-dovecot-imapd_1%3a2.2.27-3+deb9u2_amd64.deb ...
Unpacking dovecot-imapd (1:2.2.27-3+deb9u2) ...
Selecting previously unselected package dovecot-lmtpd.
Preparing to unpack .../5-dovecot-lmtpd_1%3a2.2.27-3+deb9u2_amd64.deb ...
Unpacking dovecot-lmtpd (1:2.2.27-3+deb9u2) ...
Selecting previously unselected package dovecot-mysql.
Preparing to unpack .../6-dovecot-mysql_1%3a2.2.27-3+deb9u2_amd64.deb ...
Unpacking dovecot-mysql (1:2.2.27-3+deb9u2) ...
Setting up libstemmer0d:amd64 (0+svn585-1+b2) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Setting up libexttextcat-data (3.4.4-2) ...
Processing triggers for systemd (232-25+deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libexttextcat-2.0-0:amd64 (3.4.4-2+b1) ...
Setting up dovecot-core (1:2.2.27-3+deb9u2) ...
Creating config file /etc/dovecot/dovecot.conf with new version
Creating config file /etc/dovecot/dovecot-dict-auth.conf.ext with new
version
Creating config file /etc/dovecot/dovecot-dict-sql.conf.ext with new version
Creating config file /etc/dovecot/dovecot-sql.conf.ext with new version
Creating config file /etc/dovecot/conf.d/10-auth.conf with new version
Creating config file /etc/dovecot/conf.d/10-director.conf with new version
Creating config file /etc/dovecot/conf.d/10-logging.conf with new version
Creating config file /etc/dovecot/conf.d/10-mail.conf with new version
Creating config file /etc/dovecot/conf.d/10-master.conf with new version
Creating config file /etc/dovecot/conf.d/10-tcpwrapper.conf with new version
Creating config file /etc/dovecot/conf.d/15-lda.conf with new version
Creating config file /etc/dovecot/conf.d/15-mailboxes.conf with new version
Creating config file /etc/dovecot/conf.d/90-acl.conf with new version
Creating config file /etc/dovecot/conf.d/90-plugin.conf with new version
Creating config file /etc/dovecot/conf.d/90-quota.conf with new version
Creating config file /etc/dovecot/conf.d/auth-checkpassword.conf.ext
with new version
Creating config file /etc/dovecot/conf.d/auth-deny.conf.ext with new version
Creating config file /etc/dovecot/conf.d/auth-dict.conf.ext with new version
Creating config file /etc/dovecot/conf.d/auth-master.conf.ext with new
version
Creating config file /etc/dovecot/conf.d/auth-passwdfile.conf.ext with
new version
Creating config file /etc/dovecot/conf.d/auth-sql.conf.ext with new version
Creating config file /etc/dovecot/conf.d/auth-static.conf.ext with new
version
Creating config file /etc/dovecot/conf.d/auth-system.conf.ext with new
version
Creating config file /etc/dovecot/conf.d/auth-vpopmail.conf.ext with new
version
Created symlink
/etc/systemd/system/multi-user.target.wants/dovecot.service →
/lib/systemd/system/dovecot.service.
Setting up dovecot-lmtpd (1:2.2.27-3+deb9u2) ...
Creating config file /etc/dovecot/conf.d/20-lmtp.conf with new version
Setting up dovecot-mysql (1:2.2.27-3+deb9u2) ...
Setting up dovecot-imapd (1:2.2.27-3+deb9u2) ...
Creating config file /etc/dovecot/conf.d/20-imap.conf with new version
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for systemd (232-25+deb9u1) ...
Processing triggers for dovecot-core (1:2.2.27-3+deb9u2) ...
Job for dovecot.service failed because the control process exited with
error code.
See "systemctl status dovecot.service" and "journalctl -xe" for details.
invoke-rc.d: initscript dovecot, action "restart" failed.
● dovecot.service - Dovecot IMAP/POP3 email server
Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor
preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-03-04 15:34:00
CET; 6ms ago
Docs: man:dovecot(1)
http://wiki2.dovecot.org/
Process: 53448 ExecStop=/usr/bin/doveadm stop (code=exited,
status=0/SUCCESS)
Process: 53453 ExecStart=/usr/sbin/dovecot (code=exited, status=89)
Main PID: 53175 (code=exited, status=0/SUCCESS)
Mar 04 15:34:00 utopia systemd[1]: Starting Dovecot IMAP/POP3 email
server...
Mar 04 15:34:00 utopia dovecot[53453]: Error: service(imap-login):
listen(*, 143) failed: Address already in use
Mar 04 15:34:00 utopia dovecot[53453]: Fatal: Failed to start listeners
Mar 04 15:34:00 utopia systemd[1]: dovecot.service: Control process
exited, code=exited status=89
Mar 04 15:34:00 utopia systemd[1]: Failed to start Dovecot IMAP/POP3
email server.
Mar 04 15:34:00 utopia systemd[1]: dovecot.service: Unit entered failed
state.
Mar 04 15:34:00 utopia systemd[1]: dovecot.service: Failed with result
'exit-code'.
dpkg: error processing package dovecot-core (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
dovecot-core
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up dovecot-core (1:2.2.27-3+deb9u2) ...
Job for dovecot.service failed because the control process exited with
error code.
See "systemctl status dovecot.service" and "journalctl -xe" for details.
invoke-rc.d: initscript dovecot, action "start" failed.
● dovecot.service - Dovecot IMAP/POP3 email server
Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor
preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-03-04 15:34:10
CET; 5ms ago
Docs: man:dovecot(1)
http://wiki2.dovecot.org/
Process: 55800 ExecStart=/usr/sbin/dovecot (code=exited, status=89)
Main PID: 53175 (code=exited, status=0/SUCCESS)
Mar 04 15:34:10 utopia systemd[1]: Starting Dovecot IMAP/POP3 email
server...
Mar 04 15:34:10 utopia dovecot[55800]: Error: service(imap-login):
listen(*, 143) failed: Address already in use
Mar 04 15:34:10 utopia dovecot[55800]: Fatal: Failed to start listeners
Mar 04 15:34:10 utopia systemd[1]: dovecot.service: Control process
exited, code=exited status=89
Mar 04 15:34:10 utopia systemd[1]: Failed to start Dovecot IMAP/POP3
email server.
Mar 04 15:34:10 utopia systemd[1]: dovecot.service: Unit entered failed
state.
Mar 04 15:34:10 utopia systemd[1]: dovecot.service: Failed with result
'exit-code'.
dpkg: error processing package dovecot-core (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
dovecot-core
root@utopia:/etc/exim4# journalctl -xe
-- Subject: Unit dovecot.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit dovecot.service has finished shutting down.
Mar 04 15:34:00 utopia systemd[1]: Starting Dovecot IMAP/POP3 email
server...
-- Subject: Unit dovecot.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit dovecot.service has begun starting up.
Mar 04 15:34:00 utopia dovecot[53453]: Error: service(imap-login):
listen(*, 143) failed: Address already in use
Mar 04 15:34:00 utopia dovecot[53453]: Fatal: Failed to start listeners
Mar 04 15:34:00 utopia dovecot[53453]: master: Error:
service(imap-login): listen(*, 143) failed: Address already in use
Mar 04 15:34:00 utopia dovecot[53453]: master: Fatal: Failed to start
listeners
Mar 04 15:34:00 utopia systemd[1]: dovecot.service: Control process
exited, code=exited status=89
Mar 04 15:34:00 utopia systemd[1]: Failed to start Dovecot IMAP/POP3
email server.
-- Subject: Unit dovecot.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit dovecot.service has failed.
--
-- The result is failed.
Mar 04 15:34:00 utopia systemd[1]: dovecot.service: Unit entered failed
state.
Mar 04 15:34:00 utopia systemd[1]: dovecot.service: Failed with result
'exit-code'.
Mar 04 15:34:10 utopia systemd[1]: Reloading.
Mar 04 15:34:10 utopia systemd[1]: apt-daily.timer: Adding 4h 21min
19.039426s random time.
Mar 04 15:34:10 utopia systemd[1]: apt-daily-upgrade.timer: Adding 42min
53.938170s random time.
Mar 04 15:34:10 utopia systemd[1]: Reloading.
Mar 04 15:34:10 utopia systemd[1]: apt-daily.timer: Adding 3h 39min
10.643089s random time.
Mar 04 15:34:10 utopia systemd[1]: apt-daily-upgrade.timer: Adding 27min
26.701379s random time.
Mar 04 15:34:10 utopia systemd[1]: Starting Dovecot IMAP/POP3 email
server...
-- Subject: Unit dovecot.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit dovecot.service has begun starting up.
Mar 04 15:34:10 utopia dovecot[55800]: Error: service(imap-login):
listen(*, 143) failed: Address already in use
Mar 04 15:34:10 utopia dovecot[55800]: Fatal: Failed to start listeners
Mar 04 15:34:10 utopia dovecot[55800]: master: Error:
service(imap-login): listen(*, 143) failed: Address already in use
Mar 04 15:34:10 utopia dovecot[55800]: master: Fatal: Failed to start
listeners
Mar 04 15:34:10 utopia systemd[1]: dovecot.service: Control process
exited, code=exited status=89
Mar 04 15:34:10 utopia systemd[1]: Failed to start Dovecot IMAP/POP3
email server.
-- Subject: Unit dovecot.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit dovecot.service has failed.
--
-- The result is failed.
Mar 04 15:34:10 utopia systemd[1]: dovecot.service: Unit entered failed
state.
Mar 04 15:34:10 utopia systemd[1]: dovecot.service: Failed with result
'exit-code'.
Mar 04 15:34:37 utopia sshd[55825]: Received disconnect from
221.194.47.245 port 44914:11: [preauth]
Mar 04 15:34:37 utopia sshd[55825]: Disconnected from 221.194.47.245
port 44914 [preauth]
root@utopia:/etc/exim4# systemctl -all list-sockets
LISTEN UNIT ACTIVATES
/dev/rfkill systemd-rfkill.socket systemd-rfkill.service
/run/systemd/fsck.progress systemd-fsckd.socket systemd-fsckd.service
/run/systemd/initctl/fifo systemd-initctl.socket
systemd-initctl.service
/run/systemd/journal/dev-log systemd-journald-dev-log.socket
systemd-journald.service
/run/systemd/journal/socket systemd-journald.socket
systemd-journald.service
/run/systemd/journal/stdout systemd-journald.socket
systemd-journald.service
/run/systemd/journal/syslog syslog.socket rsyslog.service
/run/udev/control systemd-udevd-control.socket
systemd-udevd.service
/var/run/dbus/system_bus_socket dbus.socket dbus.service
audit 1 systemd-journald-audit.socket
systemd-journald.service
kobject-uevent 1 systemd-udevd-kernel.socket
systemd-udevd.service
root@utopia:/etc/exim4# netstat -lapute | grep 143
root@utopia:/etc/exim4#