How can I add a custom SpamAssasin rule in Warden?

To Add a Custom Rule

  1. Navigate to Warden -> Rules -> Click on Add to add a custom rule.
  2. Select the Template select list if you want to use one of the prebuilt templates. More information about rules can be found here.
  3. Enter the name of the rule you want to add name field ( names must be less than 22 chars) and the new score you want to use in the score field (positive and negative values are supported).
  4. Click the Update button to save your settings.

Rules

Using the Command Line Interface

Admins can also use the Warden command line interface to add custom rules. You can view the available options using:

warden --task=antispam:rules --help

Example:

warden --task=antispam:rules --oper=rule_add --name=TEST --description='some description' --type=header --value='Subject =~ viagra' --score=100

Verifying Custom Rules

Go to Logs -> Message Log where you can see a breakdown of any matched rules under the Tests: line when clicking on the plus icon for a message entry in the message log (Amavis must be in verbose mode under Settings -> Content Filter Settings -> Filter Settings). Any matched custom rules will be in the list.

Tests

Admins can also go to Tools -> Spam Report to paste in the full source of a message. This will also give you a breakdown of any rules that were matched by the message. Any matched custom rules will be in the list.

Spam Report

  • rules, custom
  • 0 Корисниците го најдоа ова како корисно
Дали Ви помогна овој одговор?

Понудени резултати

How can I change the interface language of the extension?

You can change the interface language under Settings -> Application Settings -> Locale...

How can I disable admin email notifications in Amavis?

Amavis has different default options for controlling where virus, spam, banned file attachments,...

How can I whitelist or blacklist a mail server from greylisting?

To Whitelist a Mail Server From Greylisting Navigate to Warden -> Settings ->...

How can I enable third party anti-virus signatures within Warden to improve the ClamAV detection rate?

Warden supports enabling third party anti-virus signatures to improve the detection rate. These...

How can I setup a local caching DNS resolver to speed up DNS queries used by Amavis?

Run the following command to check if local DNS caching is enabled: host -tTXT...