Enable or disable email spam protection
Email Spam Protection in cPFence v4+ adds spam detection rules. It is off in fresh settings and is separate from server-wide Spam AutoShield.
Using the WebUI
Section titled “Using the WebUI”- Open Threat & Malware Detection, choose one server and open Settings.
- Set Email Spam Protection, then Save.
- Confirm the switch and review the next mailbox scan’s detections.
Support users need access to the server and protection-setting permission.
Using the CLI
Section titled “Using the CLI”Run as root on the target server:
| Action | Command |
|---|---|
| Enable spam rules | cpfence --enable-spam-protection |
| Disable spam rules | cpfence --disable-spam-protection |
See mailbox scanning to stop all mailbox scans or exclude one mailbox, and email quarantine to review the action setting.

