[Dovecot] IMAP vs system username logging with checkpassword auth
Timo Sirainen
tss at iki.fi
Sat Nov 3 23:17:13 EET 2007
On Sat, 2007-11-03 at 18:14 +0200, dale gallagher wrote:
> After upgrading to dovecot 1.0.7 I noticed that the actual username is
> no longer logged, but rather the system user (in my case 'vmail')
> under which my virtual set-up runs.
Upgrading from what version? I don't think I've changed anything for a
long time related to this.
> auth default {
> mechanisms = plain
> passdb checkpassword {
> args = /var/qmail/bin/qmail-vauth
> }
..
> 2007-11-03 15:41:56.027191500 dovecot: Info: imap-login: Login:
> user=<vmail>, method=PLAIN, rip=192.168.0.141, lip=192.168.0.10, TLS
It looks like your qmail-vauth changes $USER environment to "vmail",
which causes dovecot-auth to change the username internally. Since some
people really want this feature, you'll probably have to write a wrapper
checkpassword that unsets $USER before it calls Dovecot's
checkpassword-reply.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20071103/5e761a05/attachment.bin
More information about the dovecot
mailing list