[Dovecot] dbox and quota question

Robert Schetterer robert at schetterer.org
Sat Jul 12 17:38:17 EEST 2008


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
-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


More information about the dovecot mailing list