Dovecot 2.3.10 fails to start due to missing dependency

Aki Tuomi aki.tuomi at open-xchange.com
Tue Apr 21 20:56:06 EEST 2020


   Process: 20384 ExecStart=/bin/sh -c  if [ ! -f /etc/pki/dovecot/certs/dovecot.pem ];  then   SSLDIR=/etc/pki/dovecot/ OPENSSLCONFIG=/etc/pki/dovecot/dovecot-openssl.cnf /usr/libexec/dovecot/mkcert.sh >/dev/null 2>&1;  fi (code=exited, status=2)

It seems to fail because it fails to generate a cert.

Can you try running mkcert.sh by hand as root? 

env SSLDIR=/etc/pki/dovecot/ OPENSSLCONFIG=/etc/pki/dovecot/dovecot-openssl.cnf /usr/libexec/dovecot/mkcert.sh

maybe it tells what goes wrong?

Aki

> On 21/04/2020 20:53 Jacob Shea <jacob at a1elitesolutions.com> wrote:
> 
>  
> -- Message 3 - Second Response --
> 
> Aki,
> 
> I pasted all you requested to Pastebin.com
> 
> https://pastebin.com/fVLD495y
> 
> Thank you for your assistance,
> 
> - Jacob
> 
> 
> -- Message 2 - Initial Response --
> 
> On 4/21/20 2:43 AM, Aki Tuomi wrote:
> > Can you show
> >
> > journalctl -xe
> >
> > and
> >
> > systemctl status dovecot-init
> >
> > and
> >
> > /var/log/messages
> >
> > Aki
> -- Message 1 - Initial Message --
> >> On 21/04/2020 06:02 Jacob Shea <jacob at a1elitesolutions.com> wrote:
> >>
> >>
> >> Greetings,
> >> I installed Dovecot 2.3.10 on my Centos 7.7.1908 server, however it fails startup. This is a fresh/default install, meaning all the configs are default, downloaded from the dovecot.repo.
> >>
> >> Here is my PasteBin: https://pastebin.com/376UQFLs
> >> ### Error Log, copied from Journalctl print out ###
> >> Apr 20 21:10:01 server101 systemd[1]: Started Session 955 of user root.
> >> Apr 20 21:10:01 server101 CROND[8057]: (root) CMD (/usr/lib64/sa/sa1 1 1)
> >> Apr 20 21:10:18 server101 polkitd[1293]: Registered Authentication Agent for unix-process:8065:44125203 (system bus name :1.2058 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/Polic
> >> Apr 20 21:10:18 server101 systemd[1]: Starting One-time Dovecot init service...
> >> Apr 20 21:10:18 server101 systemd[1]: dovecot-init.service: main process exited, code=exited, status=2/INVALIDARGUMENT
> >> Apr 20 21:10:18 server101 systemd[1]: Failed to start One-time Dovecot init service.
> >> Apr 20 21:10:18 server101 systemd[1]: Dependency failed for Dovecot IMAP/POP3 email server.
> >> Apr 20 21:10:18 server101 systemd[1]: Job dovecot.service/start failed with result 'dependency'.
> >> Apr 20 21:10:18 server101 systemd[1]: Unit dovecot-init.service entered failed state.
> >> Apr 20 21:10:18 server101 systemd[1]: dovecot-init.service failed.
> >> Apr 20 21:10:18 server101 polkitd[1293]: Unregistered Authentication Agent for unix-process:8065:44125203 (system bus name :1.2058, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8
> >> lines 6106-6158/6158 (END)
> >> ### Linux Server Version ###
> >> [root at server101 log]# cat /etc/centos-release
> >> CentOS Linux release 7.7.1908 (Core)
> >> ### Dovecot Version ###
> >> Installed Packages
> >> Name : dovecot
> >> Arch : x86_64
> >> Epoch : 2
> >> Version : 2.3.10
> >> Release : 2
> >> Size : 15 M
> >> Repo : installed
> >>  From repo : dovecot-2.3-latest
> >> Summary : Secure imap and pop3 server
> >> URL : http://www.dovecot.org/
> >> License : MIT and LGPLv2
> >> Description : Dovecot is an IMAP server for Linux/UNIX-like systems, written with security
> >> : primarily in mind. It also contains a small POP3 server. It supports mail
> >> : in either of maildir or mbox formats.
> >> :
> >> : The SQL drivers and authentication plug-ins are in their subpackages.
> >> ----
> >> Any help or suggestions are appreciated.
> >> Sincerely,
> >> Jacob S.
> >>


More information about the dovecot mailing list