<br><br><div><span class="gmail_quote">2007/3/11, Erdenebat Gantomor &lt;<a href="mailto:rklogin@gmail.com">rklogin@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In Postfix+Postfixadmin+Dovecot+SASL+MySQL case what is the best and<br>compact MySQL database structure for storing all configuration? What<br>will you suggest me guys? I&#39;ve already installed postfixadmin and I&#39;m
<br>confusing (actually my experience is not enough) extending and<br>organizing my database for postfix+dovecot. Please give me some quick tips.<br>--<br><div>In /etc/dovecot/dovecot-sql.conf you can see the sample structure with the minimum required fields:
<br><br># CREATE TABLE users (<br>#&nbsp;&nbsp;&nbsp;&nbsp; userid VARCHAR(128) NOT NULL,<br>#&nbsp;&nbsp;&nbsp;&nbsp; password VARCHAR(64) NOT NULL,<br>#&nbsp;&nbsp;&nbsp;&nbsp; home VARCHAR(255) NOT NULL,<br>#&nbsp;&nbsp;&nbsp;&nbsp; uid INTEGER NOT NULL,<br>#&nbsp;&nbsp;&nbsp;&nbsp; gid INTEGER NOT NULL,<br>#&nbsp;&nbsp;&nbsp;&nbsp; active CHAR(1) DEFAULT &#39;Y&#39; NOT NULL
<br># );<br><br>In my case I changed to use always the same userid and
groupid, so that fields are not needed,&nbsp; and if you plan to use virtual
domains, you will need to split userid to separate into id and domain.<br><br>
</div>Cheers <br><br><br>Best regards,<br><br> Erdenebat Guntomor/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /mailto:<a href="mailto:RkLogin@gmail.com">RkLogin@gmail.com</a><br><br></blockquote></div><br>