[Dovecot] Big quota problem
tss at iki.fi
Tue Dec 6 19:21:12 EET 2005
On Tue, 2005-12-06 at 17:11 +0000, William Ross wrote:
> On 6 Dec 2005, at 16:51, Timo Sirainen wrote:
> > On Fri, 2005-10-28 at 17:52 +0200, Riccardo Bini wrote:
> >>> I just wrote this: http://wiki.dovecot.org/Quota
> >> Well... but you have to correct %n with vpopmail backend. %u in the
> >> default_mail_env (like in the log) is always the user name without
> >> the
> >> domain....
> > That's a bug in Dovecot's vpopmail code. I don't know why it doesn't
> > work. Would be nice if someone using vpopmail fixed that..
> point me in the right direction and I'll have a go.
If user logs in as user at domain, then they both should be in
request->user string. %d is taken from there. I don't see request->user
being modified in that file either, so I think it should have worked..
Or is the problem here that user logs in as "user" and it internally
gets converted to user at domain? In that case request->user should be
modified from vpw->pw_name or vpop_user/vpop_domain or something.. I
think I used to do that, but that seemed to break it even worse:
* src/auth/passdb-vpopmail.c: Don't replace request->user with
vpw->pw_name. It drops domain part and causes userdb lookup to
Maybe the right thing to do is:
request->user = p_strdup(request->pool, "%s@%s", vpop_user, vpop_domain);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20051206/028c97d5/attachment-0001.pgp
More information about the dovecot