[Dovecot] Auth USER lookup failed

Timo Sirainen tss at iki.fi
Wed Nov 7 18:14:44 EET 2012


On 6.11.2012, at 13.08, Angel L. Mateo wrote:

> Nov  6 11:58:56 myotis30 dovecot: auth: Error: userdb(user1): client doesn't have lookup permissions for this user: userdb uid (113246) doesn't match peer uid (14585) (change userdb socket permissions)
..
> 	I have checked the socket permissions, but they are 0666 (if I'm looking the right socket):
> 
> root at myotis30:/etc/dovecot/conf.d# ls -l /var/run/dovecot/auth-userdb
> srwxrwxrwx 1 dovecot root 0 nov  6 11:43 /var/run/dovecot/auth-userdb

Nowadays the auth-userdb permissions are 0666, which add the extra check that you can only lookup yourself. Since you're not looking up yourself, you're getting the permission error about it.

> 	In fact, I have tried to put all sockets with permissions 0666 and 0777, but the error persists.

If the socket is 0777 this error shouldn't happen. Note that you need to change it from dovecot.conf, chmod doesn't matter after startup anymore.

This will probably be helpful in future: http://hg.dovecot.org/dovecot-2.1/rev/c811aab61355




More information about the dovecot mailing list