I have not been able to get dovecot:CRYPT-METHOD to work (tried SHA512-CRYPT, SHA256-CRYPT, MD5-CRYPT, and BLF-CRYPT, which I learned isn't supported in my OS). Using one results in the following error message when setting up admin account with setup.php:
can't encrypt password with dovecotpw, see error log for details
This is what the logs state:
1624#0: *6 FastCGI sent in stderr: "PHP message: dovecotpw password encryption failed.
PHP message: STDERR output: sh: 1: /usr/sbin/doveadm: not found" while reading response header from upstream <...> upstream: "fastcgi://unix:/var/run/php5-fpm.sock:" <...>
In config.inc.php I see:
// If you use the dovecot encryption method: where is the dovecotpw binary located?
// for dovecot 1.x
// $CONF['dovecotpw'] = "/usr/sbin/dovecotpw";
// for dovecot 2.x (dovecot 2.0.0 - 2.0.7 is not supported!)
$CONF['dovecotpw'] = "/usr/sbin/doveadm pw";
A couple quick checks:
# ll /usr/sbin/doveadm
-rwxr-xr-x 1 root root 423264 Feb 13 23:23 /usr/bin/doveadm*
# doveadm pw -l
CRYPT MD5 MD5-CRYPT SHA SHA1 SHA256 SHA512 SMD5 SSHA SSHA256 SSHA512 PLAIN CLEAR CLEARTEXT PLAIN-TRUNC CRAM-MD5 SCRAM-SHA-1 HMAC-MD5 DIGEST-MD5 PLAIN-MD4 PLAIN-MD5 LDAP-MD5 LANMAN NTLM OTP SKEY RPA SHA256-CRYPT SHA512-CRYPT
Using Dovecot 2.2, PHP 5.5, MariaDB 10, Postfix 2.11.
Log in to post a comment.