[Dovecot] Maildirsize automatically (re)build

Jan van den Berg jan.vandenberg at isp.solcon.nl
Mon Mar 10 14:54:25 EET 2008


Right...
I made a typo: 
userdb_quotarule instead of userdb_quota_rule (weird that Dovecot
doesn't complain about this).

But now I get this error:

Mar 10 13:52:29 mx01 dovecot: IMAP(roka-05): Quota rule: root=
mailbox=maildir bytes=10485760 messages=0
Mar 10 13:52:29 mx01 dovecot: IMAP(roka-05): Quota root QUOTA: Invalid
rule: maildir:storage=10M:ignore=Spam e-mail

Cheers,

Jan
-----Oorspronkelijk bericht-----
Van: dovecot-bounces+jan.vandenberg=isp.solcon.nl at dovecot.org
[mailto:dovecot-bounces+jan.vandenberg=isp.solcon.nl at dovecot.org] Namens
Jan van den Berg
Verzonden: maandag 10 maart 2008 13:40
Aan: Dovecot Mailing List
Onderwerp: [Dovecot] Maildirsize automatically (re)build

Hi,

Im testing with 1.1RC1. I read here:
http://wiki.dovecot.org/Quota/Maildir

"If you configure quota limits in Dovecot (e.g.
quota=maildir:storage=102400(kilobytes)), Dovecot makes sure that this
header is kept up to date. If the file does not exist, it's simply
rebuilt." 

This is my query:

password_query = SELECT username as user, 
username as userdb_user, passwd as password, 
1001 as userdb_uid, 1001 as userdb_gid, 
concat('maildir:storage=', quota, 'M:ignore=Spam\ e\-mail') AS
userdb_quotarule,
 'Trash:storage=20M' as userdb_quota_rule2 
FROM mailboxen 
WHERE username = '%n' 

Also in the main config I use:
mail_plugins: quota imap_quota
plugin:
  quota: maildir


So I use maildir:storage in my config. However when I delete the
maildirsize (for testing purposes) it doesn't get automatically
recreated? According to the Wiki it should right?

Cheers,

Jan


More information about the dovecot mailing list