<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Separate MySQL Server]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic4432.xml" />
	<updated>2013-03-11T08:00:15Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic4432-separate-mysql-server.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Separate MySQL Server]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20789.html#p20789" />
			<content type="html"><![CDATA[<p>Thank you and it works very well. I had too many problems getting iRedMail to work properly with its own mysql in the same localhost or same jail IP address.&nbsp; I think it has to do with the mysql script not having proper permission to add root user to mysql for services such as dovecot to have access to it.&nbsp; I had to uninstall mysql-server after iRedMail installation since it&#039;s no longer needed.&nbsp; However, mysql-client is still required for it to work properly.</p>]]></content>
			<author>
				<name><![CDATA[remington]]></name>
				<uri>http://www.iredmail.org/forum/user32777.html</uri>
			</author>
			<updated>2013-03-11T08:00:15Z</updated>
			<id>http://www.iredmail.org/forum/post20789.html#p20789</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Separate MySQL Server]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20775.html#p20775" />
			<content type="html"><![CDATA[<p>Hi remington,</p><p>You can try this:</p><p>*) Before installing iRedMail, open iRedMail-x.y.z/conf/global, find below lines and change it to match your need (remote MYSQL server address and port). Then iRedMail will use remote MySQL server directly.<br /></p><div class="codebox"><pre><code># MySQL server
export MYSQL_SERVER=&quot;${LOCAL_ADDRESS}&quot;
export MYSQL_SERVER_PORT=&#039;3306&#039;</code></pre></div><p>*) Open iRedMail-x.y.z/conf/mysql, find below line and set correct MySQL root user name. default is &#039;root&#039;. (NOTE: This parameter will be moved to file conf/global in iRedMail-0.8.4.)<br /></p><div class="codebox"><pre><code>export MYSQL_ROOT_USER=&#039;root&#039;</code></pre></div><p>*) During iRedMail installation, it will show you dialog to input password of MySQL root user, please type the correct password for your remote MySQL server.</p><p>Others keep the same. Let me know whether it doesn&#039;t work for you, so that i can fix it.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2013-03-10T03:35:58Z</updated>
			<id>http://www.iredmail.org/forum/post20775.html#p20775</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Separate MySQL Server]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20772.html#p20772" />
			<content type="html"><![CDATA[<p>Is there a chance you could fix the script to add data to mysql database on a different server or IP address (not localhost)?&nbsp; It would be nice to have preconfigured installation script for us to modify with mysql information like root, password, customized database name for different services (dovecot, iredadmin, roundcube, etc.) so everything will be installed without having two mysql servers on one server.</p>]]></content>
			<author>
				<name><![CDATA[remington]]></name>
				<uri>http://www.iredmail.org/forum/user32777.html</uri>
			</author>
			<updated>2013-03-09T17:39:29Z</updated>
			<id>http://www.iredmail.org/forum/post20772.html#p20772</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Separate MySQL Server]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20221.html#p20221" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>- /etc/postfix/mysql/*<br />- /etc/dovecot/dovecot-mysql.conf<br />- /var/www/roundcubemail/config/, main.inc.php and db.inc.php<br />- /var/www/roundcubemail/plugins/password/config.inc.php<br />- /var/www/iredadmin/settings.ini<br />- /etc/policyd*.conf<br />- /etc/amavisd/amavisd.conf</p><p>Don&#039;t forget to let us know if i missed some files.</p></blockquote></div><br /><p>Thanks that should make it a bit easier <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Time to go play <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[imknight]]></name>
				<uri>http://www.iredmail.org/forum/user31674.html</uri>
			</author>
			<updated>2013-02-06T15:14:03Z</updated>
			<id>http://www.iredmail.org/forum/post20221.html#p20221</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Separate MySQL Server]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20219.html#p20219" />
			<content type="html"><![CDATA[<p>- /etc/postfix/mysql/*<br />- /etc/dovecot/dovecot-mysql.conf<br />- /var/www/roundcubemail/config/, main.inc.php and db.inc.php<br />- /var/www/roundcubemail/plugins/password/config.inc.php<br />- /var/www/iredadmin/settings.ini<br />- /etc/policyd*.conf<br />- /etc/amavisd/amavisd.conf</p><p>Don&#039;t forget to let us know if i missed some files.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2013-02-06T14:43:39Z</updated>
			<id>http://www.iredmail.org/forum/post20219.html#p20219</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Separate MySQL Server]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20213.html#p20213" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><div class="quotebox"><cite>imknight wrote:</cite><blockquote><p>is there any issues with changing table types from MYISAM to INNODB throughout?</p></blockquote></div><p>It should be fine.</p></blockquote></div><p>Cheers Zhang,</p><p>Do you happen to have&nbsp; a full list of files that will need updates - ie including amavis/roundcube etc.</p>]]></content>
			<author>
				<name><![CDATA[imknight]]></name>
				<uri>http://www.iredmail.org/forum/user31674.html</uri>
			</author>
			<updated>2013-02-06T14:13:57Z</updated>
			<id>http://www.iredmail.org/forum/post20213.html#p20213</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Separate MySQL Server]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20208.html#p20208" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>imknight wrote:</cite><blockquote><p>is there any issues with changing table types from MYISAM to INNODB throughout?</p></blockquote></div><p>It should be fine.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2013-02-06T14:05:37Z</updated>
			<id>http://www.iredmail.org/forum/post20208.html#p20208</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Separate MySQL Server]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20206.html#p20206" />
			<content type="html"><![CDATA[<p>Also is there any issues with changing table types from MYISAM to INNODB throughout? as i would like to use a high availability galera cluster for the mysql backend, the MYISAM tables seem to be at a quick glance in all areas.</p><p>mysql&gt; SELECT count(*),engine FROM INFORMATION_SCHEMA.TABLES group by engine;<br />+----------+--------+<br />| count(*) | engine |<br />+----------+--------+<br />|&nbsp; &nbsp; &nbsp; &nbsp; 2 | CSV&nbsp; &nbsp; |<br />|&nbsp; &nbsp; &nbsp; &nbsp;17 | InnoDB |<br />|&nbsp; &nbsp; &nbsp; &nbsp;20 | MEMORY |<br />|&nbsp; &nbsp; &nbsp; &nbsp;64 | MyISAM |<br />+----------+--------+</p><p>mysql&gt; SELECT TABLE_SCHEMA,TABLE_NAME FROM INFORMATION_SCHEMA.TABLES where engine=&quot;MyISAM&quot; AND TABLE_SCHEMA!=&quot;mysql&quot; AND TABLE_SCHEMA!=&quot;information_schema&quot;;<br />+--------------+------------------------+<br />| TABLE_SCHEMA | TABLE_NAME&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />+--------------+------------------------+<br />| amavisd&nbsp; &nbsp; &nbsp; | mailaddr&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />| amavisd&nbsp; &nbsp; &nbsp; | policy&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />| amavisd&nbsp; &nbsp; &nbsp; | users&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />| amavisd&nbsp; &nbsp; &nbsp; | wblist&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />| iredadmin&nbsp; &nbsp; | log&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />| iredadmin&nbsp; &nbsp; | sessions&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />| iredadmin&nbsp; &nbsp; | updatelog&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />| policyd&nbsp; &nbsp; &nbsp; | blacklist&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />| policyd&nbsp; &nbsp; &nbsp; | blacklist_dnsname&nbsp; &nbsp; &nbsp; |<br />| policyd&nbsp; &nbsp; &nbsp; | blacklist_helo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />| policyd&nbsp; &nbsp; &nbsp; | blacklist_sender&nbsp; &nbsp; &nbsp; &nbsp;|<br />| policyd&nbsp; &nbsp; &nbsp; | helo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />| policyd&nbsp; &nbsp; &nbsp; | policy&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />| policyd&nbsp; &nbsp; &nbsp; | policy_training&nbsp; &nbsp; &nbsp; &nbsp; |<br />| policyd&nbsp; &nbsp; &nbsp; | rcpt_acl&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />| policyd&nbsp; &nbsp; &nbsp; | spamtrap&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />| policyd&nbsp; &nbsp; &nbsp; | throttle&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />| policyd&nbsp; &nbsp; &nbsp; | throttle_from_instance |<br />| policyd&nbsp; &nbsp; &nbsp; | throttle_rcpt&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />| policyd&nbsp; &nbsp; &nbsp; | triplet&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />| policyd&nbsp; &nbsp; &nbsp; | whitelist&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />| policyd&nbsp; &nbsp; &nbsp; | whitelist_dnsname&nbsp; &nbsp; &nbsp; |<br />| policyd&nbsp; &nbsp; &nbsp; | whitelist_sender&nbsp; &nbsp; &nbsp; &nbsp;|<br />| vmail&nbsp; &nbsp; &nbsp; &nbsp; | admin&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />| vmail&nbsp; &nbsp; &nbsp; &nbsp; | alias&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />| vmail&nbsp; &nbsp; &nbsp; &nbsp; | alias_domain&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />| vmail&nbsp; &nbsp; &nbsp; &nbsp; | anyone_shares&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />| vmail&nbsp; &nbsp; &nbsp; &nbsp; | domain&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />| vmail&nbsp; &nbsp; &nbsp; &nbsp; | domain_admins&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />| vmail&nbsp; &nbsp; &nbsp; &nbsp; | mailbox&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />| vmail&nbsp; &nbsp; &nbsp; &nbsp; | recipient_bcc_domain&nbsp; &nbsp;|<br />| vmail&nbsp; &nbsp; &nbsp; &nbsp; | recipient_bcc_user&nbsp; &nbsp; &nbsp;|<br />| vmail&nbsp; &nbsp; &nbsp; &nbsp; | sender_bcc_domain&nbsp; &nbsp; &nbsp; |<br />| vmail&nbsp; &nbsp; &nbsp; &nbsp; | sender_bcc_user&nbsp; &nbsp; &nbsp; &nbsp; |<br />| vmail&nbsp; &nbsp; &nbsp; &nbsp; | share_folder&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />+--------------+------------------------+<br />35 rows in set (0.00 sec)</p>]]></content>
			<author>
				<name><![CDATA[imknight]]></name>
				<uri>http://www.iredmail.org/forum/user31674.html</uri>
			</author>
			<updated>2013-02-06T12:04:56Z</updated>
			<id>http://www.iredmail.org/forum/post20206.html#p20206</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Separate MySQL Server]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20205.html#p20205" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>usafitz wrote:</cite><blockquote><p>Sounds like a plan. Thanks so much.</p></blockquote></div><p>Is there a full list of files that would need updating?</p>]]></content>
			<author>
				<name><![CDATA[imknight]]></name>
				<uri>http://www.iredmail.org/forum/user31674.html</uri>
			</author>
			<updated>2013-02-06T11:55:42Z</updated>
			<id>http://www.iredmail.org/forum/post20205.html#p20205</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Separate MySQL Server]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20184.html#p20184" />
			<content type="html"><![CDATA[<p>Sounds like a plan. Thanks so much.</p>]]></content>
			<author>
				<name><![CDATA[usafitz]]></name>
				<uri>http://www.iredmail.org/forum/user32581.html</uri>
			</author>
			<updated>2013-02-04T22:03:33Z</updated>
			<id>http://www.iredmail.org/forum/post20184.html#p20184</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Separate MySQL Server]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20177.html#p20177" />
			<content type="html"><![CDATA[<p>How about this:</p><p>- Setup iRedMail with a fresh OS. This way, iRedMail will install and configure local MySQL server automatically.<br />- Export initial MySQL records, import to remote server.<br />- Update config files which have MySQL queries to use remote server as MySQL server. e.g. /etc/postfix/mysql/*, /etc/dovecot/dovecot-mysql.conf.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2013-02-04T15:47:04Z</updated>
			<id>http://www.iredmail.org/forum/post20177.html#p20177</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Separate MySQL Server]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20153.html#p20153" />
			<content type="html"><![CDATA[<p>Is there a way to set a remote MySQL server (mysql.domain.com) for the original installation of iRedMail?&nbsp; If not, is there any documentation explaining how to redirect the tables used in each program?&nbsp; Thanks!</p><p>my default tables:<br />mysql&gt; show databases;<br />+--------------------+<br />| Database&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />+--------------------+<br />| information_schema |<br />| amavisd&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />| iredadmin&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />| mysql&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />| policyd&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />| roundcubemail&nbsp; &nbsp; &nbsp; |<br />| test&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />| vmail&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br />+--------------------+</p><br /><p>==== Required information ====<br />- iRedMail version: 0.8.3<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL<br />- Linux/BSD distribution name and version: CentOS 6.3<br />- Related log if you&#039;re reporting an issue: <br />====</p>]]></content>
			<author>
				<name><![CDATA[usafitz]]></name>
				<uri>http://www.iredmail.org/forum/user32581.html</uri>
			</author>
			<updated>2013-02-02T02:56:28Z</updated>
			<id>http://www.iredmail.org/forum/post20153.html#p20153</id>
		</entry>
</feed>
