As of now, there is no direct option to enable spamassassin for email accounts in windows plesk via web browser . Please follow below steps to do the same via command line:

Steps:

1) Run cmd.exe as administrator.

2)Execute the following in the command prompt to use psa db:

“%plesk_dir%\MySQL\bin\mysql” -P8306 -uadmin -p psa

Since Plesk 12.5, please use below command.

“plesk db”

3) Run below query to output all the mail addresses to a file text.txt

select concat(mail.mail_name,’@’,domains.name) as address from mail,domains,accounts where mail.dom_id=domains.id and mail.account_id=accounts.id order by address into outfile ‘test.txt’ ;

4) Enable SpamAssassin using below command.

FOR /F %i in (test.txt) do “%plesk_bin%\spamassassin.exe -u %i -action del

5) Enable antivirus using below command line

FOR /F %i in (test.txt) do “%plesk_bin%\mail.exe –update %i -antivirus inout