<?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; DirectAdmin</title>
	<atom:link href="http://www.supportsages.com/blog/category/directadmin/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>Fri, 16 Jul 2010 02:47:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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[DirectAdmin]]></category>
		<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[cPanel]]></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>
<p align="left"><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/tt-twitter.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>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2009/08/exim-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>User stats in directadmin admin area &#8211; Solved with a good client&#8217;s help :)</title>
		<link>http://www.supportsages.com/blog/2009/06/user-stats-in-directadmin-admin-area-solved-with-a-good-clients-help/</link>
		<comments>http://www.supportsages.com/blog/2009/06/user-stats-in-directadmin-admin-area-solved-with-a-good-clients-help/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 20:58:46 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[bandwidth]]></category>
		<category><![CDATA[venet0]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=421</guid>
		<description><![CDATA[When one of our clients, Mr. Xavier opened an issue with us regarding the Usage stats not being shown, we were certain that this is a bug with DirectAdmin in the way how its license are read. We changed the ethernet_dev in directadmin.conf, but that didn't work out.

Client was asking us, 

<blockquote>In Admin Area --> Complete Usage Statistics --> Usage stats for venet0:0 is showing "None"

It's possible to fix this to reflect the traffic of this virtual adapter?</blockquote>

DirectAdmin didn't give a direct solution. Instead provided us with a complete packed files related to DirectAdmin. So the solution was this.

<code>cd /usr/local/directadmin
wget ...]]></description>
			<content:encoded><![CDATA[<p>When one of our clients, Mr. Xavier opened an issue with us regarding the Usage stats not being shown, we were certain that this is a bug with DirectAdmin in the way how its license are read. We changed the ethernet_dev in directadmin.conf, but that didn&#8217;t work out.</p>
<p>Client was asking us, </p>
<blockquote><p>In Admin Area &#8211;> Complete Usage Statistics &#8211;> Usage stats for venet0:0 is showing &#8220;None&#8221;</p>
<p>It&#8217;s possible to fix this to reflect the traffic of this virtual adapter?</p></blockquote>
<p>DirectAdmin didn&#8217;t give a direct solution. Instead provided us with a complete packed files related to DirectAdmin. So the solution was this.</p>
<p><code>cd /usr/local/directadmin<br />
wget -O new.tar.gz http://files.directadmin.com/7694310/packed_es50.tar.gz<br />
tar xvzf new.tar.gz<br />
./directadmin p<br />
killall -9 directadmin<br />
./directadmin d<br />
/etc/init.d/directadmin restart<br />
</code></p>
<p>For anyone facing this issue. I didn&#8217;t check more deeper into what changed, but must be related to htmls in data page on how device gets read.</p>
<p align="left"><a  class="tt" href="http://twitter.com/home/?status=User+stats+in+directadmin+admin+area+-+Solved+with+a+good+client%27s+help+%3A%29+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F421" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=User+stats+in+directadmin+admin+area+-+Solved+with+a+good+client%27s+help+%3A%29+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F421" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2009/06/user-stats-in-directadmin-admin-area-solved-with-a-good-clients-help/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
