Hello. I have a question. Now I want to enable login to any customer's mailbox without user's password using dovecot master password without using cPanel session IDs.
I've configured dovecot and tested this config on server without cPanel. All working good: I can login to any mailbox using master password - - Removed-
I tried to configure dovecot on server with cPanel. Dovecot configured successfully and I can log in with dovecot master password via telnet:
Doveadm auth also working correctly:
But when I trying to login with master password via cPanel's webmail, I can't. I get the error: The login is invalid. See attached image.
I've checked /usr/local/cpanel/logs/login_log and found next records:
In maillog nothing. So, I have some questions, one answer on it can resolve my issue:
I've configured dovecot and tested this config on server without cPanel. All working good: I can login to any mailbox using master password - - Removed-
I tried to configure dovecot on server with cPanel. Dovecot configured successfully and I can log in with dovecot master password via telnet:
Code:
[[email protected] dovecot]# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE NAMESPACE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
1 login [email protected]/[email protected] unencrypted password
1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE NAMESPACE NOTIFY COMPRESS=DEFLATE QUOTA] Logged in
Code:
[[email protected] dovecot]# doveadm auth test [email protected]/[email protected]
Password:
passdb: [email protected]/[email protected] auth succeeded
extra fields:
[email protected]
[email protected]
[email protected]
I've checked /usr/local/cpanel/logs/login_log and found next records:
Code:
[2018-01-14 10:26:33 +0800] info [webmaild] 192.168.60.124 - [email protected] "POST /login/?login_only=1 HTTP/1.1" FAILED LOGIN webmaild: user password hash is missing from system (user probably does not exist)
- How to connect to user's mailbox directly via dovecot without cPanel's user check?
- How enable in cPanel dovecot master password authentication without using cpanel sessions (WHM API 1 Functions - create_user_session - Software Development Kit - cPanel Documentation) ?
- How to disable user check?
Last edited by a moderator: