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

Refers to:

  • Plesk for Linux
  • MG:4631f9d73e2f78d1fd6e943c2b7cefb2
  • MT:f27f43de5b308b0320e2e17623863c90
  • MT:a86ddd8e027569246efac978e6348de4
  • MT:ab4e6d0dbf9e8605fedfc0d1a8268007
  • MT:eb65777a77a96a96216b0985bb911e6e
  • MG:47fc549bbe684d70453159db97f91ea6

Created:

2016-11-16 12:51:36 UTC

Modified:

2017-02-13 06:36:40 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"

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.