<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — multi-mail location]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic11.xml" />
	<updated>2009-05-07T02:43:56Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic11-multimail-location.html</id>
		<entry>
			<title type="html"><![CDATA[Re: multi-mail location]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post22.html#p22" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[brobind]]></name>
				<uri>http://www.iredmail.org/forum/user4.html</uri>
			</author>
			<updated>2009-05-07T02:43:56Z</updated>
			<id>http://www.iredmail.org/forum/post22.html#p22</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: multi-mail location]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post21.html#p21" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-05-07T02:36:15Z</updated>
			<id>http://www.iredmail.org/forum/post21.html#p21</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[multi-mail location]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post19.html#p19" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[brobind]]></name>
				<uri>http://www.iredmail.org/forum/user4.html</uri>
			</author>
			<updated>2009-05-07T02:16:10Z</updated>
			<id>http://www.iredmail.org/forum/post19.html#p19</id>
		</entry>
</feed>
