[Dovecot] Marathon Day 6 of First Install: MySQL Connection Problem

Simon Brereton simon.brereton at buongiorno.com
Mon Oct 24 22:38:28 EEST 2011


On 24 October 2011 15:00, Jack Fredrikson <jackfredrikson at yahoo.com> wrote:
> Hi;
> This is my 6th day installing my first Postfix/Dovecot installation. The Postfix mailing list indicates I've got the MTA under control so now I'm seeking your help with the MDA. I get these errors with legitimate email addresses:
> Oct 24 11:47:38 myserver dovecot: auth-worker: Error: mysql(localhost): Connect failed to database (postfix): Access denied for user 'dovecot'@'localhost' (using password: YES) - waiting for 25 seconds before retry
>
> Now I've logged in myself:
> mysql -u dovecot -p
> Enter password: xxx
> and succeeded. What am I doing wrong?
>
>
> I've noticed that every time I restart dovecot I get this error in the dovecot-deliver.log:
>
> Oct 24 11:31:11 lda: Error: userdb lookup: connect(/usr/local/var/run/dovecot/auth-userdb) failed: Permission denied (euid=512(vmail) egid=512(vmail) missing +r perm: /usr/local/var/run/dovecot/auth-userdb, dir owned by 0:0 mode=0755)
> Oct 24 11:31:11 lda: Fatal: Internal error occurred. Refer to server log for more information.
>
>
> Every time I go to chmod 666 on that file, restarting dovecot wipes those permissions. How fix?
> Even when I fix that, I still get the "temporary failure".
> Please advise.

what user are you running dovecot as?

Does this thread help?

http://www.mail-archive.com/dovecot@dovecot.org/msg32290.html

or this one?

http://www.mailinglistarchive.com/html/dovecot@dovecot.org/2010-08/msg01136.html


Simon


More information about the dovecot mailing list