[Dovecot] EUID not changing when delivering to a mailbox
Timo Sirainen
tss at iki.fi
Fri Feb 4 19:52:25 EET 2011
On Thu, 2011-02-03 at 07:50 +0100, rastik at tereus.eu wrote:
> dovecot: auth-worker(default): sql(joe at mydomain.com,myipaddr): query:
> SELECT CONCAT('/var/mail/', maildir) AS userdb_home, username as user,
> password, CONCAT('*:bytes=', quota) AS userdb_quota_rule, uid, gid
> FROM mailbox WHERE username = 'joe at mydomain.com' AND active = 1
> dovecot: auth(default): client out: OK 1 user=joe at mydomain.com
> uid=1000 gid=12
It's returning uid and gid to login process as a reply to passdb query.
They're ignored by login process.
> dovecot: auth(default): master in: REQUEST 11 17252 1
> dovecot: auth(default): prefetch(joe at mydomain.com,myipaddr): success
> dovecot: auth(default): master out: USER 11 joe at mydomain.com
> home=/var/mail/mydomain.com/joe/ quota_rule=*:bytes=-1
They should be here as a reply to userdb query.
So: Prefix uid and gid and with userdb_.
More information about the dovecot
mailing list