Maildir Quota

Discussion in 'Installation/Configuration' started by dmw555, Jun 5, 2006.

  1. dmw555

    dmw555 New Member

    I don't understand why you switch off mail quota if set maildir format ?

    i set maildir format, manually uncomment include=.quota.rc
    and set variable of QUOTA in procmail.rc
    and all working fine.

    but i change one string in quota.rc to:
    MAILBOX_SIZE_REPORT_=`du -bs ${DEFAULT} | awk '{print $1}'`

    it's command i think better for big size mailbox.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Mailquota works even when you do not uncomment the quota include. ISPConfig uses system quota for maildirs, not the quota script.

    The quota script has proven to bee too unreliable and not working correctly for maildirs.
     
  3. dmw555

    dmw555 New Member

    but why ?

    this command:
    MAILBOX_SIZE_REPORT_=`du -bs ${DEFAULT} | awk '{print $1}'`
    just sum size of files in maildir directory and not else

    if MAILBOX_SIZE_REPORT_ < MAILQUOTA then ok
    else send reply message

    what's problem ? i'm not undestand.
    explain pls.

    thanks.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Because the Maildirs of the users are in subdirectories of the web's base directory for which you've already applied a quota (web space). If you use mbox then the mail boxes are in /var/spool/mail which does not belong to the web's base directory, therefore we apply a special quota to them.
     

Share This Page