Could not create mail accounts because of an error: "Can't read encryption key"

Created:

2016-11-16 12:51:36 UTC

Modified:

2017-04-24 11:23:16 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Could not create mail accounts because of an error: "Can't read encryption key"

Applicable to:

  • Plesk for Linux

Symptoms

When creating a mail account in the Plesk interface, the following error is shown:

If Qmail MTA is installed:

Error:
mailmng[18215]: Can't read encryption key from '/var/lib/plesk/mail/auth/passwd_db_key': No such file or directory (2)

If Postfix MTA is installed:

Error:
mailmng[18215]: Can't read encryption key from '/var/spool/postfix/plesk/passwd_db_key': No such file or directory (2)

Cause

The mail server authentication database key is not present on the server, resulting in one of the following errors:

# ls -la /var/lib/plesk/mail/auth/passwd_db_key
ls: cannot access /var/lib/plesk/mail/auth/passwd_db_key: No such file or directory

Or:

# ls -la /var/spool/postfix/plesk/passwd_db_key
ls: cannot access /var/spool/postfix/plesk/passwd_db_key: No such file or directory

Resolution

Recreate the missing file using the following command:

# /usr/lib64/plesk-9.0/mail_auth_dump

Or:

# /usr/lib/plesk-9.0/mail_auth_dump

Or:

# /usr/lib64/plesk-9.0/remote_mail_restore/mail_auth_dump

Or:

# /usr/lib/plesk-9.0/remote_mail_restore/mail_auth_dump

Verify that folder permissions in the tree /var/lib/plesk/mail/auth/ are readable:

drwxr-x--- 2 root    nofiles 4096 Dec 30  2013 auth
Have more questions? Submit a request
Please sign in to leave a comment.