Product:
Search Type:

Mail users cannot authorize, the following error occurs in maillog: "unable to open mail authentication database".

Article ID: 5436 
Last Review: Jul,14 2008
APPLIES TO:
  • Plesk 8.4.x for Linux/Unix

SYMPTOMS

Login to horde webmail is now possible, POP3/IMAP/SMTP authorization does not work. The following error occurs in maillog when trying to authorize:

/usr/local/psa/var/log/maillog
..............
LOGIN FAILED, ip=[127.0.0.1]
IMAP connect from @ [127.0.0.1]checkmailpasswd: unable to open mail authentication database: No such file or directory

..............

CAUSE

Berkeley Database with credentials of all mail accounts is missing.

~# ls -l /var/lib/plesk/mail/auth/passwd.db
ls: /var/lib/plesk/mail/auth/passwd.db: No such file or directory
~#

RESOLUTION

Recreate the database anew to resolve the problem:

~# /usr/local/psa/admin/sbin/mail_auth_dump
~# file /var/lib/plesk/mail/auth/passwd.db
/var/lib/plesk/mail/auth/passwd.db: Berkeley DB (Btree, version 9, native byte-order)
~#

Additional information

Exact location of Plesk product root directory can be obtained from /etc/psa/psa.conf

/etc/psa/psa.conf
..............
PRODUCT_ROOT_D /usr/local/psa
..............
Keywords: IMAP authorization Berkeley DB mail

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields