> ## Documentation Index
> Fetch the complete documentation index at: https://help.noxity.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Global Email Filters

> Rules applied to every mailbox on this account before mail is delivered.

Global Email Filters apply to every mailbox on your cPanel account. Mail is checked against these rules before being delivered to a specific mailbox. They're useful for blanket policies you want enforced regardless of which address mail is sent to.

Open it from cPanel home → **Email** → **Global Email Filters**.

<Frame caption="Global Email Filters with existing rules">
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/noxity/images/cpanel/email-management/global-email-filters/page-light.png" alt="Global Email Filters page with rule list and Create button" className="block dark:hidden" />

  <img src="https://mintlify.s3.us-west-1.amazonaws.com/noxity/images/cpanel/email-management/global-email-filters/page-dark.png" alt="Global Email Filters page with rule list and Create button" className="hidden dark:block" />
</Frame>

## When to use global vs per-mailbox

| Use Global filters when                                        | Use [Email Filters](/web-hosting/cpanel/email-management/email-filters) when |
| -------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| You want the rule to apply to every address on the account     | The rule applies to one mailbox only                                         |
| You're blocking obvious spam patterns (subject lines, senders) | You're sorting your inbox into folders                                       |
| You're enforcing organization-wide policy                      | The owner of the mailbox sets their own rules                                |

A common pattern: a global filter discards mail from a known-bad domain across the whole account, while individual mailboxes have their own filters for personal sorting.

## Create a rule

<Steps>
  <Step title="Click Create a New Filter">
    Top of the page.
  </Step>

  <Step title="Name the filter">
    Helps you identify it later. Something like "Discard newsletter from old vendor".
  </Step>

  <Step title="Build the condition">
    Pick a header (From, Subject, To, Body, etc.), a comparison (contains, matches regex, begins with), and the value to match.

    Add multiple conditions if needed. Combine them with **And** (all must match) or **Or** (any can match).
  </Step>

  <Step title="Pick the action">
    Common actions:

    * **Discard message** — silently drop the mail. Sender doesn't know.
    * **Redirect to email** — forward to another address.
    * **Fail with message** — bounce with a custom error.
    * **Deliver to folder** — drop into a specific IMAP folder (e.g. `INBOX.Spam`).
    * **Pipe to a program** — hand off to a script (advanced).
  </Step>

  <Step title="Save and test">
    Use the **Filter Test** field below the filter list to paste an example message and verify the rule matches before relying on it in production.
  </Step>
</Steps>

## Tips

* **Test before you trust.** A wrong condition can silently discard legitimate mail. The Filter Test box on the same page lets you paste a real message and check what would happen.
* **Order matters.** Filters are evaluated top-down. Use the up/down arrows to reorder when one rule depends on another (e.g. a "tag as spam" rule before a "discard if tagged" rule).
* **Regex carefully.** Filter rules support regex on headers and body. Powerful, but easy to over-match. Prefer "contains" or "begins with" when you can.

## Need a hand?

<CardGroup cols={2}>
  <Card title="Open a ticket" icon="life-ring" href="https://members.noxity.io/submitticket.php">
    Best for anything that needs an account check or a config change on our end.
  </Card>

  <Card title="Live chat" icon="messages" href="https://noxity.io/contact">
    Faster for quick questions during business hours.
  </Card>
</CardGroup>
