1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

IMP / Webmail display quota limit and usage

Discussion in 'Plesk for Linux - 8.x and Older' started by Ysean, Dec 10, 2006.

  1. Ysean

    Ysean Guest

    Does anyone know how to get IMP to PROPERLY display the quota limit and usage of the e-mail account? It seems Plesk uses a non-standard quota method and this causes IMP to just display "quota: no limit" instead of the actual limit and usage information.

    PLEASE HELP! This is driving us and customers crazy.
  2. superbock

    superbock Guest

    It's is just not possible. SW-SOFT's Qmail package does not implement Maildir++ specification.
  3. Ysean

    Ysean Guest


    This is yet another reason (I know it's not particularly qmail's issue on this) for SWsoft to go to postfix, among many others. God, SWsoft pisses me off so much!
  4. Yanuar

    Yanuar Guest

  5. Intersys

    Intersys Guest

    IMP Quota Display

    Hello Yanuar

    Can you explain if you have your script working under Plesk 8.1.1?

    I configured every thing as you posted but receive: user email and Quota Used: 0 MB of 0 MB (0 %)

    If I run the perl script from command line it shows correct quota for the user I pass as a command.

    Did you had to change any permissions on this scrips?

  6. Yanuar

    Yanuar Guest

    I haven't upgrade mine to 8.1.1 or try it using php5, but I think it should work fine, just remember, you have to run the perl script as a service.
    The script itself is root owner with 700 permission.

    Don't forget to add apropriate line in your /etc/services, mine is:
    # Local services
    getquota        10025/tcp                       # getquota.pl
    Then start your getquota service using:
    chkconfig getquota on
    Check if the service is listening on port 10025 using:
    netstat -an | grep LISTEN
    You have to see something like this:
    tcp 0 0* LISTEN

    Try telneting to your localhost port 10025, type the email address .. cross your finger

    Add protection to your /etc/hosts.allow:
    You can add a couple line like this for logging purpose:
    ($username,$domain) = split(/@/,$var);
    print FILE "$var\n";
    $usage = `/usr/local/psa/admin/bin/mailmng --get-mailbox-size --in-blocks --domain-name=$domain --mailname=$username`;