<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — multi-mail location]]></title>
		<link>http://www.iredmail.org/forum/topic11-multimail-location.html</link>
		<atom:link href="http://www.iredmail.org/forum/feed-rss-topic11.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in multi-mail location.]]></description>
		<lastBuildDate>Thu, 07 May 2009 02:43:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: multi-mail location]]></title>
			<link>http://www.iredmail.org/forum/post22.html#p22</link>
			<description><![CDATA[<p>Here&#039;s the default /etc/dovecot-mysql.conf: fyi.</p><p>driver = mysql<br />default_pass_scheme = CRYPT<br />connect = host=localhost dbname=vmail user=vmail password=2FrtEyPhaJz7UeuxRHKo8mgHnaoUp0<br />password_query = SELECT password FROM mailbox WHERE username=&#039;%u&#039; AND active=&#039;1&#039; AND expired &gt;= NOW()<br />user_query = SELECT &quot;/mailbox&quot; AS home,&nbsp; &nbsp; &nbsp;&quot;/mailbox/sieve/%Ld/%Ln/&quot; AS sieve_dir,&nbsp; &nbsp; &nbsp;CONCAT(&#039;*:bytes=&#039;, quota*1048576) AS quota_rule,&nbsp; &nbsp; &nbsp;maildir FROM mailbox&nbsp; &nbsp; &nbsp;WHERE username=&#039;%u&#039;&nbsp; &nbsp; &nbsp;AND active=&#039;1&#039;&nbsp; &nbsp; &nbsp;AND enable%Ls=&#039;1&#039;&nbsp; &nbsp; &nbsp;AND expired &gt;= NOW()</p>]]></description>
			<author><![CDATA[null@example.com (brobind)]]></author>
			<pubDate>Thu, 07 May 2009 02:43:56 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post22.html#p22</guid>
		</item>
		<item>
			<title><![CDATA[Re: multi-mail location]]></title>
			<link>http://www.iredmail.org/forum/post21.html#p21</link>
			<description><![CDATA[<p>several steps:</p><p>* Change &#039;mail_location&#039; setting in /etc/dovecot.conf. like this:<br /></p><div class="codebox"><pre><code>mail_location = maildir:/%Lh/:INDEX=/%Lh/</code></pre></div><p>* add one more column in vmail.mailbox table, e.g. storage_base_dir, default value is &#039;/home/vmail0/&#039; or whatever you want.</p><p>* change /etc/dovecot-mysql.conf, make it contat &#039;storage_base_dir&#039; and &#039;maildir&#039; as home.<br /></p><div class="codebox"><pre><code># Old.
user_query = SELECT CONCAT(&quot;/home/vmail/&quot;, maildir) AS home, \

# New.
user_query = SELECT CONCAT(storage_base_dir, maildir) AS home, \</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 07 May 2009 02:36:15 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post21.html#p21</guid>
		</item>
		<item>
			<title><![CDATA[multi-mail location]]></title>
			<link>http://www.iredmail.org/forum/post19.html#p19</link>
			<description><![CDATA[<p>Hi,</p><p>Were evaluating the iremail-0.4.0. fyi.</p><p>Question:</p><p>What if&nbsp; I want to have different home directory or mail location. What should be some changes in mailbox table and /etc/dovecot-mysql.conf? Please help.</p><p>Sample representation:</p><p>/var/vmail0/example0.com --&gt; /dev/sda10 filesystem ( 100GB )<br />/var/vmail1/example1.com --&gt; /dev/sda11 filesystem ( 100GB )<br />/var/vmail2/example2.com --&gt; /dev/sda12 filesystem ( 100GB )</p><p>These strategy will be advantageous if the other filesystem has been damage but the other will not.</p>]]></description>
			<author><![CDATA[null@example.com (brobind)]]></author>
			<pubDate>Thu, 07 May 2009 02:16:10 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post19.html#p19</guid>
		</item>
	</channel>
</rss>
