Skip to content

A quarantine-release workflow that does not leak phishing

How to set up cPanel spam quarantine review so users can release legitimate mail without inadvertently releasing phishing the filter caught for good reasons.

A spam quarantine without a release workflow trains users to ignore it — too many messages, no easy way to retrieve the one they need, and eventually they stop checking. A release workflow without safeguards is worse: the user releases a phishing email that the filter correctly flagged, and the next click is on a credential-theft form. The right shape is a workflow that surfaces legitimate mail quickly while making phishing release require a deliberate second action.

What’s happening

cPanel’s spam handling exposes quarantined messages either as a folder named Spam or Junk on the IMAP side, or as a tagged inbox message depending on configuration. Users can release a message by moving it back to the inbox. Without additional gating, that move tells the system the message is wanted — including in cases where it’s phishing that scored 8 out of 5 on SpamAssassin. A workflow that asks the user to confirm release for high-scoring messages preserves user agency without making release reflexive.

How to verify

Inspect how spam is currently being routed:

cat /home/<user>/.spamassassin/user_prefs | grep -i spam
ls /home/<user>/mail/<domain>/<user>/.Spam 2>/dev/null

Then look at recent release patterns:

grep "spam" /var/log/maillog | tail -50

The fix

  1. Route spam to a dedicated Spam folder, not the inbox. Cleaner separation makes review easier. Configure via /etc/mail/spamassassin/local.cf with spam_directory = $home/Maildir/.Spam or via cPanel’s per-user spam preferences.
  2. For high-scoring messages, route to a separate folder. Score 5–10 in Spam, score above 10 in High-Spam. Users learn that High-Spam is rarely worth checking, while Spam might have legitimate misses.
  3. Educate users on how to release. Moving from Spam to Inbox releases. Show them the X-Spam-Status header — if the score is high and the rules listed are phishing indicators (PHISH_*, URI_HEX, LOTS_OF_MONEY), the message is probably the attack it looks like.
  4. For organizations with shared mail policies, add a Sieve filter that requires a confirmation step for messages over a certain score. The first release attempt forwards the message to a review address; the user has to send a confirmation reply before the actual move happens. Friction, but it works.
  5. Whitelist legitimate senders explicitly. Once a user releases a message and confirms it’s legitimate, add the sender to their personal whitelist so future messages skip quarantine. Without this, the same false positive happens again next month.
  6. Audit release patterns monthly. Users who release high-scoring messages frequently are either being targeted by sophisticated phishing or have a sender that needs whitelisting. Either case is worth a five-minute conversation.

For organizations where phishing risk is acute and the quarantine workflow has to balance usability with safety, Stack Harbor designs and operates the workflow as part of WHM server management.