[Dovecot] dovecot authentication failing

David Mehler dave.mehler at gmail.com
Sun May 15 17:38:30 EEST 2011


Hello,
Thanks for all your replies. I reread the sites and made the following change:

 passdb {
   driver = passwd-file
   args = scheme=SHA512-CRYPT username_format=%n /etc/dovecot/passwd
 }

userdb {
driver = passwd-file
args = username_format=%n /etc/dovecot/users
}

In passwd I have:

user:{SSHA512}hbLu+pCmhmtyKEwyAs3wv3kvHD/ryr0MoXOAq3VdB7X/g8qIE/xE9BG+eI4jhFk9pTyiCltPCjZxv5/+yK1wll2LNcw=

That should all be on one line. And in the users file I have:

user::uid:gid::HomeDirectory:Shell::

It seems to be working. Can I get an assessment, make sure that all is
looking right?
Thanks.
Dave.


On 5/15/11, Pascal Volk <user+dovecot at localhost.localdomain.org> wrote:
> On 05/14/2011 10:13 PM David Mehler wrote:
>> Hello,
>> I'm running dovecot 2.0.x on a centos 5.6 machine. This is a new
>> installation, I haven't even opened the firewall to it yet. I was
>> trying to telnet localhost 143 and 110 trying to authenticate a user.
>> I'm getting authentication failure in my maillog but no details.
>> Here's the one line I get in my maillog:
>>
>> May 14 15:33:42 ohio dovecot: pop3-login: Aborted login (auth failed,
>> 1 attempts): user=<user at example.com>, method=PLAIN, rip=127.0.0.1,
>> lip=127.0.0.1, secured
>>
>> Here's a doveconf -n:
>> # 2.0.12: /etc/dovecot/dovecot.conf
>> # OS: Linux 2.6.38.3-linode32 i686 CentOS release 5.6 (Final) ext3
>> auth_default_realm = domain.com
>> auth_mechanisms = plain login
>>>> disable_plaintext_auth = no
>>>> passdb {
>>   args = scheme=CRYPT username_format=%u /etc/dovecot/users
>>   driver = passwd-file
>> }
>>>>
>> Here's how I constructed my users file:
>>>> user:{SSHA512}hbLu+pCmhmtyKEwyAs3wv3kvHD/ryr0MoXOAq3VdB7X/g8qIE/xE9BG+eI4jhFk9pTyiCltPCjZxv5/+yK1wll2LNcw=
>> :5000:5000::
>>>
> CRYPT (CRYPT|MD5-CRYPT|SHA256-CRYPT|SHA512-CRYPT) != SSHA512
>
>> I'm suspecting my issue is in my users file or the definition of it in
>> passwd-file{ i've been over the wiki for 2.0.x dovecot, this was
>> definitely worth the upgrade by the way, and thus far have not found
>> an answer.
>>
>> I'd appreciate any help.
>
> Whenever something isn't working you should point your browser to:
> http://wiki2.dovecot.org/WhyDoesItNotWork
>
>
> Regards,
> Pascal
> --
> The trapper recommends today: c01dcafe.1113512 at localdomain.org
>


More information about the dovecot mailing list