[Dovecot] LDA Connection Refused with auth-userdb
Hi there,
I've encountered an issue with the LDA in which I get a "Connection
refused" error.
There is a serverfault question (
http://serverfault.com/questions/517262/dovecot-with-postfix-configuration-h...)
if you would like to read that version, otherwise, the details are as
follows:
Dovecot 2.0.19
Postfix 2.9.6
Ubuntu 12.04
The actual error message I receive is
---------------------------------------------------------------
postfix/pickup[16842]: 019023A06AB: uid=1000 from=<vagrant>
postfix/cleanup[19542]: 019023A06AB: message-id=
<20130620140358.019023A06AB@mail-server-berkshelf>
postfix/qmgr[16843]: 019023A06AB:
from=
On Fri, Jun 21, 2013 at 12:54 PM, Adam Ramirez smadam9@gmail.com wrote:
---> dovecot: lda: Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Connection refused
[...]
unix_listener auth-userdb { group = vmail mode = 0644 user = vmail }
File permissions on auth-userdb
srw-r--r-- 1 vmail vmail 0 Jun 20 13:04 /var/run/dovecot/auth-userdb
[...] # The default 0666 mode allows anyone to connect to the socket, but the # userdb lookups will succeed only if the userdb returns an "uid" field that # matches the caller process's UID. Also if caller's uid or gid matches the # socket's uid or gid the lookup succeeds. Anything else causes a failure.
I have tried changing the permissions and owner of auth-userdb to 777 and dovecot:dovecot, but there wasn't a change.
This sounds strange; did you restart dovecot and Postfix?
Cheers, Luca
Yes, dovecot and postfix are both restarted on each change I make to the config files.
On Fri, Jun 21, 2013 at 1:40 PM, Luca Fornasari luca.fornasari@gmail.comwrote:
On Fri, Jun 21, 2013 at 12:54 PM, Adam Ramirez smadam9@gmail.com wrote:
---> dovecot: lda: Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Connection refused
[...]
unix_listener auth-userdb { group = vmail mode = 0644 user = vmail }
File permissions on auth-userdb
srw-r--r-- 1 vmail vmail 0 Jun 20 13:04 /var/run/dovecot/auth-userdb
[...] # The default 0666 mode allows anyone to connect to the socket, but the # userdb lookups will succeed only if the userdb returns an "uid" field that # matches the caller process's UID. Also if caller's uid or gid matches the # socket's uid or gid the lookup succeeds. Anything else causes a failure.
I have tried changing the permissions and owner of auth-userdb to 777 and dovecot:dovecot, but there wasn't a change.
This sounds strange; did you restart dovecot and Postfix?
Cheers, Luca
participants (2)
-
Adam Ramirez
-
Luca Fornasari