Re: [Dovecot] problem about mbox with quota

2008-05-18 Thread Timo Sirainen

On May 18, 2008, at 5:13 AM, Zhang Huangbin wrote:


Hi, all.

Does mbox format support quota?


dirsize backend should work pretty well.

dovecot: May 18 02:10:36 Error: POP3([EMAIL PROTECTED]): Unknown quota  
backend: storage=10240


You need to select the backend.

user_query = SELECT 2000 AS uid, 2000 AS gid, /home/vmail AS home,  
maildir, CONCAT('storage=',quota) AS quota FROM mailbox WHERE  
username='%u' AND active='1'


CONCAT('dirsize:storage=',quota)



PGP.sig
Description: This is a digitally signed message part


Re: [Dovecot] problem about mbox with quota

2008-05-18 Thread Zhang Huangbin

Hi, Timo.

Timo Sirainen wrote:

On May 18, 2008, at 5:13 AM, Zhang Huangbin wrote:


Hi, all.

Does mbox format support quota?


dirsize backend should work pretty well.

dovecot: May 18 02:10:36 Error: POP3([EMAIL PROTECTED]): Unknown quota 
backend: storage=10240


You need to select the backend.

user_query = SELECT 2000 AS uid, 2000 AS gid, /home/vmail AS home, 
maildir, CONCAT('storage=',quota) AS quota FROM mailbox WHERE 
username='%u' AND active='1'


CONCAT('dirsize:storage=',quota)



Thanks very much. :)

I think we should add this tip in wiki page:
http://wiki.dovecot.org/Quota
OR
http://wiki.dovecot.org/MailLocation/Mbox

--
Best Regards.

Zhang Huangbin

- OpenBSD 4.2 -release, i386.
- RHEL 5.1 Client