How to Add a Global Email Filter in WHM?


A Global Email Filter in WHM applies filtering rules to all incoming email across every account on your reseller server. This is useful for blocking specific types of spam or unwanted senders that affect multiple clients.

Access Global Email Filters

  1. Login to WHM.
  2. Go to Email → Global Email Filters.
  3. Click Create a New Filter.

Create a Global Filter

  1. Enter a Filter Name (e.g., "Block Pharmacy Spam").
  2. Set the Rules:
    • Field: Choose what to scan — Subject, From, Body, To, Headers, etc.
    • Condition: Contains, begins with, ends with, matches, does not contain, etc.
    • Value: The text to match (e.g., "buy cheap pills", "noreply@spammer.com")
  3. Set the Action:
    • Discard Message – Silently delete the email.
    • Redirect to Email – Forward to another address (e.g., your spam trap).
    • Fail with Message – Reject and return error to sender.
    • Deliver to Folder – Route to a specific mailbox folder.
  4. Click Save.

The global filter is now active and applies to all incoming emails across every account on your server.

Caution: Global filters are powerful. A poorly written filter can block legitimate emails for ALL clients. Always test with specific, narrow filter rules. Prefer SpamAssassin for general spam filtering and use global filters only for very specific known spam patterns.

If you continue to face issues, please open a create a request.

¿Le ha resultado útil esta respuesta? 0 Los usuarios encontraron esto útil (0 Votos)