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

Please speed up /usr/local/psa/admin/sbin/mchk --with-spam

Discussion in 'Plesk 10.x for Linux Suggestions and Feedback' started by tkalfaoglu, Jul 9, 2012.

  1. tkalfaoglu

    tkalfaoglu Regular Pleskian

    30
    68%
    Joined:
    Oct 6, 2005
    Messages:
    290
    Likes Received:
    1
    This command,
    takes a very long time to run, during which all POP3/IMAP logins are disabled and users screaming.

    Could you either keep POP3/IMAP enabled during its run, OR speed up the mchk somehow?

    Many thanks -t

    PS: Please also reduce the "forum requires 300 seconds between posts" if you want user feedback..
     
  2. tkalfaoglu

    tkalfaoglu Regular Pleskian

    30
    68%
    Joined:
    Oct 6, 2005
    Messages:
    290
    Likes Received:
    1
    In fact, even if you have personalized spam settings DISABLED in the server config, mchk still goes thru a lengthy process of:

    /usr/bin/perl -T /usr/local/psa/admin/sbin/spammng --add-to-blacklist *@xxxx.net --mailname xxxxx@xxxxxxxxxxxxxx.com
     
  3. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    The time it takes is directly proportional to the number of mailboxes you have on your box. If you have few, then the sooner it finishes otherwise if they are so many, longer it takes :)
     
  4. tkalfaoglu

    tkalfaoglu Regular Pleskian

    30
    68%
    Joined:
    Oct 6, 2005
    Messages:
    290
    Likes Received:
    1
    Wow, really? the more mailboxes, the longer it takes? That's news to me :)
    Unfortunately I can't just delete some customers to speed up plesk.

    Really -- mchk is a horrible beast that needs some major optimization.

    One tip: Don't shell out for each call, embed that call into mchk.
    Another tip: Don't disable pop3/imap logins during mchk run.. then it can run all day if it wants to.

    -t
     
    Last edited: Sep 16, 2012
Loading...