<?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>Unix Surgeon &#187; interface ip address</title>
	<atom:link href="http://www.unixsurgeon.com/kb/tag/interface-ip-address/feed" rel="self" type="application/rss+xml" />
	<link>http://www.unixsurgeon.com/kb</link>
	<description>Linux Hosting Solution, Linux Web Hosting Solution, Learn Linux, How to, Server Management , Web Hosting Solution , Linux Solution , KnowledgeBase , Linux Tutorial</description>
	<lastBuildDate>Mon, 06 Feb 2012 10:42:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Howto change interface ip address in Exim.</title>
		<link>http://www.unixsurgeon.com/kb/howto-change-interface-ip-address-in-exim.html</link>
		<comments>http://www.unixsurgeon.com/kb/howto-change-interface-ip-address-in-exim.html#comments</comments>
		<pubDate>Sun, 19 Apr 2009 08:10:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Exim]]></category>
		<category><![CDATA[Mail Server]]></category>
		<category><![CDATA[interface ip address]]></category>
		<category><![CDATA[mail server ip blacklisted]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/?p=18</guid>
		<description><![CDATA[Some times your server&#8217;s either main or shared IP address may get black listed by most of RBLs due to some reasons like(spamming,virus infacted mails &#38; trojans.
In such situations, it would be very difficult to receive/send some important emails due to this black list.And it affact your mail server reputation in all over the world.
In [...]]]></description>
			<content:encoded><![CDATA[<p>Some times your server&#8217;s either main or shared IP address may get black listed by most of RBLs due to some reasons like(spamming,virus infacted mails &amp; trojans.</p>
<p>In such situations, it would be very difficult to receive/send some important emails due to this black list.And it affact your mail server reputation in all over the world.</p>
<p>In such situation a quick resolution is to route/relay the emails through a secondary IP address on the same server which is not black listed under those RBLs.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>The mail server on cpanel i.e exim allows you to change the default IP address used by the mail server so that you would be able to route all emails through this new secondary IP address.</p>
<p>Method 1. :-** Send outgoing mail from the ip that matches the domain name in /etc/mailips (*: IP can be added to the file to change the main outgoing interface)**</p>
<p>Add an secondary ip address in to this file and save and exit.</p>
<p>Restart the exim service.<br />
# /etc/init.d/exim restart</p>
<p>Method 2 :- Here are the step by step instructions for you to configure your exim mail server to use new IP address.</p>
<p>1 :- Shutdown the exim service.<br />
# service exim stop or /etc/init.d/exim stop</p>
<p>2 :- Edit your exim configuration file.<br />
# vi /etc/exim.conf</p>
<p>3 :- go to &#8220;remote_smtp&#8221; section under &#8220;TRANSPORTS CONFIGURATION&#8221;.<br />
By default it would look like below:</p>
<p>remote_smtp:<br />
driver = smtp<br />
interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch{/etc/mailips}{$value}{}}}{}}<br />
helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_ho stname}}</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<br />
4 :- Comment line containing &#8220;interface&#8221; and &#8220;helo_data&#8221; and add new &#8220;interface&#8221; to match with that of your new IP address. It should look like as follows:</p>
<p>remote_smtp:<br />
driver = smtp<br />
interface = 10.10.10.10 # Your IP address.</p>
<p>5 :- Save your changes and exit out from your exim configuration file.</p>
<p>Note :- Dont forget to set read only attributes on exim configuration file, so that it won&#8217;t get reset to default automatically.</p>
<p>You can do it using following command:</p>
<p># chattr +aui /etc/exim.conf</p>
<p>6 :- start exim service on your server.<br />
# service exim restart or /etc/init.d/exim restart</p>
<p>7 :- Make sure to set reverse DNS for this new IP address to point a valid FQDN.</p>
<p>8 :- Try sending a test email and you will find that, it was sent using this new IP address configured under your exim configuration.</p>
<p>You can verify it by checking the header of new email under exim&#8217;s log file i.e /var/log/exim_mainlog</p>
<p>Enjoy linux !!! <img src='http://www.unixsurgeon.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/howto-change-interface-ip-address-in-exim.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

