Get a free website with any plan

See how
EMAIL

Creating email filters (per-mailbox and global)

Last updated

IN SHORT

Flashcloud email filtering in cPanel lets you create rules across an entire domain or for a single mailbox. You configure conditions like sender or subject to trigger actions like discarding or redirecting messages. Global filters process first, meaning any email discarded at the domain level never reaches individual mailbox rules.

cPanel gives you two places to filter email: Global Email Filters, which apply to every mailbox on the domain, and per-mailbox Email Filters, which apply only to one address. Use global filters for domain-wide rules like blocking a spam source; use per-mailbox filters for personal sorting, like moving newsletters to a folder.

Both tools use the same rule builder: pick a condition (sender, subject, body, header), pick an action, and save.

Global filters (apply to every mailbox)

Open cPanel using the one-click cPanel login on your service page, then find Global Email Filters under the Email section. These rules apply to every address on the domain.

  • Set the rule name, then build a condition: for example, From contains a known bad domain, or Subject contains a phrase you want to block.
  • Choose an action to discard, redirect, or otherwise handle the message.
  • Save. The rule applies to new incoming mail.

Global filters are the right tool for domain-wide problems: a spoofed sender hitting multiple mailboxes, a vendor you want auto-redirected to a shared inbox, or a known-bad domain you want discarded.

Per-mailbox filters (apply to one address)

Still in cPanel, open Email Filters and select the mailbox you want to filter from the list. If you haven't created the mailbox yet, see creating email accounts on your domain first.

  • Build the condition the same way as global filters: match on From, To, Subject, or message body.
  • Choose an action. For sorting mail into folders on most mail clients, a mail-client-side rule after delivery works well (most clients, including Roundcube, can file into folders after the message lands).
  • Save. This filter only affects the one mailbox you selected, and only runs for mail delivered to that address.

Per-mailbox filters are the better fit for personal organization: routing a mailing list into its own folder, auto-discarding a specific newsletter, or flagging messages from a particular client.

Order of operations and testing

If a global filter discards a message, no per-mailbox rule ever sees it. Check that a global discard rule isn't catching mail someone downstream still needs. Test a new rule with a low-risk action first, such as redirecting or failing with a message rather than discarding, until you've confirmed the condition matches what you expect.

If a rule isn't catching mail the way you expect, check the exact wording of the condition against a real message header. A rule matching Subject contains "invoice" won't catch Subject contains "Invoice" if the match is case-sensitive in your cPanel version. When mail is bouncing or getting discarded unexpectedly, the bounce text itself is often the fastest way to diagnose what happened; see email bounce messages decoded for how to read those codes.

When filters aren't the answer

If a mailbox is bouncing mail because it's full rather than because of a filter rule, filters won't help. Check cleaning a full mailbox with Email Disk Usage instead. And if you're setting up filters as part of moving a mailbox to Flashcloud from another host, get the account created and mail synced first; see moving your email to Flashcloud from another provider.

When to contact support

If you've built a filter and mail is still landing somewhere unexpected, or you need a filter that spans multiple domains on the same account, open a ticket from the portal under Support. It's a real person, not a bot.

Common questions

Will my mailbox filter run if a global filter catches the message?

No, global rules execute first. If a global filter discards an email, per-mailbox rules never see it.

Why is my filter missing incoming emails?

Your condition might not match the message header text exactly. A rule matching invoice will miss Invoice if your cPanel version uses case-sensitive matching.

How can I safely test a new filter?

Test with a low-risk action first, such as redirecting or failing with a message. Avoid discard actions until you confirm the condition catches only the intended mail.

Can I apply one filter across multiple domains?

Open a ticket under Support in your portal. Flashcloud staff can help configure filters that span multiple domains on the same account.

CAN'T FIND IT?

Real humans answer fast.

Hosting with us? Open a ticket and a real person replies - no scripts, no upsells. Still choosing a host? The same team is included with every plan, from day one.