Not able to start dovecot
Freshly compiled dovecot 2.3.9.3 on Centos 7 for some reason not able to start
sudo systemctl status dovecot.service ● dovecot.service - LSB: Starts the Dovecot POP3/IMAP service Loaded: loaded (/etc/rc.d/init.d/dovecot; bad; vendor preset: disabled) Active: failed (Result: exit-code) since Wed 2020-03-18 16:32:17 UTC; 15s ago Docs: man:systemd-sysv-generator(8) Process: 2868 ExecStart=/etc/rc.d/init.d/dovecot start (code=exited, status=127)
Mar 18 16:32:17 systemd[1]: Starting LSB: Starts the Dovecot POP3/IMAP service... Mar 18 16:32:17 dovecot[2868]: /etc/rc.d/init.d/dovecot: line 34: log_info_msg: command not found Mar 18 16:32:17 dovecot[2868]: /etc/rc.d/init.d/dovecot: line 35: start_daemon: command not found Mar 18 16:32:17 dovecot[2868]: /etc/rc.d/init.d/dovecot: line 36: evaluate_retval: command not found Mar 18 16:32:17 systemd[1]: dovecot.service: control process exited, code=exited status=127 Mar 18 16:32:17 systemd[1]: Failed to start LSB: Starts the Dovecot POP3/IMAP service. Mar 18 16:32:17 systemd[1]: Unit dovecot.service entered failed state. Mar 18 16:32:17 systemd[1]: dovecot.service failed.
I have compiled the same code on Centos 6 and had no problem to run it.
Any thoughts on that?
Thanks, Adam
I was able to solve errors below but now it complains about the startup how is handled on Centos7:
● dovecot.service - LSB: Dovecot init script Loaded: loaded (/etc/rc.d/init.d/dovecot; bad; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2020-03-19 15:15:37 UTC; 54s ago Docs: man:systemd-sysv-generator(8) Process: 20398 ExecStart=/etc/rc.d/init.d/dovecot start (code=exited, status=203/EXEC)
Mar 19 15:15:37 systemd[1]: Starting LSB: Dovecot init script... Mar 19 15:15:37 systemd[1]: dovecot.service: control process exited, code=exited status=203 Mar 19 15:15:37 systemd[1]: Failed to start LSB: Dovecot init script. Mar 19 15:15:37 systemd[1]: Unit dovecot.service entered failed state. Mar 19 15:15:37 systemd[1]: dovecot.service failed.
Any thoughts on that matter?
Thanks, Adam
Freshly compiled dovecot 2.3.9.3 on Centos 7 for some reason not able to start
sudo systemctl status dovecot.service ● dovecot.service - LSB: Starts the Dovecot POP3/IMAP service Loaded: loaded (/etc/rc.d/init.d/dovecot; bad; vendor preset: disabled) Active: failed (Result: exit-code) since Wed 2020-03-18 16:32:17 UTC; 15s ago Docs: man:systemd-sysv-generator(8) Process: 2868 ExecStart=/etc/rc.d/init.d/dovecot start (code=exited, status=127)
Mar 18 16:32:17 systemd[1]: Starting LSB: Starts the Dovecot POP3/IMAP service... Mar 18 16:32:17 dovecot[2868]: /etc/rc.d/init.d/dovecot: line 34: log_info_msg: command not found Mar 18 16:32:17 dovecot[2868]: /etc/rc.d/init.d/dovecot: line 35: start_daemon: command not found Mar 18 16:32:17 dovecot[2868]: /etc/rc.d/init.d/dovecot: line 36: evaluate_retval: command not found Mar 18 16:32:17 systemd[1]: dovecot.service: control process exited, code=exited status=127 Mar 18 16:32:17 systemd[1]: Failed to start LSB: Starts the Dovecot POP3/IMAP service. Mar 18 16:32:17 systemd[1]: Unit dovecot.service entered failed state. Mar 18 16:32:17 systemd[1]: dovecot.service failed.
I have compiled the same code on Centos 6 and had no problem to run it.
Any thoughts on that?
Thanks, Adam
Am 19.03.2020 um 16:28 schrieb Adam Raszkiewicz:
I was able to solve errors below but now it complains about the startup how is handled on Centos7:
● dovecot.service - LSB: Dovecot init script Loaded: loaded (/etc/rc.d/init.d/dovecot; bad; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2020-03-19 15:15:37 UTC; 54s ago Docs: man:systemd-sysv-generator(8) Process: 20398 ExecStart=/etc/rc.d/init.d/dovecot start (code=exited, status=203/EXEC)
Mar 19 15:15:37 systemd[1]: Starting LSB: Dovecot init script... Mar 19 15:15:37 systemd[1]: dovecot.service: control process exited, code=exited status=203 Mar 19 15:15:37 systemd[1]: Failed to start LSB: Dovecot init script. Mar 19 15:15:37 systemd[1]: Unit dovecot.service entered failed state. Mar 19 15:15:37 systemd[1]: dovecot.service failed.
Any thoughts on that matter?
Thanks, Adam
Use a proper systemd unit file instead of the initd script.
Alexander
On 3/20/20 4:43 PM, Alexander Dalloz wrote:
Use a proper systemd unit file instead of the initd script.
Alexander
Use e.g. the following for getting started:
# This file is part of Dovecot
#
# DO NOT CUSTOMIZE THIS FILE, INSTEAD
# create the file:
# /etc/systemd/system/dovecot.service.d/service.conf'. # or copy this as #
/etc/systemd/system/dovecot.service` and edit then
# and put your changes there
[Unit] Description=Dovecot IMAP/POP3 email server Documentation=man:dovecot(1) Documentation=http://wiki2.dovecot.org/ After=local-fs.target network-online.target dovecot-init.service Requires=dovecot-init.service
[Service] Type=simple ExecStartPre=/usr/libexec/dovecot/prestartscript ExecStart=/usr/sbin/dovecot -F PIDFile=/var/run/dovecot/master.pid ExecReload=/usr/bin/doveadm reload ExecStop=/usr/bin/doveadm stop PrivateTmp=true NonBlocking=yes # this will make /usr /boot /etc read only for dovecot ProtectSystem=full ProtectHome=no PrivateDevices=true
# You can add environment variables with e.g.: #Environment='CORE_OUTOFMEM=1' # If you have trouble with `Too many open files', increase LimitNOFILE=65535 # If you want to allow the Dovecot services to produce core dumps, use: #LimitCORE=infinity
[Install] WantedBy=multi-user.target
-- Karlsruher Institut für Technologie (KIT) ATIS - Abt. Technische Infrastruktur, Fakultät für Informatik
Dipl.-Geophys. Olaf Hopp
- Leitung IT-Dienste -
Am Fasanengarten 5, Gebäude 50.34, Raum 009 76131 Karlsruhe Telefon: +49 721 608-43973 Fax: +49 721 608-46699 E-Mail: Olaf.Hopp@kit.edu www.atis.informatik.kit.edu
www.kit.edu
KIT - Die Forschungsuniversität in der Helmholtz-Gemeinschaft
Das KIT ist seit 2010 als familiengerechte Hochschule zertifiziert.
On 18 Mar 2020, at 19.55, Adam Raszkiewicz araszkiewicz@medallies.com wrote:
Freshly compiled dovecot 2.3.9.3 on Centos 7 for some reason not able to start
sudo systemctl status dovecot.service ● dovecot.service - LSB: Starts the Dovecot POP3/IMAP service Loaded: loaded (/etc/rc.d/init.d/dovecot; bad; vendor preset: disabled) Active: failed (Result: exit-code) since Wed 2020-03-18 16:32:17 UTC; 15s ago Docs: man:systemd-sysv-generator(8) Process: 2868 ExecStart=/etc/rc.d/init.d/dovecot start (code=exited, status=127)
Mar 18 16:32:17 systemd[1]: Starting LSB: Starts the Dovecot POP3/IMAP service... Mar 18 16:32:17 dovecot[2868]: /etc/rc.d/init.d/dovecot: line 34: log_info_msg: command not found Mar 18 16:32:17 dovecot[2868]: /etc/rc.d/init.d/dovecot: line 35: start_daemon: command not found Mar 18 16:32:17 dovecot[2868]: /etc/rc.d/init.d/dovecot: line 36: evaluate_retval: command not found Mar 18 16:32:17 systemd[1]: dovecot.service: control process exited, code=exited status=127 Mar 18 16:32:17 systemd[1]: Failed to start LSB: Starts the Dovecot POP3/IMAP service. Mar 18 16:32:17 systemd[1]: Unit dovecot.service entered failed state. Mar 18 16:32:17 systemd[1]: dovecot.service failed.
I have compiled the same code on Centos 6 and had no problem to run it.
Any thoughts on that?
Can you use the community packages instead?
https://repo.dovecot.org/ https://repo.dovecot.org/
Sami
participants (4)
-
Adam Raszkiewicz
-
Alexander Dalloz
-
Olaf Hopp
-
Sami Ketola