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

    0
     
    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

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

    Ysean Guest

    0
     
    argh!

    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

    0
     
  5. Intersys

    Intersys Guest

    0
     
    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?

    Regards...
    Martin
     
  6. Yanuar

    Yanuar Guest

    0
     
    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:
    Code:
    # Local services
    getquota        10025/tcp                       # getquota.pl
    Then start your getquota service using:
    Code:
    chkconfig getquota on
    Check if the service is listening on port 10025 using:
    Code:
    netstat -an | grep LISTEN
    You have to see something like this:
    tcp 0 0 0.0.0.0:10025 0.0.0.0:* LISTEN

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

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