[Dovecot] Quota, Postgres + Postfixadmin

Roman lists at hasnoname.de
Thu Oct 14 14:55:29 EEST 2010


Hi everybody,

i am currently testing dovecot-1.2.9 together with postfix, postgres and 
postfixadmin.

After setting up the basics, i wanted to get the quotas working... 


So i edited the dovecot.conf:

  mail_plugins = quota imap_quota
  mail_plugins = sieve quota
  quotadict = pgsql:/etc/dovecot/dovecot-dict-quota.conf
  quota = dict:user::proxy::quotadict

and dovecot-dict-quota.conf:
connect = host=localhost dbname=postfix user=yyy password=xxx
map {
  pattern = priv/quota/storage
  table = quota2
  username_field = username
  value_field = bytes
}
map {
  pattern = priv/quota/messages
  table = quota2
  username_field = username
  value_field = messages
}


After moving some mail on and off the account and finally cleaning out any 
mail (verified via console) quota2 looks like this:

username		bytes		messages
test at testdomain.de	-1009339	-1

So it seems to me its calculating sth. wrong? Or am i doing sth. wrong?

greetings,
Roman
-- 
printk(KERN_ERR "happy meal: Transceiver and a coke please.");
        linux-2.6.6/drivers/net/sunhme.c


More information about the dovecot mailing list