<?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>Cenango Blog &#187; delete</title>
	<atom:link href="http://www.cenango.com/blog/tag/delete/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cenango.com/blog</link>
	<description>Web Design, E-commerce, and Online Marketing and SEO services in Broward and Miami, Florida</description>
	<lastBuildDate>Fri, 02 Sep 2011 08:47:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Deleting QMAIL Email by Date</title>
		<link>http://www.cenango.com/blog/2010/02/deleting-qmail-email-by-date/</link>
		<comments>http://www.cenango.com/blog/2010/02/deleting-qmail-email-by-date/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 09:18:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[E-mail]]></category>

		<guid isPermaLink="false">http://www.cenango.com/blog/?p=9</guid>
		<description><![CDATA[One of our customers had checked the &#8220;leave message on server&#8221; box, by accident in Outlook and over 8 months accumulated over 20,000 messages (mostly spam) on the server. The mailbox was close to 1.5GB in size. Its a Qmail mail server. First, find out exactly how many messages are in the box and sort [...]]]></description>
			<content:encoded><![CDATA[<p>One of our customers had checked the &#8220;leave message on server&#8221; box, by accident in Outlook and over 8 months accumulated over 20,000 messages (mostly spam) on the server. The mailbox was close to 1.5GB in size.</p>
<p>Its a  Qmail mail server.</p>
<p>First, find out exactly how many messages are in the box and sort by the largest message</p>
<p>ls -Slh | &#8211; less</p>
<p>The | less will allow you to go page by page. To exit type :q<span id="more-9"></span></p>
<p>He requested that we delete all the emails that were over 30 days old.</p>
<p>Then stop the server</p>
<p>/etc/init.d/qmail stop</p>
<p>Command to remove all the old messages:</p>
<p>find /var/qmail/mailnames/&lt;domain&gt;/&lt;user&gt;/Maildir/curr -mtime +X -print | xargs rm</p>
<p>replace +X with the number of days (so in our case it was +30)</p>
<p>the Maildir/new folder contains messages in the queue.</p>
<p>Depending on how many messages are in the folder the above command can take a few minutes &#8211; do not cancel until you get back to the prompt $.</p>
<p>/etc/init.d/qmail start</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cenango.com/blog/2010/02/deleting-qmail-email-by-date/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

