{"id":14,"date":"2019-09-17T16:57:05","date_gmt":"2019-09-17T16:57:05","guid":{"rendered":"https:\/\/www.resellerslot.com\/blog\/2019\/09\/17\/how-to-change-exim-mail-server-ip-in-linux-cpanel-for-outbound-mails\/"},"modified":"2019-09-17T23:32:19","modified_gmt":"2019-09-17T23:32:19","slug":"change-mail-server-ip-exim-linux-cpanel","status":"publish","type":"post","link":"https:\/\/www.resellerslot.com\/blog\/change-mail-server-ip-exim-linux-cpanel\/","title":{"rendered":"How to change exim mail server ip in linux \/ cPanel for outbound mails?"},"content":{"rendered":"<div class=\"site_wrapper\">\n<div class=\"container_full\">\n<div class=\"top_shadow\"><img decoding=\"async\" src=\"https:\/\/www.resellerslot.com\/upload\/services\/thumbs\/30648_avoid-getting-blacklisted.jpg\" alt=\"How to change exim mail server ip in linux \/ cPanel for outbound mails?\"><\/div>\n<\/div>\n<div class=\"container\">\n<div class=\"content_left\">\n<div class=\"blog_post\">\n<div class=\"blog_postcontent\">\n<div class=\"post_info_content\" style=\"margin: 10px 0px;\">\n<p>It is a very important topic and sys admins needs this to know how one can update or change mail server ip, usually the need to change mail server ip raise when current mail server IP get black listed and all the email start being bounced back to send with this kind of bounce.<\/p>\n<p>This message was created automatically by mail delivery software.<\/p>\n<p>A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:<\/p>\n<p>example@live.com<\/p>\n<p>SMTP error from remote mail server after MAIL FROM:<\/p>\n<p>&lt;example@domai.com&gt; SIZE=2468: <span style=\"font-weight: bold;\">host mx3.hotmail.com [207.46.8.199]: 550 OU-002 (BAY004-MC6F14)<\/span> Unfortunately, messages &lt;\/example@domai.com&gt;<\/p>\n<p>weren&#8217;t sent. Please contact your Internet service provider since part of their network is on our block list.<\/p>\n<p>If there are more IPs are available in your system, you can assign any other ip which could be responsible for sending emails despite your current, default or main server IP, even it is best practice to run mail server through a different IP other than your main server IP, especially if you are a hosting company.<\/p>\n<p>Now let us change mail server IP for our Linux and WHM based server.<\/p>\n<h2>Steps can be executed via command line in ssh<\/h2>\n<ol>\n<li>Login to your server or VPS as root user.<\/li>\n<li>Run this command <strong>vi \/etc\/mailips<\/strong>.<\/li>\n<li>Click the button of keyboard <strong>i<\/strong> to insert your new ip Let\u2019s suppose you have a free ip in your server as 111.222.333.444.<\/li>\n<li>Insert the new ip as <strong>*:111.222.333.444<\/strong><\/li>\n<li>Then enter <strong>ZZ<\/strong>to save the changes.<\/li>\n<\/ol>\n<div style=\"text-align: center;\"><img decoding=\"async\" title=\"\" src=\"https:\/\/www.resellerslot.com\/images\/mail-ip-change.png\" alt=\"\" border=\"0px\"><\/div>\n<p>This would be the final step in ssh.<\/p>\n<p>Now we will have tell exim to use our new configuration, which can be done via WHM\/cPanel<\/p>\n<h3>Steps in cPanel to change exim IP<\/h3>\n<ol>\n<li>Login to WHM as root<\/li>\n<li>Follow these steps <strong>Home \u00bbService Configuration \u00bbExim Configuration Manager<\/strong> then <strong>Domains and IPs<\/strong> then switch this option as enabled <strong>&#8220;Reference \/etc\/mailips for outgoing SMTP connections&#8221;<\/strong> and click on Save.<\/li>\n<\/ol>\n<div style=\"text-align: center;\"><img decoding=\"async\" title=\"\" src=\"https:\/\/www.resellerslot.com\/images\/exim-mail-ip-change.png\" alt=\"\" border=\"0px\"><\/div>\n<p>All you have done now, now your emails would start being sent through new ip and if your prior ip was black listed, no worries, and your all emails start being sent now through new updated IP.<\/p>\n<h4>Note :<\/h4>\n<p>Don&#8217;t forget to update <strong>rDns or PTR<\/strong> of new assigned IP to avoid your sent emails as junk.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is a very important topic and sys admins needs this to know how one can update or change mail server ip, usually the need to change mail server ip raise when current mail server IP get black listed and all the email start being bounced back to send with this kind of bounce. This [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-14","post","type-post","status-publish","format-standard","hentry","category-hosting"],"_links":{"self":[{"href":"https:\/\/www.resellerslot.com\/blog\/wp-json\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.resellerslot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.resellerslot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.resellerslot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.resellerslot.com\/blog\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":4,"href":"https:\/\/www.resellerslot.com\/blog\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":150,"href":"https:\/\/www.resellerslot.com\/blog\/wp-json\/wp\/v2\/posts\/14\/revisions\/150"}],"wp:attachment":[{"href":"https:\/\/www.resellerslot.com\/blog\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.resellerslot.com\/blog\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.resellerslot.com\/blog\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}