The spamassassin
utility is used to manage the Spamassassin spam
filter through CLI. By using this utility, you can perform the following
tasks:
- 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
Usage
spamassassin <command> [<mail_name>] [
<option_1> [<param>]
[<option_2> [<param>]]
... [<option_N> [<param>]]
]
Example
The following command enables Spamassassin filter on the mail account
[email protected], enables the use of mail name-specific Spamassassin
filter settings, sets the minimum score for marking email messages as
spam to 3 and enables deleting spam messages automatically from the
mailbox:
plesk bin spamassassin --update [email protected] -status true -personal-conf true -reject-spam true -hits 3
Commands
Command | Parameter | Description | Example |
---|---|---|---|
--update or -u |
<mail_name> |
Updates the Spamassassin spam filter settings on a Plesk mail account. |
To set the minimum score for marking email messages as spam and plesk bin spamassassin --update [email protected] -hits 3 -reject-spam true or plesk bin spamassassin -u [email protected] -hits 3 -reject-spam true |
…