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 across your entire Enhance cluster. It provides a powerful set of tools that allow you to block emails based on IPs, sender addresses, domains, subject lines, and even top-level domains (TLDs).

Access Spam AutoShield Tools (WebUI Method)

 

 

  1. Open the cPFence WebUI on your Main Control Panel server.
  2. From the left menu, go to Tools & Utilities and click on Spam AutoShield Tools.
  3. You’ll see 12 available tools, including activation, training, IP blocking, domain blocking, and more.
  4. Click any button to execute its action. Each tool affects all servers in your Enhance cluster.

All changes are applied immediately across your mail infrastructure, and the UI helps you manage everything without needing manual CLI entries.

Command Line (CLI) Method

  1. SSH into your Enhance server.
  2. Run the following commands depending on your needs:
    • Activate & Configure:
      cpfence --activate-spam-autoshield
      cpfence --configure-spam-autoshield
      cpfence --rspamd-training-tool
    • Block by IP:
      cpfence --add-spam-autoshield-ip 123.123.123.123
    • Unblock IP:
      cpfence --del-spam-autoshield-ip 123.123.123.123
    • Block by Email:
      cpfence --add-spam-autoshield-email [email protected]
    • Unblock Email:
      cpfence --del-spam-autoshield-email [email protected]
    • Block by Domain:
      cpfence --add-spam-autoshield-domain spamdomain.com
    • Unblock Domain:
      cpfence --del-spam-autoshield-domain spamdomain.com
    • Block by Subject:
      cpfence --add-spam-autoshield-subject
      (You will be prompted to enter the partial subject line to block)
    • Unblock Subject:
      cpfence --del-spam-autoshield-subject
    • Block by TLD:
      cpfence --add-spam-autoshield-tld
      (You will be prompted to enter the TLD like .xyz or .click)
    • Unblock TLD:
      cpfence --del-spam-autoshield-tld
    • Reset Rspamd Training Data:
      cpfence --reset-rspamd-training-data

You can run rspamc stat to check statistics and confirm that training data has been loaded successfully.


Need Further Assistance?

Visit our Knowledgebase or contact our support team for help.

  • 0 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

How to Configure Spam AutoShield using cPFence Tools?

Apply Spam AutoShield Preset (WebUI Method)   In cPFence WebUI, go to Tools & Utilities ➜...

How to Reset Rspamd Training Data using cPFence Tools?

Reset Training Data (WebUI Method)   Open cPFence WebUI ➜ Tools & Utilities ➜ Spam...

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

Manage ASN Blocks (WebUI Method)   Open Tools & Utilities ➜ Spam AutoShield Tools. Click...

How to Whitelist/Unwhitelist ASNs in Spam AutoShield using cPFence Tools?

Manage ASN Whitelist (WebUI Method)   Open Tools & Utilities ➜ Spam AutoShield Tools....

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

Manage Domain Blocklist (WebUI Method)   Go to Tools & Utilities ➜ Spam AutoShield Tools....