{"id":71,"date":"2009-09-26T17:06:58","date_gmt":"2009-09-26T21:06:58","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=71"},"modified":"2013-03-20T08:39:37","modified_gmt":"2013-03-20T12:39:37","slug":"sending-emails-using-a-different-ip-address","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/sending-emails-using-a-different-ip-address","title":{"rendered":"Sending emails using a different IP address"},"content":{"rendered":"<p>You can send emails of your server from an additional IP of your server instead of the main IP using iptables. Here is the iptable command:<\/p>\n<blockquote><p><strong>iptables -t nat -A POSTROUTING -o eth0 -p tcp -j SNAT &#8211;dport 25 &#8211;to-source IPAddress<\/strong><\/p><\/blockquote>\n<p>where, &#8220;IPAddress&#8221; is the additional IP of your server. To save the rule, execute<\/p>\n<p><strong>service iptables save<\/strong><\/p>\n<p>This will make the settings permanent and you can check the rule using<\/p>\n<p><strong>iptables -L -t nat<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can send emails of your server from an additional IP of your server instead of the main IP using iptables. Here is the iptable command:<br \/>\niptables -t nat -A POSTROUTING -o eth0 -p tcp -j SNAT &#8211;dport 25 &#8211;to-source IPAddress<br \/>\nwhere, &#8220;IPAddress&#8221; is the additional IP of your server. To save the rule, execute<br \/>\nservice iptables save<br \/>\nThis will make the settings permanent and you can check the rule using<br \/>\niptables -L -t nat<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[136,85,87,137,86,135],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/71"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=71"}],"version-history":[{"count":4,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/71\/revisions"}],"predecessor-version":[{"id":130,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/71\/revisions\/130"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}