dale gallagher
2007-Nov-03 16:14 UTC
[Dovecot] IMAP vs system username logging with checkpassword auth
Hi 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. Now I'm unable to see which virtual users log in. Any pointers on how to configure dovecot to log the actual username given during the IMAP dialogue would be appreciated. My dovecot.conf includes the following: auth default { mechanisms = plain passdb checkpassword { args = /var/qmail/bin/qmail-vauth } userdb prefetch { } user = auth } An example logfile entry: 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
Timo Sirainen
2007-Nov-03 21:17 UTC
[Dovecot] IMAP vs system username logging with checkpassword auth
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, TLSIt 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: signature.asc 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-0002.bin>