{"id":5008,"date":"2025-02-24T09:42:24","date_gmt":"2025-02-24T14:42:24","guid":{"rendered":"https:\/\/underhost.com\/blog\/?p=5008"},"modified":"2026-10-23T08:53:29","modified_gmt":"2026-10-23T12:53:29","slug":"creating-custom-email-filters-in-cpanel-for-better-email-management","status":"publish","type":"post","link":"https:\/\/underhost.com\/blog\/creating-custom-email-filters-in-cpanel-for-better-email-management\/","title":{"rendered":"How to Create Email Filters in cPanel (Sort, Forward and Block Mail Automatically)"},"content":{"rendered":"<div class=\"uh-blog-hero\" style=\"margin:0 0 40px;text-align:center;padding:48px 24px;border-radius:20px;background:linear-gradient(135deg,#0D1F3C 0%,#125A8A 58%,#176EA5 100%);color:#ffffff;box-shadow:0 20px 40px -15px rgba(13,31,60,0.28);position:relative;overflow:hidden;\">\n<div style=\"display:inline-flex;align-items:center;gap:8px;padding:7px 14px;margin-bottom:16px;border:1px solid rgba(0,212,255,0.32);border-radius:999px;color:#DFF8FF;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;background:rgba(0,212,255,0.10);\"><i class=\"fas fa-sliders-h\" style=\"color:#00D4FF;\"><\/i> Control Panels<\/div>\n<h1 style=\"color:#ffffff;font-size:clamp(32px,5vw,46px);line-height:1.12;margin:0 0 14px;font-weight:800;\">How to Create Email Filters in cPanel (Sort, Forward and Block Mail Automatically)<\/h1>\n<p style=\"font-size:18px;color:#EAF6FF;max-width:800px;margin:0 auto;line-height:1.7;\">Learn how to set up email filters in cPanel to block spam, organize messages, and streamline inbox management.<\/p>\n<\/div>\n<div class=\"uh-blog-excerpt\" style=\"border-left:4px solid #00D4FF;padding:18px 20px;margin:0 0 34px;background:#F8FAFC;color:#1F2937;border-radius:0 14px 14px 0;box-shadow:0 8px 28px rgba(13,31,60,0.08);line-height:1.75;\"><strong style=\"color:#0D1F3C;\">Short answer:<\/strong> In cPanel, open <strong>Email &gt; Email Filters<\/strong>, click <strong>Manage Filters<\/strong> next to a mailbox, then <strong>Create a New Filter<\/strong>. Give it a name, add one or more rules (for example <em>Subject contains Invoice<\/em>), choose an action such as <strong>Deliver to Folder<\/strong>, and save. Use the <strong>Filter Test<\/strong> box to check it. For rules that apply to every address on your account, use <strong>Global Email Filters<\/strong>.<\/div>\n<nav aria-label=\"Table of contents\" class=\"uh-toc\" style=\"background:#ffffff;border:1px solid #E5E7EB;border-radius:16px;padding:20px 22px;margin:0 0 34px;box-shadow:0 4px 12px rgba(13,31,60,0.08);\">\n<div style=\"font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#176EA5;margin-bottom:10px;\"><i class=\"fas fa-list\" style=\"color:#00D4FF;\"><\/i> In this guide<\/div>\n<ol style=\"margin:0;padding-left:20px;columns:2 260px;column-gap:28px;line-height:1.9;\">\n<li><a href=\"#email-filters-or-global-email-filters\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Email Filters or Global Email Filters?<\/a><\/li>\n<li><a href=\"#step-1-open-the-filter-page\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 1: open the filter page<\/a><\/li>\n<li><a href=\"#step-2-write-the-rules\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 2: write the rules<\/a><\/li>\n<li><a href=\"#step-3-choose-the-action\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 3: choose the action<\/a><\/li>\n<li><a href=\"#step-4-test-before-you-rely-on-it\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 4: test before you rely on it<\/a><\/li>\n<li><a href=\"#useful-filter-examples\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Useful filter examples<\/a><\/li>\n<li><a href=\"#order-matters\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Order matters<\/a><\/li>\n<li><a href=\"#filters-and-spam-protection\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Filters and spam protection<\/a><\/li>\n<li><a href=\"#filters-in-webmail\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Filters in webmail<\/a><\/li>\n<\/ol>\n<\/nav>\n<div class=\"uh-post-content\" style=\"color:#1F2937;font-size:16px;line-height:1.75;\">\n<h2 id=\"email-filters-or-global-email-filters\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-envelope\" style=\"color:#00D4FF;\"><\/i> Email Filters or Global Email Filters?<\/h2>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;min-width:600px;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\">Tool<\/th>\n<th style=\"padding:14px;text-align:left;\">Applies to<\/th>\n<th style=\"padding:14px;text-align:left;\">Use it for<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Email Filters<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">One mailbox<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Sorting into folders, forwarding particular mail, personal blocks<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Global Email Filters<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">All mail for every address on the cPanel account<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Blocking a sender or subject for the whole business<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 id=\"step-1-open-the-filter-page\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 1: open the filter page<\/h2>\n<ol style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\">Log in to cPanel.<\/li>\n<li style=\"margin:0 0 8px;\">Open <strong>Email &gt; Email Filters<\/strong> (or <strong>Global Email Filters<\/strong>).<\/li>\n<li style=\"margin:0 0 8px;\">For a single mailbox, click <strong>Manage Filters<\/strong> next to the address.<\/li>\n<li style=\"margin:0 0 8px;\">Click <strong>Create a New Filter<\/strong>.<\/li>\n<\/ol>\n<h2 id=\"step-2-write-the-rules\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 2: write the rules<\/h2>\n<p style=\"margin:0 0 18px;\">Each rule has three parts: what to look at, how to compare it, and the value.<\/p>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;min-width:600px;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\">Look at<\/th>\n<th style=\"padding:14px;text-align:left;\">Compare with<\/th>\n<th style=\"padding:14px;text-align:left;\">Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">From<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">contains, equals, begins with, matches regex<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">From contains <code>@supplier.com<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Subject<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">contains, does not contain, matches regex<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Subject contains <code>Invoice<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">To<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">contains, equals<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">To contains <code>sales@<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Body<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">contains<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Body contains <code>unsubscribe<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Any header<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">contains<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">A header your newsletter tool adds<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Spam status \/ spam score<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">begins with, is above<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Spam score above 5 (needs Spam Filters turned on)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"margin:0 0 18px;\">Add more rules with the <strong>+<\/strong> button and choose <strong>and<\/strong> (all must match) or <strong>or<\/strong> (any may match).<\/p>\n<h2 id=\"step-3-choose-the-action\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 3: choose the action<\/h2>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\">Action<\/th>\n<th style=\"padding:14px;text-align:left;\">What happens<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Deliver to Folder<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Moves the message into a folder in the mailbox. The safest way to sort.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Redirect to Email<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Forwards the message to another address.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Discard Message<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Deletes the message silently. The sender is not told.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Fail with Message<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Rejects the message and sends your text back to the sender.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Stop Processing Rules<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Prevents later filters from acting on the message.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Pipe to a Program<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Sends the message to a script on your account, for advanced uses.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"margin:0 0 18px;\">Prefer <strong>Deliver to Folder<\/strong> over <strong>Discard<\/strong> while you test a filter. A discarded message cannot be recovered if the rule catches the wrong mail.<\/p>\n<h2 id=\"step-4-test-before-you-rely-on-it\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 4: test before you rely on it<\/h2>\n<p style=\"margin:0 0 18px;\">At the bottom of the filter page, the <strong>Filter Test<\/strong> box lets you paste a sample message, starting with headers such as <code>From:<\/code> and <code>Subject:<\/code>, and shows what the filters would do. Then send a real test message and check where it lands.<\/p>\n<h2 id=\"useful-filter-examples\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-angle-double-right\" style=\"color:#00D4FF;\"><\/i> Useful filter examples<\/h2>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code># Sort invoices\nRule:   Subject contains \"Invoice\"\nAction: Deliver to Folder  INBOX.Invoices\n\n# Move high-scoring spam out of the inbox\nRule:   Spam Score is above 5\nAction: Deliver to Folder  INBOX.spam\n\n# Block one sender for every address on the account (Global Email Filters)\nRule:   From contains \"spammer@example.org\"\nAction: Discard Message<\/code><\/pre>\n<h2 id=\"order-matters\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-angle-double-right\" style=\"color:#00D4FF;\"><\/i> Order matters<\/h2>\n<p style=\"margin:0 0 18px;\">Filters run from top to bottom. A message that matches an early filter with <strong>Stop Processing Rules<\/strong>, or that is discarded, never reaches later filters. Put specific filters first and broad ones last. Drag filters on the list to change their order.<\/p>\n<h2 id=\"filters-and-spam-protection\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-shield-alt\" style=\"color:#00D4FF;\"><\/i> Filters and spam protection<\/h2>\n<p style=\"margin:0 0 18px;\">Filters work best together with <strong>Email &gt; Spam Filters<\/strong>. Turn on spam filtering so messages get a spam score, then let a filter, or the built-in spam box option, move high-scoring mail out of the inbox. For server-wide settings, see our <a href=\"https:\/\/underhost.com\/blog\/cpanel-tweak-to-prevent-spamming\/\">cPanel anti-spam settings guide<\/a>.<\/p>\n<h2 id=\"filters-in-webmail\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-angle-double-right\" style=\"color:#00D4FF;\"><\/i> Filters in webmail<\/h2>\n<p style=\"margin:0 0 18px;\">Roundcube webmail has its own filter settings under <strong>Settings &gt; Filters<\/strong>, if your server enables them. They are stored separately from cPanel&#8217;s filters, so keep each rule in one place to avoid confusion.<\/p>\n<div aria-hidden=\"true\" class=\"uh-section-divider\" style=\"width:min(100% - 32px, 1080px);margin:44px auto;display:grid;grid-template-columns:1fr 32px 1fr;align-items:center;gap:18px;pointer-events:none;\"><span style=\"height:1px;background:linear-gradient(90deg,transparent,rgba(0,212,255,0.40),rgba(23,110,165,0.24),transparent);\"><\/span><img alt=\"\" decoding=\"async\" height=\"32\" loading=\"lazy\" src=\"https:\/\/cdn.underhost.com\/android-chrome-192x192.webp\" style=\"width:32px;height:32px;display:block;border-radius:8px;filter:drop-shadow(0 0 14px rgba(0,212,255,0.30));\" width=\"32\"\/><span style=\"height:1px;background:linear-gradient(90deg,transparent,rgba(23,110,165,0.24),rgba(0,212,255,0.40),transparent);\"><\/span><\/div>\n<\/div>\n<div class=\"uh-blog-cta\" style=\"background:linear-gradient(135deg,#0D1F3C 0%,#125A8A 58%,#176EA5 100%);color:#ffffff;padding:36px 24px;border-radius:20px;text-align:center;margin:44px 0;box-shadow:0 20px 40px -15px rgba(13,31,60,0.32);\">\n<h2 style=\"margin:0 0 12px;font-size:28px;line-height:1.25;color:#ffffff;\">Need help with this?<\/h2>\n<p style=\"font-size:17px;margin:0 auto 22px;color:#EAF6FF;max-width:720px;line-height:1.7;\">Business email that works with your website, with spam filtering included in our hosting plans.<\/p>\n<p><a href=\"https:\/\/underhost.com\/shared-hosting.php\" style=\"background:linear-gradient(90deg,#00D4FF,#0077FF);color:#ffffff;padding:13px 28px;border-radius:10px;text-decoration:none;font-weight:800;display:inline-block;margin:8px;\">See web hosting plans<\/a><a href=\"https:\/\/customerpanel.ca\/client\/\" style=\"background:transparent;color:#ffffff;padding:12px 28px;border-radius:10px;text-decoration:none;font-weight:800;display:inline-block;margin:8px;border:1px solid rgba(255,255,255,0.32);\">Contact @CustomerPanel<\/a><\/div>\n<div class=\"uh-faq-section\" id=\"faq\" style=\"margin:34px 0;scroll-margin-top:90px;\">\n<h2 style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:0 0 18px;border-bottom:2px solid rgba(0,212,255,0.22);padding-bottom:10px;\">Frequently asked questions<\/h2>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">How do I block an email address in cPanel?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Create a Global Email Filter with From contains the address and the action Discard Message, or use Deliver to Folder to keep a copy.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">What is the difference between Email Filters and Global Email Filters?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Email Filters apply to one mailbox. Global Email Filters apply to all mail for every address on the cPanel account.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Why is my filter not working?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Check the rule text and the order of your filters, and use the Filter Test box with a real message&#8217;s headers.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Can a filter forward email to another address?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Yes. Use the Redirect to Email action.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Can I recover a discarded message?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">No. Discarded messages are deleted. Use Deliver to Folder while testing.<\/p>\n<\/div>\n<\/div>\n<p><!-- uh-related-start --><\/p>\n<div style=\"background:#F4F8FC;border:1px solid #DCE7F3;border-radius:14px;padding:18px 22px;margin:32px 0 8px;\">\n<h2 style=\"margin:0 0 12px;font-size:22px;\">Related guides<\/h2>\n<ul style=\"margin:0;padding-left:20px;\">\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/the-best-way-to-use-cloudflare-with-cpanel-whm-for-better-performance\/\">The Best Way to Use Cloudflare with cPanel &amp; WHM for Better Performance<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/essential-free-cpanel-plugins-for-server-management\/\">Essential Free cPanel Plugins for Server Management<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/changing-the-outgoing-email-ip-in-cpanel-exim-step-by-step-guide\/\">Changing the Outgoing Email IP in cPanel &amp; Exim: Step-by-Step Guide<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/cpanel-tutorials-manage-email-accounts\/\">How to Manage Email Accounts in cPanel (Video Guide)<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/howto-disable-mailman\/\">How to Disable Mailman on a cPanel Server<\/a><\/li>\n<\/ul>\n<\/div>\n<p><!-- uh-related-end --><br \/>\n<script type=\"application\/ld+json\">{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"How do I block an email address in cPanel?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Create a Global Email Filter with From contains the address and the action Discard Message, or use Deliver to Folder to keep a copy.\"}}, {\"@type\": \"Question\", \"name\": \"What is the difference between Email Filters and Global Email Filters?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Email Filters apply to one mailbox. Global Email Filters apply to all mail for every address on the cPanel account.\"}}, {\"@type\": \"Question\", \"name\": \"Why is my filter not working?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Check the rule text and the order of your filters, and use the Filter Test box with a real message's headers.\"}}, {\"@type\": \"Question\", \"name\": \"Can a filter forward email to another address?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Yes. Use the Redirect to Email action.\"}}, {\"@type\": \"Question\", \"name\": \"Can I recover a discarded message?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No. Discarded messages are deleted. Use Deliver to Folder while testing.\"}}]}<\/script><\/p>\n<h2 id=\"sources\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-book\" style=\"color:#00D4FF;\"><\/i> Sources<\/h2>\n<ul style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/docs.cpanel.net\/cpanel\/email\/email-filters\/\">cPanel documentation: Email Filters<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/docs.cpanel.net\/cpanel\/email\/global-email-filters\/\">cPanel documentation: Global Email Filters<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to set up email filters in cPanel to block spam, organize messages, and streamline inbox management.<\/p>\n","protected":false},"author":1,"featured_media":5009,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,202,205],"tags":[108,115],"class_list":["post-5008","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-control-panels","category-cpanel-whm","category-email","tag-tag-cpanel","tag-tag-linux-server"],"_links":{"self":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/5008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/comments?post=5008"}],"version-history":[{"count":6,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/5008\/revisions"}],"predecessor-version":[{"id":6916,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/5008\/revisions\/6916"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media\/5009"}],"wp:attachment":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media?parent=5008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/categories?post=5008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/tags?post=5008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}