On Fri, 2010-07-02 at 10:06 +0200, Joan wrote: > It seems to me that dovecot --exec-mail doesn't do the mysql lookups > to get the usersdb.
Yes, you're right. --exec-mail doesn't do a userdb lookup. With v2.0 you could use "imap -u username" and it does a userdb lookup. Did you try the quota recalculation when logging in normally, instead of with --exec-mail?