1 (edited by schnappi 2018-08-04 08:34:24)

Topic: Dovecot service will not start after file system repair with e2fsck

Server in data center was unresponsive. Went into rescue mode and ran e2fsk on the (ext4) disk. There were many errors and had to repair file system.

Server now booting and accepting emails according to the log. However am unable to login via either IMAP or Roundcube (which believe just logs in via IMAP on localhost).

Turns out Port 25 and 587 are open but ports 143 and 993 are closed. That leads to the Dovecot service not running and there are no entries in the /var/log/dovecot/imap.log since the server came back online.

Running "systemctl status dovecot.service" gives "/usr/sbin/dovecot: error while loading shared libraries: libdovecot.so.0: cannot open shared object file: No such file or directory"

Also seeing many of the following entries "fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory" in /var/log/maillog

Suggestions on how to get Dovecot service running again?

Right now shut down Postfix service since not sure if the messages being received are making it to the inboxes due to log entries in /var/log/maillog. Messages can queue until get all this figured out.


Also /var/log/mysql/error.log has an entry of the following:

InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB."

Not sure if this was present before or not. Will be checking older logs shortly.


==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian 9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by schnappi 2018-08-04 10:55:11)

Re: Dovecot service will not start after file system repair with e2fsck

Resolved by running:

sudo apt-get remove dovecot-core dovecot-imapd dovecot-lmtpd dovecot-managesieved dovecot-mysql dovecot-pop3d dovecot-sieve

and then

sudo apt install dovecot-core dovecot-imapd dovecot-lmtpd dovecot-managesieved dovecot-mysql dovecot-pop3d dovecot-sieve