Postfix SMTP sasl authorization fails: Can't read encryption key from '/var/spool/postfix/plesk/passwd_db_key': No such file or directory (2)

Created:

2017-02-28 17:33:03 UTC

Modified:

2017-08-08 13:28:51 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Postfix SMTP sasl authorization fails: Can't read encryption key from '/var/spool/postfix/plesk/passwd_db_key': No such file or directory (2)

Symptoms

Postfix SMTP sasl authorization fails.

/var/log/maillog contains the following, but all required files are listed in /var/spool/postfix/plesk/ and all permissions are valid.

~# grep  plesk_saslauthd /var/log/maillog
Feb 28 13:33:17 serverhost plesk_saslauthd[12310]: listen=6, status=5, dbpath='/var/spool/postfix/plesk/passwd.db', keypath='/var/spool/postfix/plesk/passwd_db_key', chroot=1, unprivileged=1 
Feb 28 13:33:17 serverhost plesk_saslauthd[12310]: privileges set to (89:89) (effective 89:89) 
Feb 28 13:33:17 serverhost plesk_saslauthd[12310]: Can't read encryption key from '/var/spool/postfix/plesk/passwd_db_key': No such file or directory (2) 
Feb 28 13:33:17 serverhost plesk_saslauthd[12310]: Failed to initialize encryption cipher 'AES-256-CBC:PKCS' with key '/var/spool/postfix/plesk/passwd_db_key' 
Feb 28 13:33:17 serverhost plesk_saslauthd[12310]: Failed to initialize password cipher context 
Feb 28 13:33:17 serverhost plesk_saslauthd[12310]: Unable to open database(readonly) /var/spool/postfix/plesk/passwd.db: unable to open database file

The command grep plesk_sasl /etc/postfix/master.cf | awk '{print $1,$5}' display the following:

 ~]# grep plesk_saslauthd /etc/postfix/master.cf | awk '{print $1, $5}'
plesk_saslauthd y

Cause

plesk_saslauthd was configured to be executed in chroot environment.

Resolution

Edit /etc/postfix/master.cf and make sure that plesk_saslauthd is configured as follows:

plesk_saslauthd unix y y n - 1 plesk_saslauthd status=5 listen=6 dbpath=/var/spool/postfix/plesk/passwd.db

 

Have more questions? Submit a request
Please sign in to leave a comment.