[Dovecot] Unexplainable problem with POP3 quotas

Marco Marongiu brontolinux at gmail.com
Tue May 5 17:55:28 EEST 2009


2009/5/1 Timo Sirainen <tss at iki.fi>:
> On Thu, 2009-04-30 at 17:36 +0200, Marco Marongiu wrote:
>> * send a message slightly smaller than the number of bytes added at
>> step 2 (e.g., 2000); we are still under the 80% limit
>> * log in via POP to make dovecot update maildirsize
>
> This is the problem. Your MDA should enforce the quota usage. There's no
> guarantees that Dovecot updates maildirsize after the Maildir has been
> modified externally. Even when it updates it, it uses a different code
> path ("quota recalculation"), which doesn't trigger quota warnings.
>
> So use Dovecot's deliver and it'll do the quota enforcing and warnings.


May  5 16:22:51 posta-st-mda-v01 deliver(faccalai at posta.staging):
quota: Executing warning: /usr/local/dovecot/bin/quota-warning.sh 80
/mnt/maildir/posta.staging/USER/f/fa/faccalai at posta.staging faccalai
posta.staging

It worked!!! Thank you!

What I did is:

* recompiling a dovecot anew with support for raw storage, and deliver
(the initial one didn't have them)
* configured dovecot as per documentation (Quota 1.1, LDA, LDA/Postfix) so that:
  * it just serverd for authentication purposes (protocols = none)
  * it has a protocol lda section, with mail_plugins = quota
  * configured the auth default to create the master socket
* changed postfix's main.cf and master.cf as per documentation
* set a user's quota near the 80% limit and started testing

Thanks a lot again

Ciao
--bronto

>
>
>


More information about the dovecot mailing list