[Dovecot] RFC: Different quota for dovecot and deliver

Timo Sirainen tss at iki.fi
Fri Jul 17 19:43:45 EEST 2009


On Fri, 2009-07-17 at 10:51 +0200, Philipp Marek wrote:
> What I'd like to achieve is that postfix uses the trigger value from the 
> Database as well, but that deliver allows a small bit more - say 5, 10, or 
> 20MB.

Actually there shouldn't be a need to patch Dovecot to get this. You
could just do something like:

user_query = select .., \
  '*:' || (case '%s' when 'deliver' then (quota+20*1024) else quota)) as quota_rule, ..

> I've now looked into the sources, and tried to sketch the basic change that I 
> imagine; please see the attached patch.

I'm not exactly sure what you intended the patch to do. dict-sql is used
only for storing the actual current quota usage (not limits) to database
when using dict quota (and not Maildir++ quota).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090717/8ae69c46/attachment.bin 


More information about the dovecot mailing list