Manage Subject Blocklist (WebUI Method)
- Open the cPFence WebUI and go to Tools & Utilities ➜ Spam AutoShield Tools.
- Click Block / Unblock Email Subject.
- Enter the exact subject line that appears on the unwanted emails.
- 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
- SSH into the server.
- Block a subject:
cpfence --add-spam-autoshield-subject "Cheap pills" - Unblock the same subject:
cpfence --del-spam-autoshield-subject "Cheap pills" - 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.
