Roundcube Community Forum

 

Disk Usage Indicator Not Showing

Started by roundjauser, October 28, 2012, 01:08:34 PM

Previous topic - Next topic

SKaero

You can see in the IMAP log that the imap server isn't returning the "QUOTA" capability. Since your imap server doesn't support it Roundcube can't show it.

111eto

#16
Do you know how to fix that?

I set the quota for each mailbox in postfixadmin

I found that the whole block is called layout-sidebar and the part I need is footer small

But I couldn't find in the templates where footer small is...

Also, if I execute the command
doveadm quota get -u user@my_domain.comI will get a response in the terminal
Quota name       Type    Value  Limit    %
storage=51200000 STORAGE 25092 102400    24
- "storage=51200000" - this record is taken from the postfixadmin db and displayed in bytes
but the limit will show me the one that I set in dovecot >>> 90-quota.conf and not in postfixadmin

maybe it will be helpful - my user_query is:
user_query = SELECT '/var/my_mail/mail_box/%d/%u' as home, 'maildir:/var/my_mail/mail_box/%d/%u' as mail, 1024 AS uid, 8 AS gid, concat('dirsize:storage=', quota) AS quota FROM mailbox WHERE username = '%u' AND active = '1'

SKaero

Since you seem to be using Dovecot you'll need to make sure the imap_quota plugin is setup https://doc.dovecot.org/2.3/configuration_manual/quota_plugin/ it sounds like the quota plugin is already setup but you should verify that is done correctly as well.

111eto

Quote from: SKaero on February 07, 2025, 09:41:47 PMSince you seem to be using Dovecot you'll need to make sure the imap_quota plugin is setup https://doc.dovecot.org/2.3/configuration_manual/quota_plugin/ it sounds like the quota plugin is already setup but you should verify that is done correctly as well.
- very useful, Thank you!

Good news, after making a change in 20-imap:
protocol imap {
mail_plugins = $mail_plugins imap_quota
}

the Roundcube started displaying quota data


However, I still can't solve the problem with the limit
Quota name      Type    Value  Limit    %
storage=51200000 STORAGE 25092 102400    24

The current limit was define
plugin {
  quota_rule = *:storage=0
  quota_rule2 = *:bytes=100M
}

But I am looking for the limit to be taken from the postfixadmin_database, not set manually as I did like 100 Mb,

For example, if I set for each user its own limit in postfix admin, for example for one mailbox - 100 MB and for another mailbox I set 50 MB, then I would like to see for each user its own limit and not the same limit for all mailboxes that I set manually in quota_rule2

Maybe I did something wrong... idk
but now my 90-quota looks like this:
plugin {
  quota_rule = *:storage=0
  quota_rule2 = *:bytes=100M

plugin {
  quota = dict:User quota::proxy::sqlquota
}

dict {
  sqlquota = mysql:/etc/dovecot/dovecot-dict-sql.conf
}

plugin {
  quota_grace = 10%%
  # 10% is the default
  quota_status_success = DUNNO
  quota_status_nouser = DUNNO
  quota_status_overquota = "552 5.2.2 Mailbox is full"
}

111eto

Fixed ))))

in my case

dovecot-sql.conf.ext
user_query = SELECT '/var/my_mail/mail_box/%d/%u' as home, 'maildir:/var/my_mail/mail_box/%d/%u' as mail, 1024 AS uid, 8 AS gid, concat('*:bytes=', quota) AS quota_rule FROM mailbox WHERE username = '%u' AND active = '1'
conf.d/10-mail.conf
# Enable quota plugin for tracking and enforcing the quota.
mail_plugins = $mail_plugins quota

conf.d/20-imap.conf
protocol imap {
 # Enable the IMAP QUOTA extension, allowing IMAP clients to ask for the
 # current quota usage.
 mail_plugins = $mail_plugins imap_quota
}

conf.d/90-quota.conf
plugin {
quota_rule = *:storage=0
quota = dirsize:User quota
quota_grace = 10%%
# 10% is the default
quota_status_success = DUNNO
quota_status_nouser = DUNNO
quota_status_overquota = "552 5.2.2 Mailbox is full"
}

With these settings, when I set a quota in postfixadmin - it is correctly displayed in Roundcube
(a couple of mb are losing, but this is not critical, the main thing is that the data on the limit is received from the database)

Thank you SKaero!