Plesk

How to manage spam settings in Plesk via CLI?

Question

How to manage spam protection in Plesk using command-line interface?

Answer

The spamassassin utility is used to manage Spamassassin spam filter through CLI/Command Prompt:

Linux:

# /usr/local/psa/bin/spamassassin --help

Windows:

C:>"%plesk_cli%spamassassin.exe" --help

By using this utility, the following tasks can be performed on a Linux server:

On a Windows server:

Detailed information can be found in Reference for Command-Line Utilities in Plesk for Linux and in Reference for Command-Line Utilities in Plesk for Windows