This documentation is for Dovecot v1.x, see wiki2 for v2.x documentation.

MySQL Problems

Multiple definition of sha1_result

Quick solution: Change all sha1_result functions in Dovecot source tree to dovecot_sha1_result or something. For example:

cd dovecot
perl -i -pe 's/sha1_result/dovecot_sha1_result/' **/*.[ch]

More permanent solution: It's a [ MySQL bug]. Try to get them to fix it.

Access denied

If Dovecot can't connect to MySQL but your password is correct, store the password to MySQL with OLD_PASSWORD() function instead of PASSWORD().

[ More information here.]