cpanel 11.40 / dovecot 2 authentication error

d_t

Well-Known Member
Sep 20, 2003
243
2
168
Bucharest
I upgrade a server with courier to cpanel 11.40 then switch to dovecot. Strange errors appear on authentication and blank webmail pages:

/var/log/maillog

Code:
Nov  7 07:35:39 s5 dovecot: auth: Fatal: execv(/usr/local/cpanel/bin/dovecot-wrap) failed: Permission denied
Nov  7 07:35:39 s5 dovecot: auth: Error: checkpassword([email protected],123.123.123.123,<YK7Loo/qTQCynLG/>): Child 15910 exited with status 84
Nov  7 07:35:41 s5 dovecot: pop3-login: Aborted login (auth failed, 1 attempts in 2 secs): user=<[email protected]>, method=PLAIN, rip=1
Code:
# ll /usr/local/cpanel/bin/dovecot-wrap
-rwsr-x--- 1 root root 9176 Nov  6 22:25 /usr/local/cpanel/bin/dovecot-wrap*
/usr/local/cpanel/logs/error_log
Code:
PHP Fatal error:  Call to undefined function logout_error() in /usr/local/cpanel/base/3rdparty/squirrelmail/plugins/login_auth/functions.php on line 282
Upgrade to 11.40 was 100%completed with no error. No client was able to authenticate on pop3/imap. Switched back to courier until you fix this error.
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,488
35
158
cPanel Access Level
DataCenter Provider
Please open a ticket using the link in my signature. This problem is likely a symptom of a problem with your system's rpm database. The correct permissions for dovecot-wrap on 11.40 are as follows.

# ls -l /usr/local/cpanel/bin/dovecot-wrap
-rwsr-x--- 1 root dovecot 9176 Apr 9 2013 /usr/local/cpanel/bin/dovecot-wrap*
 

d_t

Well-Known Member
Sep 20, 2003
243
2
168
Bucharest
From your message, looks like the group was not set to dovecot. I set it, swith back to dovecot but now all users get authentication error:

Code:
dovecot: pop3-login: Disconnected (auth failed, 1 attempts in 2 secs): user=
It happens again on a distinct server where automatic updates ran few hours again.

Ticket means remote connection to server and debugging. I cannot do this for a production server.

yum update reports no update. /usr/local/cpanel/scripts/check_cpanel_rpms --fix run with no message.
 

electric

Well-Known Member
Nov 5, 2001
777
8
318
I had the same problem and fixed it with this command:

chmod +x dovecot-wrap
Basically fixes the missing permissions problem.

I hope that helps someone.