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

Delete spam mail when it comes to mailbox

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by CatalinS, Sep 23, 2010.

  1. CatalinS

    CatalinS Basic Pleskian

    20
    40%
    Joined:
    Jan 21, 2010
    Messages:
    33
    Likes Received:
    0
    Hello,

    Is there a way to enable this feature for all email accounts ? I have about 250 emails and clicking every one of them to enable this feature is a waste of time. Since Plesk is mostly using mysql to make adjustments is there a mysql command or a linux command to enable it for all email accounts at once ?

    PS: If you can tell me what exactly is being changed when enabling this feature I will find a workaround by myself.

    Thanks.
     
    Last edited: Sep 23, 2010
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Try to set field 'spamfilter' in 'mail' table to 'true' and run

    for rebuilding all mailsettings with enabled spamfilter.
     
  3. CatalinS

    CatalinS Basic Pleskian

    20
    40%
    Joined:
    Jan 21, 2010
    Messages:
    33
    Likes Received:
    0
    Thank you very much !!


    mysql> update spamfilter set reject_spam='true';

    /usr/local/psa/admin/sbin/mchk --with-spam

    And everything worked as expected.
     
Loading...