• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Postfix passwd_db_key not found

karadayi

Basic Pleskian
Hi,

After my update to Plesk 12 I have some troubles with Emails. For the moment the Error is that the passwd_db_key is not found.

That folder does not exist
/var/lib/plesk/mail/auth/

The result of the "mchk"
# /usr/local/psa/admin/sbin/mchk
==> Checking for: mailsrv_conf_init... ok
==> Checking for: mail_handlers_init... ok
==> Checking for: mailsrv_entities_dump... ok
==> Checking for: mail_admin_aliases... ok
==> Checking for: mail_auth_dump... ok
==> Checking for: mailman_lists_dump... ok
==> Checking for: mail_kav8_restore... ok
==> Checking for: mail_responder_restore... ok
==> Checking for: mail_imap_restore... ok
==> Checking for: mail_spam_restore... ok
==> Checking for: mail_grey_restore... ok
==> Checking for: mail_mailbox_restore... ok
==> Checking for: mail_spf_restore... ok
==> Checking for: mail_dk_restore... ok
==> Checking for: mail_drweb_restore... not found, skipped
==> Checking for: mail_outgoing_restore... ok
==> Checking for: mail_transport_restore... ok

Error log
May 27 03:26:24 plesk_saslauthd[9942]: Can't read encryption key from '/var/spool/postfix/plesk/passwd_db_key': No such file or directory (2)
May 27 03:26:24 plesk_saslauthd[9942]: Failed to initialize encryption cipher 'AES-256-CBC:pKCS' with key '/var/spool/postfix/plesk/passwd_db_key'
May 27 03:26:24 plesk_saslauthd[9942]: Failed to initialize password cipher context
May 27 03:26:24 plesk_saslauthd[9942]: Invalid mail address 'office@'

I checked this Fix (http://kb.odin.com/en/117622) but I cant solve it with it.

In the Mail Log I get this Warning too
May 27 10:50:03 plesk_saslauthd[21694]: activity on 0 channel(s)
May 27 10:50:03 plesk_saslauthd[21694]: select timeout, exiting
May 27 10:50:03 plesk_saslauthd[21694]: Failed to correctly destroy encryption cipher 'AES-256-CBC:pKCS'. A programming error?
 
Do you have file /var/spool/postfix/plesk/passwd_db_key now? Try to remove it and run command from KB article again. After that run mchk --with-spam
 
Done

/var/lib/plesk/mail/auth/ Folder still does not exist and not passwd_db_key
A new File passwd_db_key is created inside the folder /var/spool/postfix/plesk

Result
/usr/local/psa/admin/sbin/mchk --with-spam
==> Checking for: mailsrv_conf_init... ok
==> Checking for: mail_handlers_init... ok
==> Checking for: mailsrv_entities_dump... ok
==> Checking for: mail_admin_aliases... ok
==> Checking for: mail_auth_dump... ok
==> Checking for: mailman_lists_dump... ok
==> Checking for: mail_kav8_restore... ok
==> Checking for: mail_responder_restore... ok
==> Checking for: mail_imap_restore... ok
==> Checking for: mail_spam_restore... ok
==> Checking for: mail_grey_restore... ok
==> Checking for: mail_mailbox_restore... ok
==> Checking for: mail_spf_restore... ok
==> Checking for: mail_dk_restore... ok
==> Checking for: mail_drweb_restore... not found, skipped
==> Checking for: mail_outgoing_restore... ok
==> Checking for: mail_transport_restore... ok
 
# stat /var/spool/postfix/plesk/passwd_db_key
File: `/var/spool/postfix/plesk/passwd_db_key'
Size: 32 Blocks: 8 IO Block: 4096 regular file
Device: 87h/135d Inode: 35458966 Links: 1
Access: (0440/-r--r-----) Uid: ( 89/ postfix) Gid: ( 0/ root)

# stat /var/spool/postfix/plesk
File: `/var/spool/postfix/plesk'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 87h/135d Inode: 35458950 Links: 2
Access: (0770/drwxrwx---) Uid: ( 89/ postfix) Gid: ( 89/ postfix)
 
Quite interesting all is done but still same Errors

May 27 11:41:18 plesk_saslauthd[25242]: Can't read encryption key from '/var/spool/postfix/plesk/passwd_db_key': No such file or directory (2)
May 27 11:41:18 plesk_saslauthd[25242]: Failed to initialize encryption cipher 'AES-256-CBC:pKCS' with key '/var/spool/postfix/plesk/passwd_db_key'
May 27 11:41:18 plesk_saslauthd[25242]: Failed to initialize password cipher context
May 27 11:41:18 plesk_saslauthd[25242]: Unable to open database(readonly) /var/spool/postfix/plesk/passwd.db: unable to open database file
 
Which command from KB article you ran and what was its output? Try to enable debug mode (find corresponding KB article) and try to troubleshoot it with logs.
 
I am trying this KB article http://kb.odin.com/en/117622

ls -la /var/spool/postfix/plesk/passwd_db_key
-r--r----- 1 postfix root 32 Mai 27 11:49 /var/spool/postfix/plesk/passwd_db_key

I am running this command and there is no output
/usr/lib/plesk-9.0/remote_mail_restore/mail_auth_dump

And trying to verify that folder permissions in the tree /var/lib/plesk/mail/auth/ are readable but I dont have the Folder "auth" inside /var/lib/plesk/mail/

Log of /var/log/mail.err
May 27 11:41:18 plesk_saslauthd[25242]: Can't read encryption key from '/var/spool/postfix/plesk/passwd_db_key': No such file or directory (2)
May 27 11:41:18 plesk_saslauthd[25242]: Failed to initialize encryption cipher 'AES-256-CBC:pKCS' with key '/var/spool/postfix/plesk/passwd_db_key'
May 27 11:41:18 plesk_saslauthd[25242]: Failed to initialize password cipher context
May 27 11:41:18 plesk_saslauthd[25242]: Unable to open database(readonly) /var/spool/postfix/plesk/passwd.db: unable to open database file
 
Back
Top