- Plesk 11.5 for Windows
By default, SpamAssassin (thereafter, SA) built into Plesk executes only local tests on the incoming messages. But SA also has online tests, that use external services for spam detection.
How to enable network test in SA?
Plesk starts SA on-demand, when mail server pickup event is being executed. It starts the perl daemon with the following options:
"C:\\PROGRA~2\\PARALL~1\\Plesk\\ADDITI~1\\Perl\\bin\\perl" "C:\\Program Files (x86)\\Parallels\\Plesk\\Additional\\SpamAssassin\\psa-spam-filter" "--virtual-config-dir=C:\\Program Files (x86)\\Parallels\\Plesk\\Additional\\SpamAssassin\\SpamFilterUserConfigsPath\\%user%@%domain%" "--config-file=C:\\Program Files (x86)\\Parallels\\Plesk\\Additional\\Perl\\site\\\\etc\\\\mail\\\\spamassassin" "--port=8783"
'C:\\Program Files (x86)\\Parallels\\Plesk\\Additional\\SpamAssassin\\psa-spam-filter'
script, we can define the local tests directive:
%opts = (
"create-prefs" => 1, ## 0 means that if no prefs exist - no prefs will be created
"virtual-config-dir" => undef, ## template (sprintf like): c:\\dir\\%domain%\\%user%
"local-tests-only" => 1,
"port" => 738, #port, default is 738
is set to "1" by default. You may set it to 0 in order to enable online tests.
Further, you will have to configure corresponding SA options in order to enable tests. Please refer to this document for reference.
NOTE! Online tests may impact the server performance significantly, since every incoming message will trigger a network communication with an external servers!! Be extremely careful