<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — How to: Upgrade iRedAdmin-Pro-1.0.x to v1.1.0]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic615.xml" />
	<updated>2010-02-10T17:05:41Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic615-how-to-upgrade-iredadminpro10x-to-v110.html</id>
		<entry>
			<title type="html"><![CDATA[Re: How to: Upgrade iRedAdmin-Pro-1.0.x to v1.1.0]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post2646.html#p2646" />
			<content type="html"><![CDATA[<p>Anyone experiencing any errors?</p>]]></content>
			<author>
				<name><![CDATA[gordonwater]]></name>
				<uri>http://www.iredmail.org/forum/user719.html</uri>
			</author>
			<updated>2010-02-10T17:05:41Z</updated>
			<id>http://www.iredmail.org/forum/post2646.html#p2646</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to: Upgrade iRedAdmin-Pro-1.0.x to v1.1.0]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post2632.html#p2632" />
			<content type="html"><![CDATA[<p>Hi, all.</p><p>iRedAdmin-Pro-1.1.0 is available now, and here is tutorial to help you to upgrade your exist v1.0.x to v1.1.0.<br />===========</p><p>Steps:<br /></p><ul><li><p>Include amavisd-new LDAP schema in OpenLDAP.</p></li><li><p>Backup exist iRedAdmin.</p></li><li><p>Update SQL structure and add extra SQL tables.</p></li><li><p>Install iRedAPD for mail list access restriction.</p></li></ul><h5>*) iRedAdmin-1.1.0 is starting to integrate Amavisd-new, so we have to Include amavisd-new schema in OpenLDAP.</h5><ul><li><p>On RHEL/CentOS, add below line in /etc/openldap/slapd.conf, <strong>before</strong> line &#039;include /etc/openldap/schema/iredmail.schema&#039;.</p></li></ul><div class="codebox"><pre><code>include /etc/openldap/schema/amavisd-new.schema</code></pre></div><ul><li><p>On Debian/Ubuntu, add below line in /etc/ldap/slapd.conf, before line &#039;include /etc/openldap/schema/iredmail.schema&#039;.</p></li></ul><div class="codebox"><pre><code>include /etc/openldap/schema/amavis.schema</code></pre></div><ul><li><p>Restart OpenLDAP service to make it work.</p></li></ul><div class="codebox"><pre><code># ---- RHEL/CentOS ----
# /etc/init.d/ldap restart

# ---- Debian/Ubuntu ----
# /etc/init.d/slapd restart</code></pre></div><h5>*) Backup your exist iRedAdmin to /opt/ or whatever directory you want.</h5><div class="codebox"><pre><code># cp -rfp /var/www/iRedAdmin-old/ /opt/</code></pre></div><h5>*) Extract new version to /var/www/ (RHEL/CentOS) or /usr/share/apache2/ (Debian/Ubuntu).</h5><div class="codebox"><pre><code># ==== On RHEL/CentOS ====
# tar xjf iRedAdmin-x.y.z.tar.bz2 -C /var/www/
# cd /var/www/

# ==== On Debian/Ubuntu ====
# tar xjf iRedAdmin-x.y.z.tar.bz2 -C /usr/share/apache2/
# cd /usr/share/apache2/

# rm iredadmin              # &lt;- this is a symbol link, don&#039;t append slash &#039;/&#039; after &#039;iredadmin&#039;.
# ln -s iRedAdmin-1.1.0 iredadmin</code></pre></div><h5>*) Copy old config file and add missing parameters.</h5><div class="codebox"><pre><code># cp /opt/iRedAdmin-1.0.2/settings.ini /var/www/iredadmin/
# chmod u+w /var/www/iredadmin/settings.ini</code></pre></div><p>Add new parameters in section <strong>[general]</strong> of settings.ini manually:</p><div class="codebox"><pre><code>[general]
mail_error_to_webmaster = False</code></pre></div><h5>*) Make config file read-only again.</h5><div class="codebox"><pre><code># chmod -w /var/www/iredadmin/settings.ini</code></pre></div><h5>*) Restart apache web server to make iRedAdmin work.</h5><div class="codebox"><pre><code># ==== RHEL/CentOS ====
# /etc/init.d/httpd restart

# ==== Debian/Ubuntu ====
# /etc/init.d/apache2 restart</code></pre></div><h5>*) Update SQL structure and add extra SQL tables.</h5><p>used to log all admin operations:</p><p>You should run below commands in shell terminal.</p><ul><li><p>Add new table: iredadmin.log, used to log all admin operations.</p></li></ul><div class="codebox"><pre><code>$ mysql -uroot -p
mysql&gt; USE iredadmin;

# ==== On RHEL/CentOS ====
mysql&gt; SOURCE /var/www/iredadmin/docs/upgrade_v1.0.x_v1.1.0/upgrade_100_110.sql;

# ==== On Debian/Ubuntu ====
mysql&gt; SOURCE /usr/share/apache2/iredadmin/docs/upgrade_v1.0.x_v1.1.0/upgrade_100_110.sql;</code></pre></div><ul><li><p>Convert some policyd columns to character &#039;utf-8&#039;, so that we can use multi-bytes characters in &#039;description&#039; column.</p></li></ul><div class="codebox"><pre><code>$ mysql -uroot -p
mysql&gt; USE policyd;

# ==== On RHEL/CentOS ====
mysql&gt; SOURCE /var/www/iredadmin/docs/upgrade_v1.0.x_v1.1.0/policyd.utf8.sql;

# ==== On Debian/Ubuntu ====
mysql&gt; SOURCE /usr/share/apache2/iredadmin/docs/upgrade_v1.0.x_v1.1.0/policyd.utf8.sql;</code></pre></div><h5>*) Install iRedAPD for mail list access restriction.</h5><p>iRedAPD is designed to work in conjunction with Postfix as an Access Policy Delegation daemon, currently, iRedMail uses it to provide mail list access restriction.</p><p>Please refer to <a href="http://www.iredmail.org/iredapd_installation.html">iRedAPD installation guide</a> to get mail list access restriction feature.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-02-09T01:25:14Z</updated>
			<id>http://www.iredmail.org/forum/post2632.html#p2632</id>
		</entry>
</feed>
