How can I treat mail with a specific subject line as spam using Warden?

Overview

This article outlines two methods for automatically flagging emails with specific subject lines as spam within the Warden interface. Select the approach that best aligns with your filtering requirements and administrative preferences.

Method 1: Using the WhitelistSubject/WelcomeListSubject Plugin

The most direct method is to utilize the blacklist functionality of the WhitelistSubject/WelcomeListSubject plugin. This configuration automatically applies a spam score of 100 or higher to any email matching your specified subject line.

  1. Navigate to Warden > Settings > Plugins Settings > WhitelistSubject/WelcomeListSubject.
  2. In the Blacklist/Blocklist subject field, enter the exact subject line or keyword you wish to block.
  3. Click Update to save your configuration.

WhitelistSubject/WelcomeListSubject

Method 2: Creating a Custom Rule

For advanced filtering scenarios, you can implement a custom rule to match specific subject lines. This method provides granular control over scoring thresholds and matching behavior.

  1. Navigate to Warden > Rules, then click Add to create a new custom rule.
  2. In the template selection dropdown, choose Header - Subject - Matches - Word. For comprehensive details on rule configuration, refer to the official documentation.
  3. Configure the following parameters:
    • Name: Enter a descriptive identifier for the rule. Rule names must not exceed 22 characters.
    • Score: Assign a numerical value to determine filtering action. Use a score of 100 or higher to automatically classify matching emails as spam.
  4. Click Update to apply the rule.

Custom Rule

Troubleshooting and Common Issues

  • Rule Name Validation: Ensure custom rule names remain under 22 characters to prevent save failures or truncation errors.
  • Scoring Thresholds: Verify that your assigned score meets or exceeds the system's spam threshold (typically 100) to guarantee proper classification and routing.
  • False Positives: Both methods utilize exact or keyword matching. Periodically review quarantined or filtered messages to adjust entries if legitimate correspondence is incorrectly flagged.
  • subject
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

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...