Article ID: 122520, created on Jul 29, 2014, last review on May 4, 2016

  • Applies to:
  • Plesk


Which CLI utility should be used to manage spam protection in Plesk?


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


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


"%plesk_cli%\spamassassin.exe" --help

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

  • enabling/disabling server-wide spam filtering
  • setting the criteria for automatic labeling of incoming messages as spam
  • enabling/disabling use of mail-name specific spam filtering criteria
  • adding mail messages to the Spamassassin's black and white lists
  • marking mail subjects as spam
  • deleting spam automatically
  • inserting custom text into spam message subject lines automatically

And on Windows server:

  • enabling the use of server-wide spam filtering settings
  • setting the number of hits required to mark a letter as spam
  • adding mail addresses to black and white lists
  • marking mail subject as spam, deleting spam messages

All 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

Search Words


enable server wide protection


enable spam protection

command-line utility


spam filtering



56797cefb1efc9130f7c48a7d1db0f0c e0aff7830fa22f92062ee4db78133079 a914db3fdc7a53ddcfd1b2db8f5a1b9c caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF