{"id":5018,"date":"2025-03-01T12:03:26","date_gmt":"2025-03-01T17:03:26","guid":{"rendered":"https:\/\/underhost.com\/blog\/?p=5018"},"modified":"2025-02-21T12:05:03","modified_gmt":"2025-02-21T17:05:03","slug":"changing-the-outgoing-email-ip-in-cpanel-exim-step-by-step-guide","status":"publish","type":"post","link":"https:\/\/underhost.com\/blog\/changing-the-outgoing-email-ip-in-cpanel-exim-step-by-step-guide\/","title":{"rendered":"Changing the Outgoing Email IP in cPanel &#038; Exim: Step-by-Step Guide"},"content":{"rendered":"<h2><strong>Why Change the Outgoing Email IP in cPanel &#038; Exim?<\/strong><\/h2>\n<p>By default, Exim in <a href=\"https:\/\/underhost.com\/cpanel.php\" target=\"_blank\">cPanel<\/a> uses the server\u2019s main IP address for sending emails. However, there are several reasons why you might want to change this:<\/p>\n<ul>\n<li><strong>Avoid blacklisted IPs:<\/strong> If your main IP is on an email blacklist, switching to a clean IP can improve deliverability.<\/li>\n<li><strong>Better email management:<\/strong> Assign different IPs to different domains or email accounts.<\/li>\n<li><strong>Compliance &#038; reputation management:<\/strong> Keeping transactional and marketing emails on separate IPs prevents one from affecting the other.<\/li>\n<\/ul>\n<h2><strong>Step-by-Step Guide to Changing the Outgoing Email IP<\/strong><\/h2>\n<h3><strong>Step 1: Ensure You Have a Secondary IP Address<\/strong><\/h3>\n<p>Before modifying Exim, ensure that your server has additional IP addresses assigned. You can check available IPs in WHM:<\/p>\n<ol>\n<li>Log into <a href=\"https:\/\/underhost.com\/cpanel.php\" target=\"_blank\">WHM<\/a>.<\/li>\n<li>Navigate to <strong>IP Functions \u2192 Show IP Address Usage<\/strong>.<\/li>\n<li>Ensure you have at least one additional unused IP.<\/li>\n<\/ol>\n<h3><strong>Step 2: Edit the Exim Configuration<\/strong><\/h3>\n<p>Now, we\u2019ll modify Exim to send emails from a different IP.<\/p>\n<ol>\n<li>In WHM, go to <strong>Service Configuration \u2192 Exim Configuration Manager<\/strong>.<\/li>\n<li>Click on the <strong>Advanced Editor<\/strong> tab.<\/li>\n<li>Find the section labeled <strong>&#8220;remote_smtp:&#8221;<\/strong>.<\/li>\n<li>Modify the section to include the new outgoing IP:\n<pre><code>remote_smtp:\r\n  driver = smtp\r\n  interface = xxx.xxx.xxx.xxx  # Replace with your desired IP address<\/code><\/pre>\n<\/li>\n<li>Click <strong>Save<\/strong> and restart Exim.<\/li>\n<\/ol>\n<h3><strong>Step 3: Assign Different IPs to Specific Domains (Optional)<\/strong><\/h3>\n<p>If you want to use different outgoing IPs for different domains:<\/p>\n<ol>\n<li>In WHM, open <strong>Exim Configuration Manager<\/strong>.<\/li>\n<li>Go to the <strong>Domains and IPs<\/strong> section.<\/li>\n<li>Enable <strong\"Send mail from the account\u2019s IP address\"<\/strong>.<\/li>\n<li>Assign specific IPs to each domain via <strong>Account Functions \u2192 Change Site\u2019s IP Address<\/strong>.<\/li>\n<\/ol>\n<h3><strong>Step 4: Verify and Test the New Outgoing IP<\/strong><\/h3>\n<p>To confirm your emails are sent from the new IP:<\/p>\n<ol>\n<li>Send a test email from a cPanel email account.<\/li>\n<li>Check the email headers in your recipient&#8217;s inbox.<\/li>\n<li>Look for the line:\n<pre><code>Received: from (xxx.xxx.xxx.xxx)<\/code><\/pre>\n<li>Ensure the IP matches the one you configured.<\/li>\n<\/ol>\n<h2><strong>Best Practices for Email Deliverability<\/strong><\/h2>\n<ul>\n<li><strong>Update SPF records:<\/strong> Add the new IP to your domain\u2019s SPF record.<\/li>\n<li><strong>Set up Reverse DNS (PTR):<\/strong> Ensure the new IP has a proper PTR record.<\/li>\n<li><strong>Monitor blacklists:<\/strong> Regularly check if your IP is blacklisted.<\/li>\n<li><strong>Use DKIM and DMARC:<\/strong> Authenticate emails for better inbox placement.<\/li>\n<\/ul>\n<h2><strong>Need Assistance?<\/strong><\/h2>\n<p>If you need help configuring Exim or optimizing email deliverability, <a href=\"https:\/\/customerpanel.ca\/client\" target=\"_blank\">@CustomerPanel<\/a> is available 24\/7. Check out <a href=\"https:\/\/underhost.com\/managed-business-hosting.php\" target=\"_blank\">UnderHost&#8217;s Managed Hosting<\/a> for expert-managed email solutions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to configure Exim in cPanel to send outgoing emails from a different IP address and improve email deliverability.<\/p>\n","protected":false},"author":1,"featured_media":5019,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,3,70,69],"tags":[],"class_list":["post-5018","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","category-controlpanel","category-cpanel","category-support"],"_links":{"self":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/5018","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=5018"}],"version-history":[{"count":1,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/5018\/revisions"}],"predecessor-version":[{"id":5020,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/5018\/revisions\/5020"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media\/5019"}],"wp:attachment":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media?parent=5018"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/categories?post=5018"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/tags?post=5018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}