How can I override the score for a specific rule in Warden?

Overview

This article provides instructions for overriding default rule scores within the Warden anti-spam configuration. Adjusting rule scores allows administrators to customize filtering sensitivity and align spam detection with specific organizational requirements.

Prerequisites

  • Administrative access to the Warden control panel or CLI environment.
  • Familiarity with SpamAssassin scoring mechanisms and target rule names.

Override a Rule Score via the Web Interface

  1. Navigate to Warden > Rules > Rule Scores.
  2. Search for the target rule by name and click the edit icon.
  3. Enter the new score value. Setting a score of 0 will completely disable the rule.
  4. Click Submit to apply and save the configuration changes.

Understanding Rule Score Configuration

SpamAssassin evaluates up to four distinct score values for each rule. The system automatically selects the appropriate score based on active runtime features during the scan process:

  • Single Score Provided: This value is applied universally, regardless of configuration state.
  • Four Scores Provided: SpamAssassin dynamically selects the applicable score based on whether Bayesian classification and network tests are active. This enables rule authors to optimize scoring according to available runtime data.
Score Position Runtime Condition
First Score Bayesian classifier and network tests are disabled.
Second Score Bayesian classifier is disabled; network tests are enabled.
Third Score Bayesian classifier is enabled; network tests are disabled.
Fourth Score Both Bayesian classifier and network tests are enabled. (Default/Most Common)

Rule scores

Override a Rule Score via Command Line Interface

For automated or script-based configuration, use the Warden CLI. Refer to the official CLI documentation for complete parameter details.

// Set a custom score for a specific rule
warden --task=antispam:rules:rulescores --oper=score_edit --name='DCC' --score='3.25' --reload=yes

// Disable a specific rule by setting its score to zero
warden --task=antispam:rules:rulescores --oper=score_edit --name='DCC' --score='0' --reload=yes

Troubleshooting & Common Issues

  • Changes not applying: Verify that the --reload=yes flag is included in CLI commands, or confirm that Submit was successfully clicked in the web interface.
  • Unexpected scoring behavior: Confirm which runtime features (Bayesian classifier, network tests) are active. If only a single score is configured, it will override all conditional logic regardless of feature state.
  • Rule remains active after setting to zero: Ensure the correct rule name is specified and that no duplicate or fallback rules are triggering the same detection pattern.
  • rules, score
  • 1 用戶發現這個有用
這篇文章有幫助嗎?

相關文章

How can I install or upgrade the extension?

We provide free installation and configuration for all our paid licenses. Open a support ticket...

How can I add stronger Postfix restrictions so that the bulk of spam is rejected at the SMTPD level before it gets processed by Amavis?

Overview Warden enables administrators to enforce stricter Postfix SMTPD restrictions. These...

How can I change the interface language of the extension?

Overview This article provides instructions on how to change the interface language within the...

How can I configure greylisting with Warden Anti-spam and Virus protection?

Overview Greylisting is an email filtering mechanism designed to mitigate spam by temporarily...