[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
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.
participants (2)
-
dale gallagher
-
Timo Sirainen