Previous Topic

Next Topic

Book Contents

Managing Spam Filtering With Spamassassin.exe Utility

Spamassassin.exe utility allows you to manage spam filter. Using this utility, you can:

Spamassassin.exe is located in %plesk_dir%admin\bin\. Available commands and options are listed in tables below.

Usage:
spamassassin.exe command <mail_name> [options]

Example of usage:
spamassassin.exe --update JohnDoe@domain1.com -server-conf true -hits 6 -action del -blacklist add:spammer@spamdomain.com

Available commands:

Command

Parameter

Action

Example

--update or -u

<mail_name>

updates the spam filter configuration for an existing mail user

Examples of updating various spam filter parameters are provided further down this table

--info or -i

<mail_name>

retrieves spam filter settings for the specified mailname

To retrieve spam filter settings for John_Doe@somewhere.com:

spamassasin.exe --info John_Doe@somewhere.com

--help or -h

 

displays help on the utility usage

To see help information about spamassasin.exe utility usage:

spamassassin.exe --help

Available options:

Option

Parameter

Note

Example

-server-conf

<true|false>

uses server wide settings

To use server wide settings:

spamassassin.exe --update John_Doe@somewhere.com -server-conf true

-hits

<float>

hits required for marking a letter as a spam

To set the number of hits required to mark letter as a spam to 3:

spamassassin.exe --update John_Doe@somewhere.com -hits 3

-action

<del|mark>

what should be done with a spam mail

To set Spam Assassin to delete spam e-mails:

spamassassin.exe --update John_Doe@somewhere.com -action del

-modify-subj

<true|false>

modifies the subject of a spam mail

To modify spam mail subject

./spamassassin.exe -update John_Doe@somewhere.com -modify-subj true -modify-subj-text 'SPAM mail'

-modify-subj-text

<string>

modifies the text of a spam mail subject

To modify spam mail subject

./spamassassin.exe -update John_Doe@somewhere.com -modify-subj true -modify-subj-text 'SPAM mail'

-blacklist

<add|del>:<pattern1[,pattern2]>

adds or deletes the e-mail(s) to/from the black list

To add stupid@domain.name email to black list:

./spamassassin.exe --update John_Doe@somewhere.com -blacklist add: spam@spamdomain.com

-whitelist

<add|del>:<pattern1[,pattern2]>

adds or deletes the e-mail(s) to/from the white list

To add cool@domain.name email to the white list:

./spamassassin.exe --update John_Doe@somewhere.com -whitelist add: notspam@domain2.com

See Also

Creation Utilities

Configuring Server With Init_conf.exe Utility

Changing Control Panel Appearance With Server_pref.exe Utility

Managing IP Addresses With Ipmanage.exe Utility

Client Account Management With Client.exe and Client_pref.exe Utilities

Managing Domains With Domain.exe and Domain_pref.exe Utilities

Managing Web Users With Webuser.exe Utility

Managing Databases With Database.exe Utility

Managing Mail Accounts With Mail.exe Utility

Managing Mailing Lists With Maillist.exe Utility

Managing Web Protection For Domain Directories With Protdir.exe Utility

Managing Anonymous FTP Service With Anonftp.exe Utility

Managing Subdomains With Subdomain.exe Utility