Enable or disable email quarantine
Email quarantine in cPFence v4+ is independent of website-file quarantine.
Using the WebUI
Section titled “Using the WebUI”- Open Threat & Malware Detection, choose one server and open Settings.
- Set Email Quarantine, then Save.
- Check the saved value and each detected message’s action in scan output.
Email Scanning must be enabled separately. Support users need target-server access and protection-setting permission.
Using the CLI
Section titled “Using the CLI”Run as root on the target server:
| Action | Command |
|---|---|
| Enable email quarantine | cpfence --enable-email-quarantine |
| Disable email quarantine | cpfence --disable-email-quarantine |
Stop a repeated false positive
Section titled “Stop a repeated false positive”If legitimate messages, such as attachments one customer receives often, keep being quarantined, exclude only the signature that matches them. Mail scanning stays on for every other signature.
-
Find the signature name in the detection: it is the part before
FOUND, for exampleYARA.cPFence_app_Suspicious_Phishing_2. -
Exclude it in Threat & Malware Detection → Advanced Tools → Manage signature exclusions, or as root:
Terminal window cpfence --exclude-sig YARA.cPFence_app_Suspicious_Phishing_2 -
Restore the quarantined messages.
Avoid excluding the whole mailbox path; that stops all scanning for it. If you think the signature is wrong, send the raw message to support so it can be fixed for everyone.
See mailbox scanning and quarantine recovery.

