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!
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 -__-
It is available in plesk 10. Use /usr/local/psa/admin/sbin/mchk –with-spam
mchk is evil – beware that it takes several hours to run during which mail downloads will be disabled from your server