[Dovecot] dbox and quota question

Timo Sirainen tss at iki.fi
Sat Jul 12 17:40:27 EEST 2008


On Sat, 2008-07-12 at 16:38 +0200, Robert Schetterer wrote:
> Timo Sirainen schrieb:
> > On Sat, 2008-07-12 at 16:12 +0200, Robert Schetterer wrote:
> >>>> I think existing quotas in sql could be used
> >>>> if dovecot would ignore that no
> >>>> maildir storage is used and simply
> >>>> interpretes existing maildirsize files, which maybe created out of 
> >>>> existing sql quota entries
> >>>> ( but thats speculate )
> >>> You can of course create a script for yourself that does that, but I
> >>> don't think Dovecot should bother trying to do it.
> >> Hi Timo, it maybe possible with
> >> Post-login scripting
> >>
> >> like
> >>
> >> QUOTA=`/usr/bin/mysql -N -B -D${DBDBSE} -h ${DBHOST} -u${DBUSER} 
> >> -p${DBPASS} -e "SELECT ${DBQOTA} FROM ${DBTABL} where username='$USER'" 
> >> 2>/dev/null`
> >>
> >> but i am lost how to answer this in imap to the client
> > 
> > You're using userdb sql, right? Why don't you just have it return the
> > quota using user_query? See the examples in
> > http://wiki.dovecot.org/Quota/1.1
> > 
> 
> seems not to work with dbox
> 
> quota maildir: No maildir storages, ignoring quota

You'll have to use dict quota. That's independent of how the limits as
configured.
-------------- 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/20080712/2c4dab89/attachment.bin 


More information about the dovecot mailing list