{"id":210,"date":"2025-03-28T10:57:16","date_gmt":"2025-03-28T08:57:16","guid":{"rendered":"https:\/\/www.24x7serverguard.com\/blog\/?p=210"},"modified":"2025-03-28T10:57:16","modified_gmt":"2025-03-28T08:57:16","slug":"how-to-change-the-mail-server-ip-address-in-plesk","status":"publish","type":"post","link":"https:\/\/www.24x7serverguard.com\/blog\/plesk\/how-to-change-the-mail-server-ip-address-in-plesk\/","title":{"rendered":"How to Change the Mail Server IP Address in Plesk?"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>If your <strong>primary mail server IP address<\/strong> is blocked by spam-checking services (e.g., <strong>BARRACUDA, SORBS-SPAM<\/strong>), the best solution is to change the <strong>outgoing mail server IP address<\/strong> in <strong>Plesk<\/strong>.<\/p>\n\n\n\n<p>On a <strong>cPanel server<\/strong>, this is done via <code>\/etc\/mailips<\/code>. In <strong>Plesk<\/strong>, you need to update the <code>\/var\/qmail\/control\/smtproutes<\/code> file.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Step 1: Check Hosted Domains on the Server<br><\/strong>Before modifying the mail server IP, list the domains hosted on the server by running:<\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">cat \/var\/qmail\/control\/rcpthosts<\/mark><\/p>\n\n\n\n<p>\ud83d\udd0d <strong>Example Output:<\/strong><\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">domain1.com<br>domain2.com<br>domain3.com<br>domain4.com<br>domain5.com<\/mark><\/p>\n\n\n\n<p><strong>Step 2: Create or Edit the smtproutes File<br><\/strong>By default, the <strong>smtproutes<\/strong> file <strong>does not exist<\/strong> in Plesk. You need to create it manually.<\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">vi \/var\/qmail\/control\/smtproutes<\/mark><\/p>\n\n\n\n<p><strong>Step 3: Assign a New Mail Server IP Address<\/strong><\/p>\n\n\n\n<p>Add the new <strong>outgoing mail server IP<\/strong> in the following format:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">domain1.com:192.168.0.2<br>domain2.com:192.168.0.2<\/mark><\/p>\n\n\n\n<p>\u2705 <strong>Replace<\/strong> <code>192.168.0.2<\/code> with your actual <strong>new IP address<\/strong>.<br>\u2705 <strong>Replace<\/strong> <code>domain1.com<\/code> with your actual <strong>domain name<\/strong>.<\/p>\n\n\n\n<p><strong>Step 4: Restart Qmail to Apply Changes<\/strong><\/p>\n\n\n\n<p>After updating the <code>smtproutes<\/code> file, restart the <strong>qmail<\/strong> service:<\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\/etc\/init.d\/qmail restart<\/mark><\/p>\n\n\n\n<p><strong>Final Check:<\/strong><br>\u2714 <strong>Verify outgoing emails use the new IP<\/strong> by checking the mail logs:<\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">tail -f \/var\/log\/mail.log<\/mark><\/p>\n\n\n\n<p>\u2714 Use an <strong>email header analysis tool<\/strong> to confirm that outgoing emails are being sent from the new IP.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Benefits of Changing the Mail Server IP:<\/strong><\/p>\n\n\n\n<p>\u2705 <strong>Avoid blacklisted IPs<\/strong> to improve email deliverability.<br>\u2705 <strong>Prevent outgoing emails from landing in spam folders.<\/strong><br>\u2705 <strong>Enhance email reputation and ensure reliable mail flow.<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\"><strong><br><\/strong><\/mark><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your primary mail server IP address is blocked by spam-checking services (e.g., BARRACUDA, SORBS-SPAM), the best solution is to change the outgoing mail server IP address in Plesk. On a cPanel server, this is done via \/etc\/mailips. In Plesk, you need to update the \/var\/qmail\/control\/smtproutes file. Step 1: Check Hosted Domains on the ServerBefore [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":211,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[127],"tags":[132,135,133,134],"class_list":["post-210","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plesk","tag-change-mail-server-ip-in-plesk","tag-change-smtp-ip-in-plesk-linux-server","tag-fix-spam-blacklisting-in-plesk-mail-server","tag-update-outgoing-mail-ip-in-plesk-qmail"],"_links":{"self":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/comments?post=210"}],"version-history":[{"count":1,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/210\/revisions"}],"predecessor-version":[{"id":212,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/210\/revisions\/212"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/media\/211"}],"wp:attachment":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/media?parent=210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/categories?post=210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/tags?post=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}