[Dovecot] logging IMAP username rather than UNIX username
Timo Sirainen
tss at iki.fi
Wed Oct 22 20:40:08 EEST 2008
On Wed, 2008-10-22 at 12:00 +0200, Dale Gallagher wrote:
> Hi there
>
> I'd like to change my setup to log the _actual_ IMAP user's login,
> rather than the UNIX username. My system uses a virtual uid setup with
> qmail, where the mailboxes are owned by the 'vmail' user and
> authentication is via checkpassword using user%domain (ie email, just
> with % instead of @). So dovecot is recording _all_ logins as:
>
> imap-login: Login: user=<vmail>, method=PLAIN, rip=127.0.0.1,
> lip=127.0.0.1, secured
That means your authentication changes the username.
> passdb checkpassword {
> args = /var/qmail/bin/qmail-vauth
> }
Most likely qmail-vauth changes USER environment to vmail. If you can't
edit qmail-vauth directly, create a wrapper script that unsets the USER
environment before calling Dovecot's checkpassword-reply.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20081022/a3ffeda2/attachment.bin
More information about the dovecot
mailing list