<?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>SupportSages &#187; mail ip</title>
	<atom:link href="http://www.supportsages.com/blog/tag/mail-ip/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.supportsages.com/blog</link>
	<description>Technical Support and Server Management : Musings in the fox hole.</description>
	<lastBuildDate>Thu, 05 Jan 2012 03:05:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Howto change the email sending IP to an IP other than the main shared IP in exim on a cPanel server</title>
		<link>http://www.supportsages.com/blog/2009/05/howto-change-the-email-sending-ip-to-an-ip-other-than-the-main-shared-ip-in-exim-on-a-cpanel-server/</link>
		<comments>http://www.supportsages.com/blog/2009/05/howto-change-the-email-sending-ip-to-an-ip-other-than-the-main-shared-ip-in-exim-on-a-cpanel-server/#comments</comments>
		<pubDate>Fri, 22 May 2009 14:20:05 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[email hosting]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[ip change]]></category>
		<category><![CDATA[mail hosting]]></category>
		<category><![CDATA[mail ip]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=384</guid>
		<description><![CDATA[Often it happens that a mail server's main IP gets black listed by Yahoo, Gmail, Hotmail etc, there by causing issues to the web hosting customers in the server yelling and raising lots of support tickets.

When yahoo generates a permanently deferred message, it will take approximately 4 days or 96 hours - sometimes even a week to get it start accepting the mails from the servers. Gmail and Hotmail, simply accept the mails, but it blackholes the email , means mails will simply be deleted, without any error message from the servers.

So the solution would be to identify the spam ...]]></description>
			<content:encoded><![CDATA[<p>Often it happens that a mail server&#8217;s main IP gets black listed by Yahoo, Gmail, Hotmail etc, there by causing issues to the web hosting customers in the server yelling and raising lots of support tickets.</p>
<p>When yahoo generates a permanently deferred message, it will take approximately 4 days or 96 hours &#8211; sometimes even a week to get it start accepting the mails from the servers. Gmail and Hotmail, simply accept the mails, but it blackholes the email , means mails will simply be deleted, without any error message from the servers.</p>
<p>So the solution would be to identify the spam sources and remove them. However even after we remove the spam sources, customers wont start getting emails immediately. So a temporary work around is to change the IPs from which the emails are sent out. </p>
<p>By default emails are sent out from a mail server using it&#8217;s main shared IP. Here we are changing it. You can change it on per-account basis or for a entire server</p>
<p>The easiest method to see a full version of the files with proper syntax is to temporarily enable the following &#8220;automatic&#8221; option under WHM >> Main >> Service Configuration >> Exim Configuration Editor >> Standard Options >> Domains and IPs<br />
&#8220;Automatically send outgoing mail from the account&#8217;s IP address instead of the main IP address.&#8221;</p>
<p>/etc/mailips will have the following format to be followed.</p>
<p><code>domain.com: xx.xx.xx.1<br />
sub.domain.com: xx.xx.xx.2<br />
addondomain.com: xx.xx.xx.2<br />
*: xx.xx.xx.xx </code></p>
<p>If you want the entire server to use an alternate IP, use the last line alone which is the wild card entry. </p>
<p><code>*: new.ip.for.smtp</code></p>
<p>Sometimes you would want to set <code>chattr +i /etc/mailips</code> since, a cPanel update can clear the lines in it. And once you believe the main server is unblocked, remove the chattr. Please restart the exim server as well, after you made the changes in /etc/mailips</p>
<p>You would need to search for<br />
<code><br />
remote_smtp:<br />
driver = smtp</code></p>
<p>and make sure that a line similar to below exists, which does literal search for the IPs in /etc/mailips. If /etc/mailips lines are not there, you can simply add interface=xx.xx.xx.xx entries.</p>
<blockquote><p>
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$</p></blockquote>
<p>Ref : <a  href="http://forums.cpanel.net/f43/formats-etc-mailhelo-mailips-etc-111977.html">http://forums.cpanel.net/f43/formats-etc-mailhelo-mailips-etc-111977.html</a> for more details and few more formats. </p>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=Howto+change+the+email+sending+IP+to+an+IP+other+than+the+main+shared+IP+in+exim+on+a+cPanel+server+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F384" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=Howto+change+the+email+sending+IP+to+an+IP+other+than+the+main+shared+IP+in+exim+on+a+cPanel+server+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F384" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2009/05/howto-change-the-email-sending-ip-to-an-ip-other-than-the-main-shared-ip-in-exim-on-a-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

