Add spam filtering for all users in Plesk

These two commands will enable SpamAssassin for all users on a Plesk 8 server:

# mysql -u admin -p`cat /etc/psa/.psa.shadow` psa
mysql> update mail set spamfilter = 'true' where postbox = 'true';
# /usr/local/psa/admin/bin/mchk --with-spam

Thanks to Sean R. for this one!

Tagged

3 thoughts on “Add spam filtering for all users in Plesk

  1. Nick says:

    mchk is not present in plesk 9+ what can i do in plesk 10 to get this to work? I think it’s absolutely stupid that I have to pay for an extra license to get an OPEN SOURCE application to work -__-

  2. mscavitto says:

    It is available in plesk 10. Use /usr/local/psa/admin/sbin/mchk –with-spam

  3. turgut kalfaoglu says:

    mchk is evil – beware that it takes several hours to run during which mail downloads will be disabled from your server

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>