<?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>Racker Hacker &#187; mail</title>
	<atom:link href="http://rackerhacker.com/tag/mail/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com</link>
	<description>Words of wisdom from a server administrator</description>
	<lastBuildDate>Tue, 07 Feb 2012 14:07:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SELinux and .forward files</title>
		<link>http://rackerhacker.com/2012/01/02/selinux-and-forward-files/</link>
		<comments>http://rackerhacker.com/2012/01/02/selinux-and-forward-files/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 22:44:43 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[selinux]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=2680</guid>
		<description><![CDATA[If you want to forward e-mail from root to another user, you can usually place a .forward file in root's home directory and your mail server will take care of the rest: echo &#34;user@example.com&#34; &#62; /root/.forward With SELinux, you'll end up getting an AVC denial each time your mail server tries to read the contents [...]<p><a href="http://rackerhacker.com/2012/01/02/selinux-and-forward-files/">SELinux and .forward files</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>If you want to forward e-mail from root to another user, you can usually place a <code>.forward</code> file in root's home directory and your mail server will take care of the rest:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">echo &quot;user@example.com&quot; &gt; /root/.forward</pre></div></div>

<p>With SELinux, you'll end up getting an AVC denial each time your mail server tries to read the contents of the <code>.forward</code> file:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">type=AVC msg=audit(1325543823.787:7416): avc:  denied  { open } for  pid=9850 
  comm=&quot;local&quot; name=&quot;.forward&quot; dev=md0 ino=17694734 
  scontext=system_u:system_r:postfix_local_t:s0 
  tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file</pre></div></div>

<p>The reason is that your <code>.forward</code> file doesn't have the right SELinux contexts.  You can set the correct contest quickly with <code>restorecon</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"># ls -Z /root/.forward 
-rw-r--r--. root root unconfined_u:object_r:admin_home_t:s0 /root/.forward
# restorecon -v /root/.forward
restorecon reset /root/.forward context unconfined_u:object_r:admin_home_t:s0-&gt;system_u:object_r:mail_forward_t:s0
# ls -Z /root/.forward 
-rw-r--r--. root root system_u:object_r:mail_home_t:s0 /root/.forward</pre></div></div>

<p>Try to send another e-mail to root and you should see the mail server forward the e-mail properly without any additional AVC denials.</p>
<p><a href="http://rackerhacker.com/2012/01/02/selinux-and-forward-files/">SELinux and .forward files</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2012/01/02/selinux-and-forward-files/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Deleting all e-mail messages in your inbox with mutt</title>
		<link>http://rackerhacker.com/2009/06/19/deleting-all-e-mail-messages-in-your-inbox-with-mutt/</link>
		<comments>http://rackerhacker.com/2009/06/19/deleting-all-e-mail-messages-in-your-inbox-with-mutt/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 17:37:58 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mutt]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=934</guid>
		<description><![CDATA[Occasionally, I'll end up with a mailbox full of random data, alerts, or other useless things. If you have SSH access to the server, you can always clear out your mail spool, but if you connect to an IMAP server, you can use mutt to do the same thing. First, use mutt to connect to [...]<p><a href="http://rackerhacker.com/2009/06/19/deleting-all-e-mail-messages-in-your-inbox-with-mutt/">Deleting all e-mail messages in your inbox with mutt</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>Occasionally, I'll end up with a mailbox full of random data, alerts, or other useless things.  If you have SSH access to the server, you can always clear out your mail spool, but if you connect to an IMAP server, you can use mutt to do the same thing.</p>
<p>First, use mutt to connect to your server remotely (via IMAP over SSL in this example):</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">mutt -f imaps://mail.yourdomain.com/</pre></div></div>

<p>Once you've connected and logged in, press <strong>SHIFT-D</strong> (uppercase d).  The status bar of mutt should show:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">Delete messages matching:</pre></div></div>

<p>Type in <code>~s .*</code> so that the line looks like:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">Delete messages matching: ~s .*</pre></div></div>

<p>When you press enter, mutt will put a <strong>D</strong> next to all of the messages, which marks them for deletion.  Press <code>q</code> to quit, and then <code>y</code> to confirm the deletion.  After a brief moment, all of those messages will be deleted and mutt will exit.</p>
<p><b>Update:</b> If you review Dmitri's comment below, there's an even faster way to remove all of the messages in a mailbox with mutt.  Just hold shift while pressing D, ~ (tilde), and A to select everything:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">D~A</pre></div></div>

<p><a href="http://rackerhacker.com/2009/06/19/deleting-all-e-mail-messages-in-your-inbox-with-mutt/">Deleting all e-mail messages in your inbox with mutt</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2009/06/19/deleting-all-e-mail-messages-in-your-inbox-with-mutt/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Plesk: Upgrade to 8.4 causes &quot;no such user&quot; error in maillog</title>
		<link>http://rackerhacker.com/2008/11/06/plesk-upgrade-to-84-causes-no-such-user-error-in-maillog/</link>
		<comments>http://rackerhacker.com/2008/11/06/plesk-upgrade-to-84-causes-no-such-user-error-in-maillog/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 17:04:08 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[plesk]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=521</guid>
		<description><![CDATA[If you have a Plesk server where short mail names are enabled, upgrading to Plesk 8.4 can cause some issues. Valid logins may be rejected, and they'll appear in your /usr/local/psa/var/log/maillog as "no such user". You can correct the issue by switching to long mail names (click Server -> Mail in Plesk), or you can [...]<p><a href="http://rackerhacker.com/2008/11/06/plesk-upgrade-to-84-causes-no-such-user-error-in-maillog/">Plesk: Upgrade to 8.4 causes "no such user" error in maillog</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>If you have a Plesk server where short mail names are enabled, upgrading to Plesk 8.4 can cause some issues.  Valid logins may be rejected, and they'll appear in your /usr/local/psa/var/log/maillog as "no such user".  You can correct the issue by switching to long mail names (click Server -> Mail in Plesk), or you can <a href="http://kb.parallels.com/Attachments/4889/Attachments/mail_fix.sh">run a shell script</a> provided by <a href="http://parallels.com/">Parallels</a>.</p>
<p>For further details, refer to the Plesk KB article <a href="http://kb.parallels.com/en/5256">"Mail users cannot get or send mail after upgrade to Plesk 8.4"</a></p>
<p><a href="http://rackerhacker.com/2008/11/06/plesk-upgrade-to-84-causes-no-such-user-error-in-maillog/">Plesk: Upgrade to 8.4 causes "no such user" error in maillog</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/11/06/plesk-upgrade-to-84-causes-no-such-user-error-in-maillog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forcing qmail to process e-mail in the queue</title>
		<link>http://rackerhacker.com/2008/05/02/forcing-qmail-to-process-e-mail-in-the-queue/</link>
		<comments>http://rackerhacker.com/2008/05/02/forcing-qmail-to-process-e-mail-in-the-queue/#comments</comments>
		<pubDate>Fri, 02 May 2008 17:00:51 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[plesk]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=298</guid>
		<description><![CDATA[Normally, qmail will be able to process the mail queue without any interaction from the system administrator, however, if you want to force it to process everything that is in the queue right now, you can do so: kill -ALRM `pgrep qmail-send` If for some peculiar reason you don't have pgrep on your server, you [...]<p><a href="http://rackerhacker.com/2008/05/02/forcing-qmail-to-process-e-mail-in-the-queue/">Forcing qmail to process e-mail in the queue</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>Normally, qmail will be able to process the mail queue without any interaction from the system administrator, however, if you want to force it to process everything that is in the queue right now, you can do so:</p>
<p><code>kill -ALRM `pgrep qmail-send`</code></p>
<p>If for some peculiar reason you don't have pgrep on your server, you can go about it a slightly different way:</p>
<p><code>kill -ALRM `ps ax | grep qmail-send | grep -v grep | awk '{print $1}'`</code></p>
<p>Your logs should begin filling up with data about e-mails rolling through the queue.</p>
<p><a href="http://rackerhacker.com/2008/05/02/forcing-qmail-to-process-e-mail-in-the-queue/">Forcing qmail to process e-mail in the queue</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/05/02/forcing-qmail-to-process-e-mail-in-the-queue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>mchk: Unable to initialize quota settings for someuser@somedomain.com</title>
		<link>http://rackerhacker.com/2008/04/14/mchk-unable-to-initialize-quota-settings-for-someusersomedomaincom/</link>
		<comments>http://rackerhacker.com/2008/04/14/mchk-unable-to-initialize-quota-settings-for-someusersomedomaincom/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 17:00:21 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[plesk]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=289</guid>
		<description><![CDATA[If you're working in Plesk and you receive this error: mchk: Unable to initialize quota settings for someuser@somedomain.com Run this command to fix the issue, but be patient: find /var/qmail/mailnames -type d -name '.*' ! -name '.spamassassin' -ls -exec touch '{}'/maildirfolder \; -exec chown popuser:popuser '{}'/maildirfolder \; Thanks to Mike Jackson for this one. mchk: [...]<p><a href="http://rackerhacker.com/2008/04/14/mchk-unable-to-initialize-quota-settings-for-someusersomedomaincom/">mchk: Unable to initialize quota settings for someuser@somedomain.com</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>If you're working in Plesk and you receive this error:</p>
<p><strong>mchk: Unable to initialize quota settings for someuser@somedomain.com</strong></p>
<p>Run this command to fix the issue, but be patient:</p>
<p><code>find /var/qmail/mailnames -type d -name '.*' ! -name '.spamassassin' -ls -exec touch '{}'/maildirfolder \; -exec chown popuser:popuser '{}'/maildirfolder \;</code></p>
<blockquote><p>Thanks to <a href="http://barking-dog.net/">Mike Jackson</a> for this one.</p></blockquote>
<p><a href="http://rackerhacker.com/2008/04/14/mchk-unable-to-initialize-quota-settings-for-someusersomedomaincom/">mchk: Unable to initialize quota settings for someuser@somedomain.com</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/04/14/mchk-unable-to-initialize-quota-settings-for-someusersomedomaincom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting the maximum mail size in qmail</title>
		<link>http://rackerhacker.com/2008/03/24/setting-the-maximum-mail-size-in-qmail/</link>
		<comments>http://rackerhacker.com/2008/03/24/setting-the-maximum-mail-size-in-qmail/#comments</comments>
		<pubDate>Mon, 24 Mar 2008 18:54:35 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[qmail]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2008/03/24/setting-the-maximum-mail-size-in-qmail/</guid>
		<description><![CDATA[On a Plesk server, the maximum size for an individual e-mail sent through qmail is unlimited. You can limit this size by adding a number to the /var/qmail/control/databytes file. If you wanted to limit this to something like 10MB, you can just run the following command: echo "10485760" > /var/qmail/control/databytes This will limit the size [...]<p><a href="http://rackerhacker.com/2008/03/24/setting-the-maximum-mail-size-in-qmail/">Setting the maximum mail size in qmail</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>On a Plesk server, the maximum size for an individual e-mail sent through qmail is unlimited.  You can limit this size by adding a number to the /var/qmail/control/databytes file.</p>
<p>If you wanted to limit this to something like 10MB, you can just run the following command:</p>
<p>echo "10485760" > /var/qmail/control/databytes</p>
<p>This will limit the size of messages (including attachments) to 10MB as a maximum.</p>
<p><a href="http://rackerhacker.com/2008/03/24/setting-the-maximum-mail-size-in-qmail/">Setting the maximum mail size in qmail</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/03/24/setting-the-maximum-mail-size-in-qmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reduce iowait in Plesk: put qmail&#039;s queue on a ramdisk</title>
		<link>http://rackerhacker.com/2008/03/14/reduce-iowait-in-plesk-put-qmails-queue-on-a-ramdisk/</link>
		<comments>http://rackerhacker.com/2008/03/14/reduce-iowait-in-plesk-put-qmails-queue-on-a-ramdisk/#comments</comments>
		<pubDate>Fri, 14 Mar 2008 18:16:57 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[iowait]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[qmail]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2008/03/14/reduce-iowait-in-plesk-put-qmails-queue-on-a-ramdisk/</guid>
		<description><![CDATA[I really dislike qmail. But, since I use Plesk, I'm stuck with it. However, I found a way to improve it's awful mail queue performance by putting the mail queue onto a ramdisk. This is actually pretty darned easy to do. First, toss a line like this into your /etc/fstab: none /mailqueue tmpfs defaults,size=100m,nr_inodes=999k,mode=775 0 [...]<p><a href="http://rackerhacker.com/2008/03/14/reduce-iowait-in-plesk-put-qmails-queue-on-a-ramdisk/">Reduce iowait in Plesk: put qmail's queue on a ramdisk</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>I really dislike qmail.  But, since I use Plesk, I'm stuck with it.  However, I found a way to improve it's awful mail queue performance by putting the mail queue onto a ramdisk.  This is actually pretty darned easy to do.</p>
<p>First, toss a line like this into your /etc/fstab:</p>
<p><code>
<pre>none    /mailqueue      tmpfs   defaults,size=100m,nr_inodes=999k,mode=775      0       0</pre>
<p></code></p>
<p>This will make a 100MB ramdisk on /mailqueue.  Now, just symlink /var/qmail/mqueue to /mailqueue and move your e-mail over:</p>
<p># mount /mailqueue<br />
# chmod 750 /mailqueue<br />
# chown qmailq:qmail /mailqueue<br />
# mv /var/qmail/mqueue /var/qmail/mqueue-old<br />
# ln -s /mailqueue /var/qmail/mqueue<br />
# rsync -av /var/qmail/mqueue-old /mailqueue</p>
<p>This has significantly cut the iowait on my server during heavy e-mail periods.  In addition, tools like <a href="http://sourceforge.net/projects/qmhandle">qmHandle</a> now fly through my mail queue and give me reports very quickly.</p>
<p><a href="http://rackerhacker.com/2008/03/14/reduce-iowait-in-plesk-put-qmails-queue-on-a-ramdisk/">Reduce iowait in Plesk: put qmail's queue on a ramdisk</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/03/14/reduce-iowait-in-plesk-put-qmails-queue-on-a-ramdisk/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>sendmail: savemail panic</title>
		<link>http://rackerhacker.com/2008/02/18/sendmail-savemail-panic/</link>
		<comments>http://rackerhacker.com/2008/02/18/sendmail-savemail-panic/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 18:56:37 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[sendmail]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2008/02/18/sendmail-savemail-panic/</guid>
		<description><![CDATA[If you see a large mail queue and your system's I/O is increasing, you may find messages like these in your syslog: Losing q5/qfg9N5EwE3004499: savemail panic SYSERR(root): savemail: cannot save rejected email anywhere In this situation, there's some reason why sendmail cannot deliver e-mail to the postmaster address. There's a few issues that can create [...]<p><a href="http://rackerhacker.com/2008/02/18/sendmail-savemail-panic/">sendmail: savemail panic</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>If you see a large mail queue and your system's I/O is increasing, you may find messages like these in your syslog:</p>
<p><code>Losing q5/qfg9N5EwE3004499: savemail panic<br />
SYSERR(root): savemail: cannot save rejected email anywhere</code></p>
<p>In this situation, there's some reason why sendmail cannot deliver e-mail to the postmaster address.  There's a few issues that can create this problem:</p>
<ul>
<li>Missing postmaster alias in /etc/aliases</li>
<li>Hard disk is full</li>
<li>The mail spool for the postmaster has the wrong ownership</li>
<li>The mbox file for the postmaster is over 2GB and procmail can't deliver the e-mail</li>
</ul>
<p>First, correct the situation that is preventing sendmail from delivering the e-mail to the postmaster user.  Then, stop sendmail, clear the e-mail queue, and start sendmail again.</p>
<p>I found this issue on a Red Hat Enterprise Linux 4 server and then found the solution on <a href="http://www.brandonhutchinson.com/savemail_panic_in_Sendmail.html">Brandon's</a> site.</p>
<p><a href="http://rackerhacker.com/2008/02/18/sendmail-savemail-panic/">sendmail: savemail panic</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/02/18/sendmail-savemail-panic/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>High iowait on RHEL 4 with Plesk and SpamAssassin</title>
		<link>http://rackerhacker.com/2008/01/31/high-iowait-on-rhel-4-with-plesk-and-spamassassin/</link>
		<comments>http://rackerhacker.com/2008/01/31/high-iowait-on-rhel-4-with-plesk-and-spamassassin/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 18:38:58 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[iowait]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[spamassassin]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2008/01/31/high-iowait-on-rhel-4-with-plesk-and-spamassassin/</guid>
		<description><![CDATA[One of my biggest complaints on RHEL 4 is the large resource usage by the version of SpamAssassin that is installed. When it runs, it uses a ton of CPU time and causes a lot of disk I/O as well. When running top, you may see multiple spamd processes. For a high-volume e-mail server (like [...]<p><a href="http://rackerhacker.com/2008/01/31/high-iowait-on-rhel-4-with-plesk-and-spamassassin/">High iowait on RHEL 4 with Plesk and SpamAssassin</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>One of my biggest complaints on RHEL 4 is the large resource usage by the version of SpamAssassin that is installed.  When it runs, it uses a ton of CPU time and causes a lot of disk I/O as well.  When running top, you may see multiple spamd processes.  For a high-volume e-mail server (like the one I administer), this is simply unacceptable.</p>
<p>I decided to do something about it, and here are the steps:</p>
<p><strong>First,</strong> you will need two RPMs:<br />
Latest <a href="http://dag.wieers.com/rpm/packages/spamassassin/">SpamAssassin RPM from Dag</a><br />
The <a href="http://autoinstall.plesk.com/">psa-spamassassin RPM from SWSoft/Parallels</a>.</p>
<p>Once you have them both on the server, install the new SpamAssassin package from Dag:</p>
<p><code># rpm -Uvh spamassassin-(version).el4.rf.(arch).rpm</code></p>
<p>At this point, Plesk's spamassassin scripts will be non-functional, but the next step will fix it:</p>
<p><code># rpm -Uvh --force psa-spamassassin-(version).(arch).rpm</code></p>
<p><strong>NOTE: DO NOT REMOVE the psa-spamassassin RPM.  This will begin stripping your system of all SpamAssassin configurations and it cannot be reversed!</strong></p>
<p>Plesk's SpamAssassin scripts have been restored at this point in the process.  Now, we need to do the part that really makes SpamAssassin work efficiently:</p>
<p><code># sa-update; sa-compile;</code></p>
<p>This will update the SpamAssassin rules, and it will compile the rules with re2c (you may also need to <a href="http://dag.wieers.com/rpm/packages/re2c/">get this RPM from Dag</a>).  This compilation means less disk access, and less CPU time being used to process e-mails.</p>
<p>To activate the compiled rules within SpamAssassin, uncomment the plugin line in /etc/mail/spamassassin/v320.pre:</p>
<p><code># Rule2XSBody - speedup by compilation of ruleset to native code<br />
#<br />
loadplugin Mail::SpamAssassin::Plugin::Rule2XSBody</code></p>
<p>Please bear in mind that this process is done <em>at your own risk</em>.  This may cause issues getting support from SWSoft or your hosting company.  This has been tested on Red Hat Enterprise Linux 4 64-bit with Plesk 8.1.1, 8.2.0, and 8.2.1 with SpamAssassin 3.2.3 and 3.2.4. </p>
<p><a href="http://rackerhacker.com/2008/01/31/high-iowait-on-rhel-4-with-plesk-and-spamassassin/">High iowait on RHEL 4 with Plesk and SpamAssassin</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/01/31/high-iowait-on-rhel-4-with-plesk-and-spamassassin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&#039;t enable DNSBL/RBL in Plesk because it&#039;s greyed out</title>
		<link>http://rackerhacker.com/2008/01/25/cant-enable-dnsblrbl-in-plesk-because-its-greyed-out/</link>
		<comments>http://rackerhacker.com/2008/01/25/cant-enable-dnsblrbl-in-plesk-because-its-greyed-out/#comments</comments>
		<pubDate>Fri, 25 Jan 2008 17:11:27 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[qmail]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2008/01/25/cant-enable-dnsblrbl-in-plesk-because-its-greyed-out/</guid>
		<description><![CDATA[If you have a new Plesk installation and the following option is greyed out in Server -> Mail: Switch on spam protection based on DNS blackhole lists Just install the following RPM from Plesk: psa-qmail-rblsmtpd Can't enable DNSBL/RBL in Plesk because it's greyed out is a post from: Major Hayden's Racker Hacker blog. Thanks for [...]<p><a href="http://rackerhacker.com/2008/01/25/cant-enable-dnsblrbl-in-plesk-because-its-greyed-out/">Can't enable DNSBL/RBL in Plesk because it's greyed out</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>If you have a new Plesk installation and the following option is greyed out in Server -> Mail:</p>
<p><em>Switch on spam protection based on DNS blackhole lists</em></p>
<p>Just install the following RPM from Plesk:</p>
<p><code>psa-qmail-rblsmtpd</code></p>
<p><a href="http://rackerhacker.com/2008/01/25/cant-enable-dnsblrbl-in-plesk-because-its-greyed-out/">Can't enable DNSBL/RBL in Plesk because it's greyed out</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/01/25/cant-enable-dnsblrbl-in-plesk-because-its-greyed-out/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>qmail: This message is looping: it already has my Delivered-To line</title>
		<link>http://rackerhacker.com/2008/01/23/qmail-this-message-is-looping-it-already-has-my-delivered-to-line/</link>
		<comments>http://rackerhacker.com/2008/01/23/qmail-this-message-is-looping-it-already-has-my-delivered-to-line/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 18:20:27 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[qmail]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2008/01/23/qmail-this-message-is-looping-it-already-has-my-delivered-to-line/</guid>
		<description><![CDATA[I stumbled upon this peculiar bounce message recently while working on a server: Hi. This is the qmail-send program at yourmailserver.com. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. &#60;user1@domain.com&#62;: This message is looping: it already has [...]<p><a href="http://rackerhacker.com/2008/01/23/qmail-this-message-is-looping-it-already-has-my-delivered-to-line/">qmail: This message is looping: it already has my Delivered-To line</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>I stumbled upon this peculiar bounce message recently while working on a server:</p>
<p><code>Hi. This is the qmail-send program at yourmailserver.com.<br />
I'm afraid I wasn't able to deliver your message to the following addresses.<br />
This is a permanent error; I've given up. Sorry it didn't work out.</p>
<p>&lt;user1@domain.com&gt;:<br />
This message is looping: it already has my Delivered-To line. (#5.4.6)</p>
<p>--- Below this line is a copy of the message.</p>
<p>Return-Path: <remoteuser@otherdomain.com><br />
Received: (qmail 14418 invoked by uid 110); 9 Jan 2008 13:04:33 -0600<br />
Delivered-To: 54-user2@domain.com<br />
Received: (qmail 14411 invoked by uid 110); 9 Jan 2008 13:04:33 -0600<br />
Delivered-To: 53-user1@domain.com<br />
Received: (qmail 14404 invoked from network); 9 Jan 2008 13:04:33 -0600<br />
Received: from otherdomain.com (HELO otherdomain.com) (11.22.33.44)<br />
by yourmailserver.com with SMTP; 9 Jan 2008 13:04:33 -0600</code></p>
<p>Basically, this is qmail's way of letting you know that your e-mails are stuck in a mail loop.  One e-mail user is redirecting to another e-mail user, and that e-mail user is redirecting back to the first one.  If q-mail already has a delivered to line which matches one that it already added, it bounces the e-mail and halts delivery.</p>
<p><a href="http://rackerhacker.com/2008/01/23/qmail-this-message-is-looping-it-already-has-my-delivered-to-line/">qmail: This message is looping: it already has my Delivered-To line</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/01/23/qmail-this-message-is-looping-it-already-has-my-delivered-to-line/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Dovecot: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory</title>
		<link>http://rackerhacker.com/2008/01/22/dovecot-libsepolso1-failed-to-map-segment-from-shared-object-cannot-allocate-memory/</link>
		<comments>http://rackerhacker.com/2008/01/22/dovecot-libsepolso1-failed-to-map-segment-from-shared-object-cannot-allocate-memory/#comments</comments>
		<pubDate>Tue, 22 Jan 2008 18:47:21 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[dovecot]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2008/01/22/dovecot-libsepolso1-failed-to-map-segment-from-shared-object-cannot-allocate-memory/</guid>
		<description><![CDATA[You may catch this error when you attempt to start dovecot on a Red Hat Enterprise Linux 5.1 system with the 64-bit architecture: dovecot: imap-login: imap-login: error while loading shared libraries: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory dovecot: pop3-login: pop3-login: error while loading shared libraries: libsepol.so.1: failed to map segment [...]<p><a href="http://rackerhacker.com/2008/01/22/dovecot-libsepolso1-failed-to-map-segment-from-shared-object-cannot-allocate-memory/">Dovecot: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>You may catch this error when you attempt to start dovecot on a Red Hat Enterprise Linux 5.1 system with the 64-bit architecture:</p>
<p><code>dovecot: imap-login: imap-login: error while loading shared libraries: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory<br />
dovecot: pop3-login: pop3-login: error while loading shared libraries: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory</code></p>
<p>If you start dovecot, the main dovecot daemon will run with one auth child process, but there will be no POP/IMAP processes started.  To fix the issue, open the /etc/dovecot.conf and adjust the following directive:</p>
<p><code>login_process_size = 64</code></p>
<p>Restart dovecot after making the change:</p>
<p><code># /etc/init.d/dovecot restart</code></p>
<p><em>This was tested on RHEL 5.1 x86_64.</em></p>
<p><a href="http://rackerhacker.com/2008/01/22/dovecot-libsepolso1-failed-to-map-segment-from-shared-object-cannot-allocate-memory/">Dovecot: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/01/22/dovecot-libsepolso1-failed-to-map-segment-from-shared-object-cannot-allocate-memory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing news feeds in Horde</title>
		<link>http://rackerhacker.com/2008/01/21/removing-news-feeds-in-horde/</link>
		<comments>http://rackerhacker.com/2008/01/21/removing-news-feeds-in-horde/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 18:36:49 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[horde]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2008/01/21/removing-news-feeds-in-horde/</guid>
		<description><![CDATA[If you've used newer versions of Horde with Plesk, you have probably noticed the news feed that runs down the left side of the screen. Depending on the types of e-mails you receive, you may get some pretty odd news popping up on the screen. Luckily, you can remove the news feeds pretty easily. Open [...]<p><a href="http://rackerhacker.com/2008/01/21/removing-news-feeds-in-horde/">Removing news feeds in Horde</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>If you've used newer versions of Horde with Plesk, you have probably noticed the news feed that runs down the left side of the screen.  Depending on the types of e-mails you receive, you may get some pretty odd news popping up on the screen.</p>
<p>Luckily, you can remove the news feeds pretty easily.  Open the following file in your favorite text editor:</p>
<p><code>/usr/share/psa-horde/templates/portal/sidebar.inc</code></p>
<p>Once the file is open, drop down to line 102 and comment out the entire if() statement (lines 102-117).</p>
<p><strong>NOTE:</strong> If you upgrade Plesk, this change will most likely be reversed.</p>
<p><a href="http://rackerhacker.com/2008/01/21/removing-news-feeds-in-horde/">Removing news feeds in Horde</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/01/21/removing-news-feeds-in-horde/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Plesk and qmail: 421 temporary envelope failure (#4.3.0)</title>
		<link>http://rackerhacker.com/2007/12/04/plesk-and-qmail-421-temporary-envelope-failure-430/</link>
		<comments>http://rackerhacker.com/2007/12/04/plesk-and-qmail-421-temporary-envelope-failure-430/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 18:21:23 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[qmail]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2007/12/04/plesk-and-qmail-421-temporary-envelope-failure-430/</guid>
		<description><![CDATA[I stumbled upon a server running Plesk 8.2.1 where a certain user could not receive e-mail. I sent an e-mail to the user from my mail client, and I never saw it enter the user's mailbox. It didn't even appear in the logs. After checking the usual suspects, like MX records, mail account configuration, and [...]<p><a href="http://rackerhacker.com/2007/12/04/plesk-and-qmail-421-temporary-envelope-failure-430/">Plesk and qmail: 421 temporary envelope failure (#4.3.0)</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>I stumbled upon a server running Plesk 8.2.1 where a certain user could not receive e-mail.  I sent an e-mail to the user from my mail client, and I never saw it enter the user's mailbox.  It didn't even appear in the logs.</p>
<p>After checking the usual suspects, like MX records, mail account configuration, and firewalls, I was unable to find out why it was occurring.  Even after a run of <code>mchk</code>, the emails would not be delivered.</p>
<p>I began testing with a telnet connection to the SMTP port:</p>
<p><code>$ telnet 11.22.33.44 25<br />
Trying 11.22.33.44...<br />
Connected to 11.22.33.44.<br />
Escape character is '^]'.<br />
220 www.yourserver.com ESMTP<br />
HELO domain.com<br />
250 www.yourserver.com<br />
MAIL FROM: test@test.com<br />
250 ok<br />
RCPT TO: someuser@somedomain.com<br />
421 temporary envelope failure (#4.3.0)<br />
QUIT<br />
221 www.yourserver.com<br />
Connection closed by foreign host.</code></p>
<p>Temporary envelope failure?  I was still confused.  After reviewing the logs, I found the following line whenever I tried to telnet to port 25 and send an e-mail:</p>
<p><code>Dec  2 00:15:49 www relaylock: /var/qmail/bin/relaylock: mail from 44.33.22.11:17249 (yourdesktop.com)</code></p>
<p>It turns out that the customer was using greylisting in qmail with qmail-envelope-scanner.  After a quick check of /tmp/greylist_dbg.txt, I found the entries from me (as well as a lot of other senders), and that ended up being the root of the problem.</p>
<p><a href="http://rackerhacker.com/2007/12/04/plesk-and-qmail-421-temporary-envelope-failure-430/">Plesk and qmail: 421 temporary envelope failure (#4.3.0)</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2007/12/04/plesk-and-qmail-421-temporary-envelope-failure-430/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sort e-mail in Plesk with procmail</title>
		<link>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/</link>
		<comments>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 18:27:26 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[procmail]]></category>
		<category><![CDATA[qmail]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/</guid>
		<description><![CDATA[One of my biggest beefs with Plesk's e-mail handling is the lack of server-side filtering. Plesk will only allow you to throw away e-mails marked as spam, but this won't work for me since SpamAssassin marks some mails as spam that actually aren't. If you set up filters in SquirrelMail or Horde, the filters will [...]<p><a href="http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/">Sort e-mail in Plesk with procmail</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>One of my biggest beefs with Plesk's e-mail handling is the lack of server-side filtering.  Plesk will only allow you to throw away e-mails marked as spam, but this won't work for me since SpamAssassin marks some mails as spam that actually aren't.  If you set up filters in SquirrelMail or Horde, the filters will only work if you <strong>always</strong> log into the webmail interface to snag your e-mail.</p>
<p>Luckily, you can do some fancy work with procmail to have the filtering done server-side.</p>
<p>First, make sure procmail is installed on your server, and change to this directory:</p>
<p>/var/qmail/mailnames/yourdomain.com/yourusername/</p>
<p>Inside that directory, drop in a .procmailrc file which contains the following:</p>
<p><code>MAILDIR=/var/qmail/mailnames/yourdomain.com/yourusername/Maildir<br />
DEFAULT=${MAILDIR}/<br />
SPAMDIR=${MAILDIR}/.Junk/<br />
:0<br />
* ^X-Spam-Status: Yes.*<br />
${SPAMDIR}</code></p>
<p>Once that file is in place, move the .qmail file out of the way, and replace it with this:</p>
<p><code>| /usr/local/psa/bin/psa-spamc accept<br />
|preline /usr/bin/procmail -m -o .procmailrc</code></p>
<p>Please be aware that these changes will disappear if you make any adjustments to your mail configuration within Plesk.  To get around this annoyance, just change the file attributes to immutable:</p>
<p><code># chattr +i .qmail .procmailrc</code></p>
<p><em>Credit for this trick goes to <a href="http://www.russwittmann.com/2007/07/14/server-side-mail-filtering-using-qmailprocmail-under-plesk/">Russ Wittmann</a>.</em></p>
<p><a href="http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/">Sort e-mail in Plesk with procmail</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>clamdscan: corrupt or unknown clamd scanner error or memory/resource/perms problem</title>
		<link>http://rackerhacker.com/2007/11/16/clamdscan-corrupt-or-unknown-clamd-scanner-error-or-memoryresourceperms-problem/</link>
		<comments>http://rackerhacker.com/2007/11/16/clamdscan-corrupt-or-unknown-clamd-scanner-error-or-memoryresourceperms-problem/#comments</comments>
		<pubDate>Fri, 16 Nov 2007 18:11:05 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[clamd]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2007/11/16/clamdscan-corrupt-or-unknown-clamd-scanner-error-or-memoryresourceperms-problem/</guid>
		<description><![CDATA[A few days ago, I stumbled upon a server running qmail with qmail-scanner. The server was throwing out this error when a user on the server attempted to send an e-mail to someone else: 451 qq temporary problem (#4.3.0) The one thing I love about qmail is its extremely descriptive error messages. Did I say [...]<p><a href="http://rackerhacker.com/2007/11/16/clamdscan-corrupt-or-unknown-clamd-scanner-error-or-memoryresourceperms-problem/">clamdscan: corrupt or unknown clamd scanner error or memory/resource/perms problem</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>A few days ago, I stumbled upon a server running qmail with qmail-scanner.  The server was throwing out this error when a user on the server attempted to send an e-mail to someone else:</p>
<p><code>451 qq temporary problem (#4.3.0)</code></p>
<p>The one thing I love about qmail is its extremely descriptive error messages.  Did I say descriptive?  I meant cryptic.</p>
<p>Luckily, clamdscan was a bit more chatty in the general system logs:</p>
<p><code>Nov 12 10:21:17 server X-Antivirus-MYDOMAIN-1.25-st-qms: server.somehost.com119488087677512190] clamdscan: corrupt or unknown clamd scanner error or memory/resource/perms problem - exit status 512/2</code> </p>
<p>Okay, that helps a bit, but this one from /var/log/clamd.log was the big help:</p>
<p><code>Mon Nov 12 12:20:29 2007 -> ERROR: Socket file /tmp/clamd.socket exists. Either remove it, or configure a different one. </code></p>
<p>I removed the /tmp/clamd.socket file and clamd began operating properly after a quick restart of the clamd service.  This one was pretty easy, but it was not well documented (as I discovered from a little while of Google searching).</p>
<p><a href="http://rackerhacker.com/2007/11/16/clamdscan-corrupt-or-unknown-clamd-scanner-error-or-memoryresourceperms-problem/">clamdscan: corrupt or unknown clamd scanner error or memory/resource/perms problem</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2007/11/16/clamdscan-corrupt-or-unknown-clamd-scanner-error-or-memoryresourceperms-problem/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enabling Dr. Web virus scanning for new accounts</title>
		<link>http://rackerhacker.com/2007/10/12/enabling-dr-web-virus-scanning-for-new-accounts/</link>
		<comments>http://rackerhacker.com/2007/10/12/enabling-dr-web-virus-scanning-for-new-accounts/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 18:35:06 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[plesk]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2007/10/12/enabling-dr-web-virus-scanning-for-new-accounts/</guid>
		<description><![CDATA[If you're using Plesk 8.0 or later, you can set up Dr. Web to be enabled for all new mail accounts. To do this, you have to create an event handler. Here's the steps you will need: &#187; Log into Plesk &#187; Click "Server" &#187; Click "Event Manager" &#187; Choose "Mail Name Created" next to [...]<p><a href="http://rackerhacker.com/2007/10/12/enabling-dr-web-virus-scanning-for-new-accounts/">Enabling Dr. Web virus scanning for new accounts</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>If you're using Plesk 8.0 or later, you can set up Dr. Web to be enabled for all new mail accounts.  To do this, you have to create an event handler.</p>
<p>Here's the steps you will need:</p>
<p>&raquo; Log into Plesk<br />
&raquo; Click "Server"<br />
&raquo; Click "Event Manager"<br />
&raquo; Choose "Mail Name Created" next to "Event"<br />
&raquo; In the command area, enter <code>/usr/local/psa/bin/mail.sh --update $NEW_MAILNAME -antivirus inout</code><br />
&raquo; Click "OK"</p>
<p><a href="http://rackerhacker.com/2007/10/12/enabling-dr-web-virus-scanning-for-new-accounts/">Enabling Dr. Web virus scanning for new accounts</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2007/10/12/enabling-dr-web-virus-scanning-for-new-accounts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dovecot: mbox: Can&#039;t create root IMAP folder</title>
		<link>http://rackerhacker.com/2007/10/09/dovecot-mbox-cant-create-root-imap-folder/</link>
		<comments>http://rackerhacker.com/2007/10/09/dovecot-mbox-cant-create-root-imap-folder/#comments</comments>
		<pubDate>Wed, 10 Oct 2007 01:05:52 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[dovecot]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2007/10/09/dovecot-mbox-cant-create-root-imap-folder/</guid>
		<description><![CDATA[In some situations with dovecot running on your server, you may receive a message from your e-mail client stating that the "connection was interrupted with your mail server" or the "login process failed". This may happen even if you've created the e-mail account, created the mail spool, and set a password for the user. If [...]<p><a href="http://rackerhacker.com/2007/10/09/dovecot-mbox-cant-create-root-imap-folder/">Dovecot: mbox: Can't create root IMAP folder</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>In some situations with dovecot running on your server, you may receive a message from your e-mail client stating that the "connection was interrupted with your mail server" or the "login process failed".  This may happen even if you've created the e-mail account, created the mail spool, and set a password for the user.</p>
<p>If you check your /var/log/maillog, you will generally find errors like these:</p>
<p><code>Oct 7 09:37:45 mailserver pop3-login: Login: newuser [111.222.333.444]<br />
Oct 7 09:37:45 mailserver pop3(newuser): mbox: Can't create root IMAP folder /home/newuser/mail: Permission denied<br />
Oct 7 09:37:45 mailserver pop3(newuser): Failed to create storage with data: mbox:/var/spool/mail/newuser</code></p>
<p>Dovecot is telling you that it wants to store some mail-related data in the user's home directory, but it can't get access to the user's home directory.  If the home directory doesn't exist, create it and set the permissions properly:</p>
<p><code># mkdir /home/newuser<br />
# chown newuser:newuser /home/newuser<br />
# chmod 755 /home/newuser</code></p>
<p>If the directory is already there, double check the ownership and permissions on the directory.  If filesystem acl's or filesystem quotas might be in play, be sure to check those as well.</p>
<p><a href="http://rackerhacker.com/2007/10/09/dovecot-mbox-cant-create-root-imap-folder/">Dovecot: mbox: Can't create root IMAP folder</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2007/10/09/dovecot-mbox-cant-create-root-imap-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk: Error opening /var/lib/squirrelmail/prefs/default_pref</title>
		<link>http://rackerhacker.com/2007/10/08/plesk-error-opening-varlibsquirrelmailprefsdefault_pref/</link>
		<comments>http://rackerhacker.com/2007/10/08/plesk-error-opening-varlibsquirrelmailprefsdefault_pref/#comments</comments>
		<pubDate>Tue, 09 Oct 2007 00:44:48 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2007/10/08/plesk-error-opening-varlibsquirrelmailprefsdefault_pref/</guid>
		<description><![CDATA[On brand new Plesk 8.2.x installations or on servers that have been upgraded to Plesk 8.2.x, you might run into this error when you attempt to log into squirrelmail after it was installed via RPM: Error opening /var/lib/squirrelmail/prefs/default_pref Could not create initial preference file! /var/lib/squirrelmail/prefs/ should be writable by user apache Please contact your system [...]<p><a href="http://rackerhacker.com/2007/10/08/plesk-error-opening-varlibsquirrelmailprefsdefault_pref/">Plesk: Error opening /var/lib/squirrelmail/prefs/default_pref</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>On brand new Plesk 8.2.x installations or on servers that have been upgraded to Plesk 8.2.x, you might run into this error when you attempt to log into squirrelmail after it was installed via RPM:</p>
<blockquote><p><code>Error opening /var/lib/squirrelmail/prefs/default_pref<br />
Could not create initial preference file!<br />
/var/lib/squirrelmail/prefs/ should be writable by user apache<br />
Please contact your system administrator and report this error.</code></p></blockquote>
<p>No matter what you do to the /var/lib/squirrelmail/prefs/default_pref file, even if you chmod 777 the file, you will still get the error.  If you check the /etc/php.ini, you will normally find <code>safe_mode</code> set to <strong>on</strong>.</p>
<p><code>;<br />
; Safe Mode<br />
;<br />
safe_mode = Off</code></p>
<p>Simply change <code>safe_mode</code> to <strong>off</strong> and reload Apache.  If you try to log into squirrelmail again, it should complete successfully.  I've tested this on Red Hat Enterprise Linux 4:</p>
<p><code># rpm -q squirrelmail<br />
squirrelmail-1.4.8-4.0.1.el4</code></p>
<p><a href="http://rackerhacker.com/2007/10/08/plesk-error-opening-varlibsquirrelmailprefsdefault_pref/">Plesk: Error opening /var/lib/squirrelmail/prefs/default_pref</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2007/10/08/plesk-error-opening-varlibsquirrelmailprefsdefault_pref/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Slow Horde login process with Plesk</title>
		<link>http://rackerhacker.com/2007/10/05/slow-horde-login-process-with-plesk/</link>
		<comments>http://rackerhacker.com/2007/10/05/slow-horde-login-process-with-plesk/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 18:35:33 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2007/10/05/slow-horde-login-process-with-plesk/</guid>
		<description><![CDATA[I've seen quite a few situations where the Horde login process can take upwards of 45 minutes to log a user into the webmail interface. There's a few issues that can cause these extended delays, and most of them can be fixed rather easily: Too many filters / Giant whitelists and blacklists This is the [...]<p><a href="http://rackerhacker.com/2007/10/05/slow-horde-login-process-with-plesk/">Slow Horde login process with Plesk</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>I've seen quite a few situations where the Horde login process can take upwards of 45 minutes to log a user into the webmail interface.  There's a few issues that can cause these extended delays, and most of them can be fixed rather easily:</p>
<p><b>Too many filters / Giant whitelists and blacklists</b><br />
This is the biggest cause that I've seen.  Some users will create gigantic white and black lists (upwards of 5,000 is my record that I've seen) and this makes Horde compare each and every message in the inbox against these lists upon login.  This also applies to filters as Plesk does not use sieve/procmail for mail delivery.  Horde is forced to do all of the filtering upon login (in some versions) and this can cause extreme delays.</p>
<p><b>Mailbox is gigantic</b><br />
I've seen Horde logins take quite a while in mailboxes that are over 500MB in size.  If the size of your e-mails is large, and you have a large mailbox with fewer e-mails, Horde can normally work quickly.  But, if your inbox is full of tiny e-mails, Horde takes a long time to fully index your mail and display the list (even though it only displays 25-30 at a time).</p>
<p><b>Too many users logged into Horde simultaneously</b><br />
In my opinion, Horde's CPU and memory requirements are too large for a webmail application.  I've seen 30-40 simultaneous Horde sessions bring a dual-core box with 2-4GB of RAM and SCSI disks to its knees.  Consider installing squirrelmail or roundcube webmail for some of your users and urge them to use it instead.</p>
<p><b>IOwait caused by something else</b><br />
Sometimes the server can simply be bogged down with other requests from other daemons, and this slows Horde down.  Make sure that your MySQL installation is tuned properly, and that users are not abusing scripts running through Apache.</p>
<p><a href="http://rackerhacker.com/2007/10/05/slow-horde-login-process-with-plesk/">Slow Horde login process with Plesk</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2007/10/05/slow-horde-login-process-with-plesk/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Session problems with Horde in Plesk with AOL</title>
		<link>http://rackerhacker.com/2007/09/27/session-problems-with-horde-in-plesk-with-aol/</link>
		<comments>http://rackerhacker.com/2007/09/27/session-problems-with-horde-in-plesk-with-aol/#comments</comments>
		<pubDate>Fri, 28 Sep 2007 02:06:52 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2007/09/27/session-problems-with-horde-in-plesk-horde-with-aol/</guid>
		<description><![CDATA[Since AOL sends their users' traffic through proxy servers, this can cause problems with Horde's session handling in Plesk. The problem arises when the user's IP changes during the middle of the session. You may see an error message in Horde that looks like this: Your Internet Address has changed since the beginning of your [...]<p><a href="http://rackerhacker.com/2007/09/27/session-problems-with-horde-in-plesk-with-aol/">Session problems with Horde in Plesk with AOL</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>Since AOL sends their users' traffic through proxy servers, this can cause problems with Horde's session handling in Plesk.  The problem arises when the user's IP changes during the middle of the session.</p>
<p>You may see an error message in Horde that looks like this:</p>
<blockquote><p>Your Internet Address has changed since the beginning of your Mail session. To protect your security, you must login again.</p></blockquote>
<p>You'll normally have this variable in /etc/psa-horde/horde/conf.php:</p>
<p><code># $conf['auth']['checkip'] = true;</code></p>
<p>You can disable this ip check functionality which breaks sessions for AOL users by setting it to false:</p>
<p><code># $conf['auth']['checkip'] = false;</code></p>
<p><a href="http://rackerhacker.com/2007/09/27/session-problems-with-horde-in-plesk-with-aol/">Session problems with Horde in Plesk with AOL</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2007/09/27/session-problems-with-horde-in-plesk-with-aol/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adjusting postfix queue time / lifetime</title>
		<link>http://rackerhacker.com/2007/09/18/adjusting-postfix-queue-time-lifetime/</link>
		<comments>http://rackerhacker.com/2007/09/18/adjusting-postfix-queue-time-lifetime/#comments</comments>
		<pubDate>Tue, 18 Sep 2007 22:55:38 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2007/09/18/adjusting-postfix-queue-time-lifetime/</guid>
		<description><![CDATA[If you want to adjust how long postfix will hold a piece of undeliverable mail in its queue, just adjust bounce_queue_lifetime. This variable is normally set to five days by default, but you can adjust it to any amount that you wish. You can set the value to zero, but that will cause e-mails that [...]<p><a href="http://rackerhacker.com/2007/09/18/adjusting-postfix-queue-time-lifetime/">Adjusting postfix queue time / lifetime</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>If you want to adjust how long postfix will hold a piece of undeliverable mail in its queue, just adjust <strong>bounce_queue_lifetime</strong>.  This variable is normally set to five days by default, but you can adjust it to any amount that you wish.  You can set the value to zero, but that will cause e-mails that cannot be immediately sent to be rejected to their senders.</p>
<p><a href="http://www.postfix.org/postconf.5.html#bounce_queue_lifetime">Postfix Configuration Parameters: bounce_queue_lifetime</a></p>
<p><a href="http://rackerhacker.com/2007/09/18/adjusting-postfix-queue-time-lifetime/">Adjusting postfix queue time / lifetime</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2007/09/18/adjusting-postfix-queue-time-lifetime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing SpamAssassin with GTUBE</title>
		<link>http://rackerhacker.com/2007/09/15/testing-spamassassin-with-gtube/</link>
		<comments>http://rackerhacker.com/2007/09/15/testing-spamassassin-with-gtube/#comments</comments>
		<pubDate>Sat, 15 Sep 2007 17:14:24 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2007/09/15/testing-spamassassin-with-gtube/</guid>
		<description><![CDATA[If you have SpamAssassin installed, but you want to make sure that it is marking or filtering your e-mails, simply send an e-mail which contains the special line provided here: http://spamassassin.apache.org/gtube/gtube.txt SpamAssassin will always mark e-mails that contain this special line as spam: XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X Testing SpamAssassin with GTUBE is a post from: Major Hayden's Racker [...]<p><a href="http://rackerhacker.com/2007/09/15/testing-spamassassin-with-gtube/">Testing SpamAssassin with GTUBE</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>If you have SpamAssassin installed, but you want to make sure that it is marking or filtering your e-mails, simply send an e-mail which contains the special line provided here:</p>
<p><a href="http://spamassassin.apache.org/gtube/gtube.txt">http://spamassassin.apache.org/gtube/gtube.txt</a></p>
<p>SpamAssassin will always mark e-mails that contain this special line as spam:</p>
<p><code>XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X</code></p>
<p><a href="http://rackerhacker.com/2007/09/15/testing-spamassassin-with-gtube/">Testing SpamAssassin with GTUBE</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2007/09/15/testing-spamassassin-with-gtube/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slow IMAP and POP3 performance with large mailboxes on RHEL 2.1</title>
		<link>http://rackerhacker.com/2007/09/12/slow-imap-and-pop3-performance-with-large-mailboxes-on-rhel-21/</link>
		<comments>http://rackerhacker.com/2007/09/12/slow-imap-and-pop3-performance-with-large-mailboxes-on-rhel-21/#comments</comments>
		<pubDate>Wed, 12 Sep 2007 13:00:32 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2007/09/12/slow-imap-and-pop3-performance-with-large-mailboxes-on-rhel-21/</guid>
		<description><![CDATA[By default, Red Hat Enterprise Linux 2.1 comes with UW-IMAP which runs from xinetd. This is fine for most users, but when mailbox sizes creep upwards of 500MB, you may notice odd performance degradations and undelivered mail. This is because UW-IMAP only supports mbox files in RHEL 2.1. This means your e-mail ends up in [...]<p><a href="http://rackerhacker.com/2007/09/12/slow-imap-and-pop3-performance-with-large-mailboxes-on-rhel-21/">Slow IMAP and POP3 performance with large mailboxes on RHEL 2.1</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>By default, Red Hat Enterprise Linux 2.1 comes with UW-IMAP which runs from xinetd.  This is fine for most users, but when mailbox sizes creep upwards of 500MB, you may notice odd performance degradations and undelivered mail.</p>
<p>This is because UW-IMAP only supports <a href="http://en.wikipedia.org/wiki/Mbox">mbox</a> files in RHEL 2.1.  This means your e-mail ends up in one big file which has each e-mail listed one after another.  This is a simple way to handle mail, but it scales in a horrible fashion.</p>
<p><a href="http://en.wikipedia.org/wiki/Daniel_J._Bernstein">Daniel Bernstein</a>, the creator of <a href="http://en.wikipedia.org/wiki/Qmail">qmail</a>, created <a href="http://en.wikipedia.org/wiki/Maildir">maildir</a>, and (as much as I hate anything relating to qmail) it's the best method for storing mail that I've seen so far.</p>
<p>Mbox files are slower because the entire file must be scanned when the POP or IMAP daemon receive a request for an e-mail held within it.  That means that the daemon must scan through all of the e-mails until the one that it wants is found.  If sendmail wants to drop off e-mail for the user, it has to wait since the mail spool is locked.  If it can't deliver the e-mail, it may bounce it after a period of time.</p>
<p>This is especially awful if a user receives a fair amount of e-mail and checks their e-mail from a mobile device.  This means that their computer and the mobile device are making the mail daemons scan the mbox file repeatedly when they check in.  It causes sendmail to back up, disk I/O skyrockets, and the server performance as a whole can suffer.</p>
<p>The solution is to move to a newer version of RHEL, hopefully RHEL 4 or 5 where Postfix and maildir support are available.  The only fix on RHEL 2.1 is to ask the user to clear out their mailbox to reduce the amount of disk I/O required to pick up e-mail.</p>
<p><a href="http://rackerhacker.com/2007/09/12/slow-imap-and-pop3-performance-with-large-mailboxes-on-rhel-21/">Slow IMAP and POP3 performance with large mailboxes on RHEL 2.1</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2007/09/12/slow-imap-and-pop3-performance-with-large-mailboxes-on-rhel-21/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting GrowlMail working with Apple Mail in Growl 1.1</title>
		<link>http://rackerhacker.com/2007/09/09/getting-growlmail-working-with-apple-mail-in-growl-11/</link>
		<comments>http://rackerhacker.com/2007/09/09/getting-growlmail-working-with-apple-mail-in-growl-11/#comments</comments>
		<pubDate>Mon, 10 Sep 2007 04:44:10 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2007/09/09/getting-growlmail-working-with-apple-mail-in-growl-11/</guid>
		<description><![CDATA[So, this is not really related to the normal system administration topics discussed here, but it's Sunday, so I feel like something different. I downloaded the new Growl 1.1 tonight and I wanted to install GrowlMail to get mail notifications from Apple Mail. I went through the package installer, started Mail, and nothing happened. The [...]<p><a href="http://rackerhacker.com/2007/09/09/getting-growlmail-working-with-apple-mail-in-growl-11/">Getting GrowlMail working with Apple Mail in Growl 1.1</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>So, this is not really related to the normal system administration topics discussed here, but it's Sunday, so I feel like something different.</p>
<p>I downloaded the new <a href="http://growl.info">Growl 1.1</a> tonight and I wanted to install GrowlMail to get mail notifications from Apple Mail.  I went through the package installer, started Mail, and nothing happened.  The preference pane didn't exist either.  After doing a bit of <a href="http://forums.cocoaforge.com/viewtopic.php?p=90671#90671">forum digging</a>, I found these two commands to run in the terminal:</p>
<p><code>defaults write com.apple.mail EnableBundles 1<br />
defaults write com.apple.mail BundleCompatibilityVersion 2</code></p>
<p>It worked like a charm and I was all set.  If you haven't tried it out yet, <a href="http://growl.info/downloads.php">download the new Growl 1.1</a> and install it.  There's a ton of new features, and it's been worth the wait.</p>
<p><a href="http://rackerhacker.com/2007/09/09/getting-growlmail-working-with-apple-mail-in-growl-11/">Getting GrowlMail working with Apple Mail in Growl 1.1</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2007/09/09/getting-growlmail-working-with-apple-mail-in-growl-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

