Client cuota web limit

Discussion in 'General' started by esezako, Feb 5, 2014.

  1. esezako

    esezako Member

    If a client have a Cuota Web limit and many sites and mails, How can i deactivate all client sites and mails if in sum exceeds the limit?

    Can i do this in a script?

    Thanks in advance.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    He can not exceed that limit. The web quota is set a s filesystem quota, so it can not be exceeded and the mail quota is handled by the imap daemon, so it can not be exceeded as well. and ispconfig takes care that the sum of mailboxes and websites does not exceed the overall client web / mailquota that you have set for the client.
  3. esezako

    esezako Member

    Then to me it is not working for me.

    When I say "web quota" I mean the one in the "Limits" tab of the customer record.
  4. esezako

    esezako Member

    I only set limit in client, not to a their sites and mailboxes.

    The idea is a client can use all your limit in all things.
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    The limit in client is a "virtual" value that ispconfig uses to enforce that a client may not add websites or mailboxes that exceed this value. The administrator can overrde that off course. So when you created mailboxes or websites without limits for your clients as admin, then you disabled all quotas for this client.
  6. esezako

    esezako Member

    1) When i create a websites like administrator, by default the limits are in -1 (unlimited).

    2) If a customer has a limit "virtual" 2Gb and have two websites, does the customer must decide how to divide this limit between the 2 web sites or each can use what you need until the sum of both are 2Gb?

    3) This limit contain de database filesystem usage?
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    1) Yes. Becase you are the administrator and not the clinet. When you login as client or use the login as client function of the client module, then you can not create a unlimited site.

    2) yes. He can change that values at any time later.

    3) no. Mysql does not support quota. But we are working on some kind of virtual quota for mysql.
  8. esezako

    esezako Member


    1) website limit include mail limit or are 2 separate limits?

    2)I have a php script that sum web + mail + db usage and send a mail to admin and to a client.
    How can i deactivate a client from a php script?
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    1) They are separate, see limits tab of the client.
    2) you can deactivate websites, mailboxes and databases with the remote api.
  10. esezako

    esezako Member

    OK, many thanks.

Share This Page