{"id":824,"date":"2013-08-21T12:46:49","date_gmt":"2013-08-21T12:46:49","guid":{"rendered":"http:\/\/www.plugged.in\/?p=824"},"modified":"2019-05-06T16:05:48","modified_gmt":"2019-05-06T13:05:48","slug":"change-outgoing-ip-of-postfix-mail-server","status":"publish","type":"post","link":"https:\/\/www.veriteknik.net.tr\/en\/change-outgoing-ip-of-postfix-mail-server\/","title":{"rendered":"Change Outgoing IP of Postfix Mail Server"},"content":{"rendered":"<p>This can get quite important when your mail server is blacklisted, or if you somehow want to simply change the outgoing IP address.<\/p>\n<p>First of all, check that you DO have another ip address on another interface at the server. Either by ifconfig or anything else.<\/p>\n<p>To change the outgoing IP on a postfix mail server, edit the file <strong>\/etc\/postfix\/master.cf<\/strong><\/p>\n<p>Find this part in the file,<\/p>\n<pre class=\"brush: text; gutter: true; first-line: 1\">smtp      unix  -       -       -       -       -       smtp\n# When relaying mail as backup MX, disable fallback_relay to avoid MX loops\nrelay     unix  -       -       -       -       -       smtp\n        -o smtp_fallback_relay=<\/pre>\n<p>You should modify it to look like below<\/p>\n<pre class=\"brush: text; gutter: true; first-line: 1\">smtp      unix  -       -       -       -       -       smtp\n        -o smtp_bind_address=192.168.1.1\n# When relaying mail as backup MX, disable fallback_relay to avoid MX loops\nrelay     unix  -       -       -       -       -       smtp\n        -o smtp_bind_address=192.168.1.1\n        -o smtp_fallback_relay=<\/pre>\n<p>Of course, change the IP address 192.168.1.1 to whatever your secondary IP is.<\/p>\n<p>Then restart and reload the postfix server.<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">[root@mail ~]# \/etc\/init.d\/postfix restart\nShutting down postfix:                                     [  OK  ]\nStarting postfix:                                          [  OK  ]\n[root@mail ~]# \/etc\/init.d\/postfix reload\nReloading postfix:                                         [  OK  ]<\/pre>\n<p>That&#8217;s it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This can get quite important when your mail server is blacklisted, or if you somehow want to simply change the outgoing IP address. First of all, check that you DO have another ip address on another interface at the server. Either by ifconfig or anything else. To change the outgoing IP on a postfix mail [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[370,386],"tags":[558,566],"yst_prominent_words":[911,1178,1175,1174,605,908,839,1243,1176,1330,1177,1242,337],"class_list":["post-824","post","type-post","status-publish","format-standard","hentry","category-linux","category-network","tag-mail","tag-postfix"],"jetpack_featured_media_url":"","uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Mustafa Emre Ayd\u0131n","author_link":"https:\/\/www.veriteknik.net.tr\/en\/author\/eaydin\/"},"uagb_comment_info":0,"uagb_excerpt":"This can get quite important when your mail server is blacklisted, or if you somehow want to simply change the outgoing IP address. First of all, check that you DO have another ip address on another interface at the server. Either by ifconfig or anything else. To change the outgoing IP on a postfix mail&hellip;","_links":{"self":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts\/824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/comments?post=824"}],"version-history":[{"count":3,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts\/824\/revisions"}],"predecessor-version":[{"id":7241,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/posts\/824\/revisions\/7241"}],"wp:attachment":[{"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/media?parent=824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/categories?post=824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/tags?post=824"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/www.veriteknik.net.tr\/en\/wp-json\/wp\/v2\/yst_prominent_words?post=824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}