[Dovecot] Failed authentication to a mysql database (bug or PEBKAC?)

g.visschers at sr-solutions.nl g.visschers at sr-solutions.nl
Thu Aug 18 14:00:31 EEST 2005


Hello,

I too got a problem with dovecot trying to login to MySQL.
It connects fine without a password, when i add a password the sql server
rejects the connection

I know the problem, but don't know enough C++ to fix it.

The exerpts from the mysql log are:
without password:
050818 11:33:29       8 Connect     dovecot at server2 on postfix

with password:
050818 11:45:19 12 Connect Access denied for user 'dovecot'@'server2'
(using password: YES)

As soon as i add a password to the connet string some "'" appear around
the username and hostname, which makes the username invalid.

Ger Visschers.
PS: I'm using dovecot-stable 20050817


More information about the dovecot mailing list