How to Block/Unblock Email Subjects in Spam AutoShield using cPFence Tools?

Manage Subject Blocklist (WebUI Method)

 

  1. Open the cPFence WebUI and go to Tools & UtilitiesSpam AutoShield Tools.
  2. Click Block / Unblock Email Subject.
  3. Enter the exact subject line that appears on the unwanted emails.
  4. Choose Block Subject to stop it or Unblock Subject to restore delivery.

Stick to the full subject text so legitimate messages with different wording stay unaffected.

Command Line (CLI) Method

  1. SSH into the server.
  2. Block a subject:
    cpfence --add-spam-autoshield-subject "Cheap pills"
  3. Unblock the same subject:
    cpfence --del-spam-autoshield-subject "Cheap pills"
  4. If you omit the subject string, the command will prompt you interactively.

Pair subject filtering with sender blocks to suppress recurring spam campaigns quickly.


Need Further Assistance?

Visit our Knowledgebase or contact our support team for help.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Using Spam AutoShield to Block Spam by IP, Email, Domain, Subject, or TLD

The Spam AutoShield module in cPFence is designed to give you full control over spam filtering...

How to bulk Activate a WordPress Theme by Slug using cPFence Tools?

Activate Theme by Slug (WebUI Method)   Open cPFence WebUI and select the target server. Go...

How to bulk Clear LiteSpeed Cache using cPFence Tools?

Purge LiteSpeed Cache (WebUI Method)   Open the cPFence WebUI and select the desired server....

How to bulk Configure the LiteSpeed Plugin using cPFence Tools?

Apply LiteSpeed Presets (WebUI Method)   Open cPFence WebUI and select the relevant server....

How to bulk Create a WordPress User using cPFence Tools?

Create WP User (WebUI Method)   Log into cPFence WebUI, pick the server, and open Tools &...