Current time: 11-29-2024, 08:32 PM Hello There, Guest! (LoginRegister)


Post Reply 
Roundcube quota error
Author Message
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #5
RE: Roundcube quota error
i use quota rules:
add to plugin section:
plugin {
quota = maildir:User quota
quota_rule = *:storage=1G
}

where 1G means default quota is 1 GByte.

then in the sql config:
SELECT concat('/var/mail/virtual/', domain.domain_name, '/',mail_acc) as home, '1001' as uid, '8' as gid, concat(''*:bytes='', quota) AS quota_rule FROM mail_users inner join domain on mail_users.domain_id = domain.domain_id WHERE mail_acc='%n' and (mail_type='normal_mail' OR mail_type='normal_mail,normal_forward');

this overrides the 1G Default with the value specified in the quota field (quota is assumed to be stored in bytes...)

I use this in an no ispcp setup so it is not tested to work with ispcp...
(This post was last modified: 03-07-2009 08:08 AM by rbtux.)
03-07-2009 08:08 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Roundcube quota error - saracibar - 02-28-2009, 05:35 PM
RE: Roundcube quota error - saracibar - 03-07-2009, 03:34 AM
RE: Roundcube quota error - rbtux - 03-07-2009, 03:41 AM
RE: Roundcube quota error - BeNe - 03-07-2009, 07:36 AM
RE: Roundcube quota error - rbtux - 03-07-2009 08:08 AM
RE: Roundcube quota error - BeNe - 03-07-2009, 08:55 AM
RE: Roundcube quota error - rbtux - 03-07-2009, 09:15 AM
RE: Roundcube quota error - BeNe - 03-07-2009, 09:22 AM
RE: Roundcube quota error - BeNe - 03-07-2009, 10:22 AM
RE: Roundcube quota error - rbtux - 03-07-2009, 10:52 AM
RE: Roundcube quota error - BeNe - 03-07-2009, 11:10 AM
RE: Roundcube quota error - rbtux - 03-07-2009, 11:19 AM
RE: Roundcube quota error - BeNe - 03-07-2009, 10:11 PM
RE: Roundcube quota error - rbtux - 03-07-2009, 10:29 PM
RE: Roundcube quota error - BeNe - 03-07-2009, 11:06 PM
RE: Roundcube quota error - TheCry - 03-12-2009, 03:19 AM
RE: Roundcube quota error - BeNe - 03-12-2009, 03:54 AM
RE: Roundcube quota error - TheCry - 03-12-2009, 04:12 AM
RE: Roundcube quota error - BeNe - 03-12-2009, 05:06 PM
RE: Roundcube quota error - FISA4 - 03-13-2009, 08:31 AM
RE: Roundcube quota error - rbtux - 03-13-2009, 09:24 AM
RE: Roundcube quota error - FISA4 - 03-13-2009, 09:32 AM
RE: Roundcube quota error - BeNe - 03-13-2009, 04:45 PM
RE: Roundcube quota error - FISA4 - 03-13-2009, 11:13 PM
RE: Roundcube quota error - alecksievici - 03-14-2009, 04:43 PM
RE: Roundcube quota error - fhawk - 03-14-2009, 07:42 PM
RE: Roundcube quota error - BeNe - 03-15-2009, 01:37 AM

Forum Jump:


User(s) browsing this thread: 7 Guest(s)