[Dovecot] dsync replication: quota counted twice

Timo Sirainen tss at iki.fi
Mon Apr 8 13:15:54 EEST 2013


On 8.4.2013, at 13.05, Oli Schacher <dovecot at lists.wgwh.ch> wrote:

> I enabled quota + warnings in my replication test setup and now
> whenever a mail gets delivered the quota is counted twice (probably due
> to both servers using the same mysql quota backend)

Yes. Dovecot doesn't know that they are the same quota backend.

> and quota warnings
> are fired too early. After a doveadm quota recalc -u <username> the
> quota is correct again. How do I make dovecot only count the quota on
> the server where the mail was added originally? 

There's no way to make quota work reliably that way. You need to use different quota backends. Either two mysql databases (or tables), or the other Dovecot could simply be using a dict file quota.



More information about the dovecot mailing list