{"id":271,"date":"2016-02-25T16:27:10","date_gmt":"2016-02-25T21:27:10","guid":{"rendered":"http:\/\/underhost.com\/blog\/?p=271"},"modified":"2026-10-23T08:56:47","modified_gmt":"2026-10-23T12:56:47","slug":"cpanel-tweak-to-prevent-spamming","status":"publish","type":"post","link":"https:\/\/underhost.com\/blog\/cpanel-tweak-to-prevent-spamming\/","title":{"rendered":"cPanel Anti-Spam Settings: Stop Spam Coming In and Going Out (WHM Guide)"},"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;\">cPanel Anti-Spam Settings: Stop Spam Coming In and Going Out (WHM Guide)<\/h1>\n<p style=\"font-size:18px;color:#EAF6FF;max-width:800px;margin:0 auto;line-height:1.7;\">Spam emails can overload your cPanel server and affect deliverability. By optimizing Exim and Tweak Settings in WHM, you can significantly reduce spam and secure your mail server. Follow this step-by-step guide to configure your server for better email security.<\/p>\n<\/div>\n<div style=\"background:#FFF7ED;border:1px solid #FDBA74;border-radius:16px;padding:20px 22px;margin:24px 0;\">\n<h3 style=\"margin:0 0 10px;color:#9A3412;font-size:20px;\"><i class=\"fas fa-exclamation-triangle\" style=\"color:#F97316;\"><\/i> Test before you enable these settings:<\/h3>\n<p style=\"margin:0;color:#7C2D12;line-height:1.7;\">Blocklists and sender checks can reject or delay legitimate mail. Make one change at a time, and check that your customers&#8217; email still arrives.<\/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 WHM, limit outgoing mail first: set <strong>Max hourly emails per domain<\/strong> and the failed-message limit in <strong>Tweak Settings<\/strong>, turn on <strong>SMTP Restrictions<\/strong>, and add the X-Source headers so you can trace senders. For incoming spam, use the Exim Configuration Manager to enable SpamAssassin, one or two well-known blocklists (RBLs) and SPF checks. Make sure every domain has SPF, DKIM and DMARC records, and watch the mail queue.<\/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=\"#two-kinds-of-spam-problem\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Two kinds of spam problem<\/a><\/li>\n<li><a href=\"#limit-outgoing-mail-tweak-settings\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Limit outgoing mail (Tweak Settings)<\/a><\/li>\n<li><a href=\"#turn-on-smtp-restrictions\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Turn on SMTP Restrictions<\/a><\/li>\n<li><a href=\"#filter-incoming-spam-exim-configuration-manager\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Filter incoming spam (Exim Configuration Manager)<\/a><\/li>\n<li><a href=\"#authenticate-your-own-domains\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Authenticate your own domains<\/a><\/li>\n<li><a href=\"#watch-for-problems\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Watch for problems<\/a><\/li>\n<li><a href=\"#protect-email-accounts\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Protect email accounts<\/a><\/li>\n<li><a href=\"#check-the-results\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Check the results<\/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=\"two-kinds-of-spam-problem\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-exclamation-triangle\" style=\"color:#00D4FF;\"><\/i> Two kinds of spam problem<\/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;\">Problem<\/th>\n<th style=\"padding:14px;text-align:left;\">What it costs you<\/th>\n<th style=\"padding:14px;text-align:left;\">Main tools<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Outgoing spam from a hacked account or site<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Your server IP is blocklisted, and all customers&#8217; mail suffers<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Sending limits, SMTP Restrictions, tracing headers<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Incoming spam to your users<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Full mailboxes and phishing risk<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">SpamAssassin, blocklists, SPF checks<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"margin:0 0 18px;\">Outgoing spam does the most damage, so start there.<\/p>\n<h2 id=\"limit-outgoing-mail-tweak-settings\" 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> Limit outgoing mail (Tweak Settings)<\/h2>\n<p style=\"margin:0 0 18px;\">In WHM, open <strong>Server Configuration &gt; Tweak Settings<\/strong> and go to the <strong>Mail<\/strong> tab:<\/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;\">Setting<\/th>\n<th style=\"padding:14px;text-align:left;\">Suggested value<\/th>\n<th style=\"padding:14px;text-align:left;\">Why<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Max hourly emails per domain<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">A limit that fits real use, for example 200 to 500<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Stops a hacked site sending thousands of messages an hour<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Maximum percentage of failed or deferred messages a domain may send per hour<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">For example 25%<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Spam runs produce many bounces, so this catches them early<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Track email origin via X-Source email headers<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">On<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Adds headers showing which script or user sent a message<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Prevent &#8220;nobody&#8221; from sending mail<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">On, if your sites send mail through PHP as their own user<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Blocks mail from processes that run as the nobody user<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"margin:0 0 18px;\">You can also set a sending limit for each hosting package in <strong>Packages &gt; Edit a Package<\/strong>, and for single accounts.<\/p>\n<h2 id=\"turn-on-smtp-restrictions\" 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> Turn on SMTP Restrictions<\/h2>\n<p style=\"margin:0 0 18px;\">Open <strong>Security Center &gt; SMTP Restrictions<\/strong> and enable it. Only Exim, root and the mail system can then connect to remote mail servers. Scripts on hacked websites can no longer bypass Exim, so every message is logged and counted against the limits above. If you use CSF, it has an equivalent option, <code>SMTP_BLOCK<\/code>; use one of the two.<\/p>\n<h2 id=\"filter-incoming-spam-exim-configuration-manager\" 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> Filter incoming spam (Exim Configuration Manager)<\/h2>\n<p style=\"margin:0 0 18px;\">Open <strong>Service Configuration &gt; Exim Configuration Manager &gt; Basic Editor<\/strong>:<\/p>\n<ul style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\"><strong>Apache SpamAssassin:<\/strong> turn it on, so messages get a spam score. Users can then set their own threshold and auto-delete level in cPanel under <strong>Email &gt; Spam Filters<\/strong>.<\/li>\n<li style=\"margin:0 0 8px;\"><strong>RBLs:<\/strong> enable one or two well-known blocklists, such as Spamhaus ZEN or SpamCop. Read each list&#8217;s usage terms; some require registration for commercial or high-volume use.<\/li>\n<li style=\"margin:0 0 8px;\"><strong>Reject SPF failures:<\/strong> rejects mail that the sender&#8217;s own SPF record says is forged. Test it, because some legitimate senders have broken SPF records.<\/li>\n<li style=\"margin:0 0 8px;\"><strong>Sender verification callouts:<\/strong> checks that the sender address exists. It can slow delivery and cause false rejections, so use it with care.<\/li>\n<\/ul>\n<p style=\"margin:0 0 18px;\">Add servers you trust, such as a partner&#8217;s mail server, to the RBL whitelist so they are never blocked.<\/p>\n<h2 id=\"authenticate-your-own-domains\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-globe\" style=\"color:#00D4FF;\"><\/i> Authenticate your own domains<\/h2>\n<p style=\"margin:0 0 18px;\">SPF, DKIM and DMARC records tell other servers which mail from your domains is genuine. That improves delivery and makes it harder for spammers to forge your domains. In WHM, <strong>Email &gt; Email Deliverability<\/strong> shows domains with missing or wrong records and can repair them. See our guide to <a href=\"https:\/\/underhost.com\/blog\/how-to-use-whms-email-deliverability-interface-to-fix-mail-dns-issues\/\">the Email Deliverability interface<\/a>.<\/p>\n<h2 id=\"watch-for-problems\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-exclamation-triangle\" style=\"color:#00D4FF;\"><\/i> Watch for problems<\/h2>\n<ul style=\"list-style:none;padding-left:0;\">\n<li style=\"margin:0 0 8px;\">\u2713 Check the queue size each day with <code>exim -bpc<\/code>. A sudden jump means something is sending spam.<\/li>\n<li style=\"margin:0 0 8px;\">\u2713 Read the lfd or cPHulk alerts about failed email logins. They often come before a hacked account starts sending.<\/li>\n<li style=\"margin:0 0 8px;\">\u2713 Check your server IP against blocklists from time to time.<\/li>\n<li style=\"margin:0 0 8px;\">\u2713 If spam does go out, trace it with our guide to <a href=\"https:\/\/underhost.com\/blog\/track-mail-php-run-nobody\/\">finding the source of spam<\/a>.<\/li>\n<\/ul>\n<h2 id=\"protect-email-accounts\" 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> Protect email accounts<\/h2>\n<ul style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\">Require strong passwords in WHM (<strong>Security Center &gt; Password Strength Configuration<\/strong>).<\/li>\n<li style=\"margin:0 0 8px;\">Turn on cPHulk brute force protection, so repeated failed logins are blocked.<\/li>\n<li style=\"margin:0 0 8px;\">Ask users to change passwords that may have leaked, and to use an app password or two-factor login where their mail client supports it.<\/li>\n<\/ul>\n<h2 id=\"check-the-results\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-clipboard-check\" style=\"color:#00D4FF;\"><\/i> Check the results<\/h2>\n<ol style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\">Send test messages from an account to an external address, and check that they arrive.<\/li>\n<li style=\"margin:0 0 8px;\">Send a message to a test mailbox on the server from an outside service, and check its spam score in the headers.<\/li>\n<li style=\"margin:0 0 8px;\">Check <code>\/var\/log\/exim_mainlog<\/code> for legitimate messages that were rejected after your changes.<\/li>\n<\/ol>\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;\">Want your mail server tuned and watched? Our server management team sets sensible limits and handles blocklist problems.<\/p>\n<p><a href=\"https:\/\/underhost.com\/server-management.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 server management 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 limit how many emails a cPanel account can send?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Set Max hourly emails per domain in WHM Tweak Settings, or a per-package limit in Edit a Package.<\/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 does SMTP Restrictions do?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">It stops scripts from connecting to remote mail servers directly, so all mail goes through Exim, where it is logged and limited.<\/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;\">Which blocklists should I use?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">One or two well-known lists, such as Spamhaus ZEN or SpamCop. Check their terms of use, and test for false rejections.<\/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;\">Will SpamAssassin delete mail automatically?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Only if a user turns on auto-delete. By default it adds a score and marks spam in the subject or 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;\">Why do my emails still go to spam at Gmail?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Usually because SPF, DKIM or DMARC records are missing or wrong. Check Email Deliverability in WHM.<\/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\/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\/how-cpanel-redis-manager-brings-faster-application-performance-to-your-server\/\">How cPanel Redis Manager Brings Faster Application Performance to Your Server<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/top-cpanel-security-tips-to-keep-your-hosting-environment-safe\/\">Top cPanel Security Tips to Keep Your Hosting Environment Safe<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/install-mongodb-cpanel-server\/\">Updated Guide: How to Install MongoDB on a cPanel Server<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/install-gmp-cpanel-centos-servers\/\">How to Install GMP on a cPanel Server (EasyApache 4)<\/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 limit how many emails a cPanel account can send?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Set Max hourly emails per domain in WHM Tweak Settings, or a per-package limit in Edit a Package.\"}}, {\"@type\": \"Question\", \"name\": \"What does SMTP Restrictions do?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"It stops scripts from connecting to remote mail servers directly, so all mail goes through Exim, where it is logged and limited.\"}}, {\"@type\": \"Question\", \"name\": \"Which blocklists should I use?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"One or two well-known lists, such as Spamhaus ZEN or SpamCop. Check their terms of use, and test for false rejections.\"}}, {\"@type\": \"Question\", \"name\": \"Will SpamAssassin delete mail automatically?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Only if a user turns on auto-delete. By default it adds a score and marks spam in the subject or headers.\"}}, {\"@type\": \"Question\", \"name\": \"Why do my emails still go to spam at Gmail?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Usually because SPF, DKIM or DMARC records are missing or wrong. Check Email Deliverability in WHM.\"}}]}<\/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\/whm\/server-configuration\/tweak-settings\/\">cPanel documentation: Tweak Settings<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/docs.cpanel.net\/whm\/security-center\/smtp-restrictions\/\">cPanel documentation: SMTP Restrictions<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/docs.cpanel.net\/whm\/service-configuration\/exim-configuration-manager-basic-editor\/\">cPanel documentation: Exim Configuration Manager<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Spam emails can overload your cPanel server and affect deliverability. By optimizing Exim and Tweak Settings in WHM, you can significantly reduce spam and secure your mail server. Follow this step-by-step guide to configure your server for better email security.<\/p>\n","protected":false},"author":1,"featured_media":4853,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,202,81],"tags":[108,123,143,136,109],"class_list":["post-271","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-control-panels","category-cpanel-whm","category-hosting-guides","tag-tag-cpanel","tag-tag-domains","tag-email-deliverability","tag-tag-exim","tag-tag-whm"],"_links":{"self":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/271","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=271"}],"version-history":[{"count":10,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/271\/revisions"}],"predecessor-version":[{"id":6955,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/271\/revisions\/6955"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media\/4853"}],"wp:attachment":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media?parent=271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/categories?post=271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/tags?post=271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}