[Dovecot] Cannot authenticate with new Red Hat/Fedora SHA512

2011-02-01 Thread John Cooper
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$$:15006:0:9: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.




Re: [Dovecot] Cannot authenticate with new Red Hat/Fedora SHA512

2011-02-01 Thread John Cooper

On 02/01/2011 03:46 PM, Pascal Volk wrote:

On 02/01/2011 04:31 PM John Cooper wrote:

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$$:15006:0:9: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.




You forgot to show your `doveconf -n` output.


Regards,
Pascal

# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.35.10-74.fc14.i686 i686 Fedora release 14 (Laughlin)
mbox_write_locks = fcntl
passdb {
  driver = pam
}
ssl_cert = 

Re: [Dovecot] [SOLVED] Cannot authenticate with new Red Hat/Fedora SHA512

2011-02-01 Thread John Cooper

On 02/01/2011 04:13 PM, Pascal Volk wrote:

On 02/01/2011 05:01 PM John Cooper wrote:

# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.35.10-74.fc14.i686 i686 Fedora release 14 (Laughlin)
mbox_write_locks = fcntl
passdb {
driver = pam
}
ssl_cert =
Hm, looks good so far. What was logged to your maillog?
You may also set auth_verbose = yes in your conf.d/10-logging.conf


Regards,
Pascal
Looking in secure.log as authentication error, didn't get to maillog. 
maillog had error :-


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.