/[gentoo]/xml/htdocs/doc/en/virt-mail-howto.xml
Gentoo

Diff of /xml/htdocs/doc/en/virt-mail-howto.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 Revision 1.11
121<pre caption="Configuring and installing the cyrus-sasl ebuild" > 121<pre caption="Configuring and installing the cyrus-sasl ebuild" >
122 # <i>USE='-ldap -mysql' emerge cyrus-sasl</i> 122 # <i>USE='-ldap -mysql' emerge cyrus-sasl</i>
123<codenote>We don't have ldap and we're not using sasl's mysql capabilities </codenote> 123<codenote>We don't have ldap and we're not using sasl's mysql capabilities </codenote>
124<codenote>so we need to turn them off for this build.</codenote> 124<codenote>so we need to turn them off for this build.</codenote>
125</pre> 125</pre>
126<p>Next, edit <path>/var/lib/sasl2/smtp.conf</path>.</p> 126<p>Next, edit <path>/usr/lib/sasl2/smtp.conf</path>.</p>
127<pre caption="Starting sasl" > 127<pre caption="Starting sasl" >
128 # <i>nano -w /var/lib/sasl2/smtp.conf</i> 128 # <i>nano -w /usr/lib/sasl2/smtp.conf</i>
129 pwcheck_method: saslauthd 129 pwcheck_method: saslauthd
130 mech_list: LOGIN PLAIN 130 mech_list: LOGIN PLAIN
131<codenote>It's important to turn off auth mehtods we are not using.</codenote> 131<codenote>It's important to turn off auth mehtods we are not using.</codenote>
132<codenote>They cause problems for some mail clients.</codenote> 132<codenote>They cause problems for some mail clients.</codenote>
133 # <i>/etc/init.d/saslauthd start</i> 133 # <i>/etc/init.d/saslauthd start</i>
255<body> 255<body>
256<p>Next we're going to install and configure MySQL. You'll need the <uri link="http://kickasskungfu.com/~ken/genericmailsql.sql" >genericmailsql.sql</uri> dumpfile for this step.</p> 256<p>Next we're going to install and configure MySQL. You'll need the <uri link="http://kickasskungfu.com/~ken/genericmailsql.sql" >genericmailsql.sql</uri> dumpfile for this step.</p>
257<pre caption="Installing and configuring MySQL" > 257<pre caption="Installing and configuring MySQL" >
258 # <i>emerge mysql</i> 258 # <i>emerge mysql</i>
259 259
260 # <i>/usr/sbin/mysql_install_db</i> 260 # <i>/usr/bin/mysql_install_db</i>
261<codenote>After this command runs follow the onscreen directions</codenote> 261<codenote>After this command runs follow the onscreen directions</codenote>
262<codenote>for adding a root password with mysql,</codenote> 262<codenote>for adding a root password with mysql,</codenote>
263<codenote>not mysqladmin, otherwise your db will be wide open.</codenote> 263<codenote>not mysqladmin, otherwise your db will be wide open.</codenote>
264 264
265 # <i>/etc/init.d/mysql start</i> 265 # <i>/etc/init.d/mysql start</i>
266 # <i>mysqladmin -u root -p create mailsql</i> 266 # <i>mysqladmin -u root -p create mailsql</i>
267 # <i>mysql -u root -p --opt mailsql &lt; genericmailsql.sql</i> 267 # <i>mysql -u root -p mailsql &lt; genericmailsql.sql</i>
268 268
269 # <i>mysql -u root -p mysql</i> 269 # <i>mysql -u root -p mysql</i>
270 mysql> <i>GRANT SELECT,INSERT,UPDATE,DELETE</i> 270 mysql> <i>GRANT SELECT,INSERT,UPDATE,DELETE</i>
271 -> <i>ON mailsql.*</i> 271 -> <i>ON mailsql.*</i>
272 -> <i>TO mailsql@localhost</i> 272 -> <i>TO mailsql@localhost</i>
320<li>SSLCertificateFile /path/to/certs/new.cert.cert</li> 320<li>SSLCertificateFile /path/to/certs/new.cert.cert</li>
321<li>SSLCertificateKeyFile /path/to/certs/new.cert.key</li> 321<li>SSLCertificateKeyFile /path/to/certs/new.cert.key</li>
322</ul> 322</ul>
323</p> 323</p>
324<pre caption="Install Apache SSL certificates" > 324<pre caption="Install Apache SSL certificates" >
325 # <i>cp /usr/lib/ssl/misc/new.cert.cert /etc/apache/conf/ssl/</i> 325 # <i>cp /etc/ssl/misc/new.cert.cert /etc/apache/conf/ssl/</i>
326 # <i>cp /usr/lib/ssl/misc/new.cert.key /etc/apache/conf/ssl/</i> 326 # <i>cp /etc/ssl/misc/new.cert.key /etc/apache/conf/ssl/</i>
327 # <i>nano -w /etc/apache/conf/vhosts/ssl.default-vhost.conf</i> 327 # <i>nano -w /etc/apache/conf/vhosts/ssl.default-vhost.conf</i>
328<codenote>Change the following parameters</codenote> 328<codenote>Change the following parameters</codenote>
329 329
330 ServerName host.domain.name 330 ServerName host.domain.name
331 ServerAdmin your@email.address 331 ServerAdmin your@email.address

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20