Linux : cPanel The service “imap” appears to be down

By | May 11, 2021

Encountering the following issue with Dovecot/IMAP service on your cPanel server lately?

The service “imap” appears to be down

Reason TCP Transaction Log:
<< * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE NAMESPACE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
>> A001 LOGIN __cpanel__service__auth__imap__nJl5Hcz7gc9iiv1r V0TeDQVaynp8zl9g
<< * BYE Internal error occurred. Refer to server log for more information.
imap: ** [* BYE Internal error occurred. Refer to server log for more information. != A001 OK]
: Died

Then, if you look at the logs :

/var/log/maillog

You will notice similar output :

dovecot: imap-login: Login: user=<user@domain.tld>, method=PLAIN, rip=::1, lip=::1, mpid=12496, secured, session=<cTxS0A3CZtoAAAAAAAAAAAAAAAAAAABB>
dovecot: imap(user@domain.tld): Error: Plugin ‘expire’ not found from directory /usr/lib64/dovecot

It seems that cPanel released some updates that broke Dovecot. It was quickly fixed and corrective update was released. Before going any further, I tried to disable the related “Auto Expunge Trash” feature which did not helped.

If this is your case and you run version 96.0.5 or below, force an update to version 96.0.6 and the issue will be fixed.