<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>experimental &#187; MTA</title>
	<atom:link href="http://www.tajidyakub.com/tag/mta/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tajidyakub.com</link>
	<description>Experience the Experiment</description>
	<lastBuildDate>Sat, 10 Oct 2009 19:32:38 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setup Outbound Mail IP Address for Postfix</title>
		<link>http://www.tajidyakub.com/etcetera/setup-outbound-mail-ip-address-for-postfix-2009-09-12.html</link>
		<comments>http://www.tajidyakub.com/etcetera/setup-outbound-mail-ip-address-for-postfix-2009-09-12.html#comments</comments>
		<pubDate>Sat, 12 Sep 2009 00:28:58 +0000</pubDate>
		<dc:creator>Tajid Yakub</dc:creator>
				<category><![CDATA[Etcetera]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[MTA]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.tajidyakub.com/?p=17</guid>
		<description><![CDATA[
If you have aliased IP Address, all connection made from your server will be seen as you main IP Address by the outside world, unless of course, stated otherwise.
In this case, one of my server have around 5 usable IP Address, and only two are effectively in use, one for the the web server and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tajidyakub.com/wp-content/uploads/2009/09/postfix-header.jpg"><img class="aligncenter size-full wp-image-18" title="postfix-header" src="http://www.tajidyakub.com/wp-content/uploads/2009/09/postfix-header.jpg" alt="postfix-header" width="600" height="140" /></a></p>
<p>If you have aliased IP Address, all connection made from your server will be seen as you main IP Address by the outside world, unless of course, stated otherwise.</p>
<p><span id="more-17"></span>In this case, one of my server have around 5 usable IP Address, and only two are effectively in use, one for the the web server and the other is for inbound Mail Server IP Address.  I am using postfix MTA which by default listen to all IP Address(es) in your server including the loopback (localhost).</p>
<p>If you want to use a dedicated IP Address to send emails to the outside world, in postfix, you can either;</p>
<ul>
<li>Set the inet_interfaces into one spesific IP Address, e.g. inet_interfaces = 117.103.xx.xx, the IP Address can&#8217;t be loopback address.</li>
<li>Or, use the smtp_bind_address parameter</li>
</ul>
<h2>SMTP Bind Address</h2>
<p>I need postfix to listen on loopback address, so option one is no go, so I try using option smtp_bind_address, which according to the manual can be configured either through main.cf, or master.cf.</p>
<p>I try master.cf first so I can use different IP Address from the one use by inbound mail, but was not successful, so I try to put the parameter in the main.cf.</p>
<pre>smtp_bind_address = 117.103.xx.xx</pre>
<p>Where 117.103.xx.xx is the same IP Address used by mx host name stated in the DNS config. I am still experimenting with the master.cf, and intend to update this post when successful.</p>
<h2>References:</h2>
<ul>
<li><a href="http://www.postfix.org/postconf.5.html#smtp_bind_address">http://www.postfix.org/postconf.5.html#smtp_bind_address</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.tajidyakub.com/etcetera/setup-outbound-mail-ip-address-for-postfix-2009-09-12.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
