Koozali.org: home of the SME Server

Quotas and info for IMAP accounts

Offline macwunder

  • *
  • 17
  • +0/-0
Quotas and info for IMAP accounts
« on: May 05, 2011, 06:01:57 AM »
I'm used to seeing quota information announced with IMAP accounts, but this doesn't seem to be the case with SME. Should I be able to see the quota in the IMAP account information? Am I missing something?

Jeff

Offline mmccarn

  • *
  • 2,657
  • +10/-0
Re: Quotas and info for IMAP accounts
« Reply #1 on: May 05, 2011, 12:59:15 PM »
SME does not impose disk quotas by default.

Use the "Quotas" option in server-manager to set user quotas.

I don't know if you're going to see the quota in your IMAP client once it's set, though.

http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter9#Quotas

Offline macwunder

  • *
  • 17
  • +0/-0
Re: Quotas and info for IMAP accounts
« Reply #2 on: May 05, 2011, 03:23:27 PM »
Yes, I have a quota defined for my particular account (10G soft, and 20G hard):


Another server I have (running CentOS5 with BlueOnyx) displays quota in IMAP:


But the SME8 server does not:


Does this mean that SME isn't enforcing quotas at the OS level?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Quotas and info for IMAP accounts
« Reply #3 on: May 05, 2011, 04:38:08 PM »
Does this mean that SME isn't enforcing quotas at the OS level?

no.. SME enforces quotas on ALL files.. not only in imap/mail

Offline macwunder

  • *
  • 17
  • +0/-0
Re: Quotas and info for IMAP accounts
« Reply #4 on: May 05, 2011, 05:39:16 PM »
no.. SME enforces quotas on ALL files.. not only in imap/mail
I suppose I worded that improperly... The OS isn't reporting that it is enforcing, at least through IMAP...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Quotas and info for IMAP accounts
« Reply #5 on: May 06, 2011, 02:17:59 AM »
I suppose I worded that improperly... The OS isn't reporting that it is enforcing, at least through IMAP...

It is enforcing quota, but AFAIK, quota use information isn't available via IMAP. Some later version of dovecot and/or a configuration change would be required for that.

Quota information is only available from IMAP servers if they have 'QUOTA' in the response to the CAPABILITY command:

http://www.apps.ietf.org/rfc/rfc2087.html

The CAPABILITY string in SME server's IMAP server is:

AUTH=LOGIN IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Quotas and info for IMAP accounts
« Reply #6 on: May 06, 2011, 08:48:02 AM »
The CAPABILITY string in SME server's IMAP server is:

AUTH=LOGIN IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS
Just out of curiosity: How did you retrieve this information?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Quotas and info for IMAP accounts
« Reply #7 on: May 06, 2011, 03:21:57 PM »
Just out of curiosity: How did you retrieve this information?

We set it explicitly:

cat /service/imap/config

The IMAP_CAPABILITY environment variable is used by imapfront-auth.

The content of our configuration was determined by connecting manually to a standard dovecot installation (but with an earlier version of dovecot).