<?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; cheat sheets</title>
	<atom:link href="http://www.supportsages.com/blog/tag/cheat-sheets/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>
	</channel>
</rss>

