[Dovecot] Cannot authenticate with new Red Hat/Fedora SHA512
RHEL6 and Fedora 14 use an improved password algorithm of SHA512 on a brand new install of the OS (:$6$ in shadow file).
cat /etc/shadow user1:$6$<salt>$<password>:15006:0:99999:7:::
I cannot get dovecot to authenticate. I've search for a way to change the default algorithm in dovecot and found you should use CRYPT but I don't know what to put in the /etc/dovecot/dovecot.conf or /etc/dovecot/conf.d/*
Can this be done or do you need to use an alternate password file with MD5?
Thanks, John.
On 02/01/2011 04:13 PM, Pascal Volk wrote:
dovecot: imap(usser1): Error: user user1: Initialization failed: mail_location not set and autodetection failed: Mail storage autodetection failed with home=/home/user1
So added this to dovecot.conf
mail_location = mbox:~/mail:INBOX=/var/mail/%u
Restarted dovecot and everything now works.
Thanks, John.
On Tue, 2011-02-01 at 16:01 +0000, John Cooper wrote:
PAM reads the shadow file and does the authentication, not Dovecot. So it has nothing to do with passwords being SHA512. More likely it's the same generic PAM authentication problem explained in http://wiki2.dovecot.org/WhyDoesItNotWork
participants (3)
-
John Cooper
-
Pascal Volk
-
Timo Sirainen