[Dovecot] a strange doveadm behavior

Timo Sirainen tss at iki.fi
Fri Apr 8 16:11:38 EEST 2011

On Wed, 2011-04-06 at 19:37 +0200, fakessh @ wrote:

> doveadm(fakessh): Error: userdb lookup:
> connect(/var/run/dovecot//auth-userdb) failed: Permission denied
> (euid=514(fakessh) egid=100(users) missing +r
> perm: /var/run/dovecot//auth-userdb, euid is not dir owner)
> [root at r13151 ~]# chmod og+w  /var/run/dovecot/auth-userdb

For a more permanent solution you can set:

service auth {
  unix_listener auth-userdb {
    mode = 0666

> [fakessh at r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d
> doveadm(dkimproxy): Fatal: seteuid(0) failed: Operation not permitted
> [fakessh at r13151 ~]$ 

You have multiple users with different UIDs, right? You need to run
doveadm as root then, so that it can change the UID when needed (and
then you don't also need to change the permissions above).

More information about the dovecot mailing list