<?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; email</title>
	<atom:link href="http://www.supportsages.com/blog/tag/email/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>Exim cheat sheet &#8211; Commands for  troubleshoot mail issues in cPanel/DirectAdmin or any exim mail server</title>
		<link>http://www.supportsages.com/blog/2009/08/exim-commands/</link>
		<comments>http://www.supportsages.com/blog/2009/08/exim-commands/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 09:35:50 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[cheat sheets]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[exim -bt]]></category>
		<category><![CDATA[exim tips and tricks]]></category>
		<category><![CDATA[mail server]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=499</guid>
		<description><![CDATA[Below are the most common exim commands which helps an Administrator to ease his life

Print a count of the messages in the queue:
<blockquote>exim -bpc</blockquote>
Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient):
<blockquote>exim -bp</blockquote>
Print a summary of messages in the queue (count, volume, oldest, newest, domain, and total
<blockquote>exim -bp&#124; exiqsumm</blockquote>
Print what Exim is doing right now:
<blockquote>exiwhat</blockquote>
To check if the server routes the mail properly use exim -bt
<blockquote>
<pre><strong>#</strong> exim -bt alias@localdomain.com
user@thishost.com
    &#60;-- alias@localdomain.com
  router = localuser, transport = local_delivery
<strong>root@localhost#</strong> exim -bt user@thishost.com
user@thishost.com
  router = localuser, transport = local_delivery
<strong>root@localhost#</strong> exim -bt user@remotehost.com
 ...]]></description>
			<content:encoded><![CDATA[<p>Below are the most common exim commands which helps an Administrator to ease his life</p>
<p>Print a count of the messages in the queue:</p>
<blockquote><p>exim -bpc</p></blockquote>
<p>Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient):</p>
<blockquote><p>exim -bp</p></blockquote>
<p>Print a summary of messages in the queue (count, volume, oldest, newest, domain, and total</p>
<blockquote><p>exim -bp| exiqsumm</p></blockquote>
<p>Print what Exim is doing right now:</p>
<blockquote><p>exiwhat</p></blockquote>
<p>To check if the server routes the mail properly use exim -bt</p>
<blockquote>
<pre><strong>#</strong> exim -bt alias@localdomain.com
user@thishost.com
    &lt;-- alias@localdomain.com
  router = localuser, transport = local_delivery
<strong>root@localhost#</strong> exim -bt user@thishost.com
user@thishost.com
  router = localuser, transport = local_delivery
<strong>root@localhost#</strong> exim -bt user@remotehost.com
  router = lookuphost, transport = remote_smtp
  host mail.remotehost.com [1.2.3.4] MX=0</pre>
</blockquote>
<p>Display all of Exim&#8217;s configuration settings:</p>
<blockquote><p>exim -bp</p></blockquote>
<h3>exiqgrep</h3>
<p>Its used for grepping through the  exim queue.</p>
<p>search the queue for messages from a specific sender :</p>
<blockquote><p>exigrep -f  user@domainname.com</p></blockquote>
<p>Search the queue for a specific reciepient</p>
<blockquote><p>exigrep -r user@domainname.com</p></blockquote>
<p>To print messages older than the specified number of seconds use -o .</p>
<p>For example, messages older than 1 day:</p>
<blockquote><p>exigrep -o 86400</p></blockquote>
<p>To print messages younger than specified number of seconds use -y</p>
<p>Messages younger than one day can be listed  using the command</p>
<blockquote><p>exigrep -y 86400</p></blockquote>
<p>Print just the message-id of the entire queue:</p>
<blockquote><p>exiqgrep -i</p></blockquote>
<h3>Managing the queue</h3>
<p>Start a queue run:</p>
<blockquote><p>exim -q -v</p></blockquote>
<p>Start a queue run for just local deliveries:</p>
<blockquote><p>exim -ql  -v</p></blockquote>
<p>Remove a message from the queue:</p>
<blockquote><p>exim -Mrm &lt;message id &gt;</p></blockquote>
<p>Freeze a message:</p>
<blockquote><p>exim -Mf &lt;message id &gt;</p></blockquote>
<p>Thaw a message:</p>
<blockquote><p>exim -Mt &lt;message id&gt;</p></blockquote>
<p>Deliver a message, whether it&#8217;s frozen or not, whether the retry time has been reached or not:</p>
<blockquote><p>exim -M &lt;message id&gt;</p></blockquote>
<p>Deliver a message, but only if the retry time has been reached:</p>
<blockquote><p>exim -Mc &lt;message_id&gt;</p></blockquote>
<p>Force a message to  Freeze and bounce as &#8220;Canceled by Admin&#8221;</p>
<blockquote><p>exim -Mg &lt;message id&gt;</p></blockquote>
<p>Remove all frozen mails</p>
<blockquote><p>exigrep -z -i | xargs exim -Mrm</p></blockquote>
<p>Remove all messages older than five days (86400 * 5 = 432000 seconds):</p>
<blockquote><p>exigrep -o 432000 -i | xargs exim -Mrm</p></blockquote>
<p>Freeze all queued mail from a given sender</p>
<blockquote><p>exiqgrep -i -f user@domain.com | xargs exim -Mf</p></blockquote>
<p>View a message&#8217;s headers:</p>
<blockquote><p>exim -Mvh &lt;messageid&gt;</p></blockquote>
<p>View a message&#8217;s body:</p>
<blockquote><p>exim -Mvb &lt;message id&gt;</p></blockquote>
<p>View a message&#8217;s logs:</p>
<blockquote><p>exim -Mvl &lt;message id&gt;</p></blockquote>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=Exim+cheat+sheet+-+Commands+for++troubleshoot+mail+issues+in+cPanel%2FDirectAdmin+or+any+exim+mail+server+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F499" 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=Exim+cheat+sheet+-+Commands+for++troubleshoot+mail+issues+in+cPanel%2FDirectAdmin+or+any+exim+mail+server+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F499" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2009/08/exim-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>

