Upgrade/iRedMail/0.8.1-0.8.2

From iRedMail

(Difference between revisions)
Jump to: navigation, search
(OpenLDAP backend special)
Line 25: Line 25:
= OpenLDAP backend special =
= OpenLDAP backend special =
 +
 +
== Use newest schema file ==
 +
New LDAP schema file shipped in iRedMail-0.8.2 allows normal mail user to use attribute '''domainGlobalAdmin'''. With this attribute, you can mark mail user as a global admin to manage mail accounts with iRedAdmin-Pro.
 +
 +
To use the newest iRedMail ldap schem file, we have to:
 +
* Download the newest iRedMail ldap schema file
 +
* Copy old ldap schema file as a backup copy
 +
* Replace the old one
 +
* Restart OpenLDAP service.
 +
 +
Here we go:
 +
 +
* On RHEL/CentOS/Scientific Linux (both release 5.x and 6.x), openSUSE, Gentoo, OpenBSD:
 +
{{cmd|<pre>
 +
# cd /tmp
 +
# wget https://bitbucket.org/zhb/iredmail/raw/b4dd5c080967/iRedMail/samples/iredmail.schema
 +
 +
# cd /etc/openldap/schema/
 +
# cp iredmail.schema iredmail.schema.bak
 +
 +
# cp -f /tmp/iredmail.schema /etc/openldap/schema/
 +
# /etc/init.d/slapd restart      # <-- Or: /etc/init.d/ldap restart
 +
</pre>}}
 +
 +
* On Debian/Ubuntu:
 +
{{cmd|<pre>
 +
# cd /tmp
 +
# wget https://bitbucket.org/zhb/iredmail/raw/b4dd5c080967/iRedMail/samples/iredmail.schema
 +
 +
# cd /etc/ldap/schema/
 +
# cp iredmail.schema iredmail.schema.bak
 +
 +
# cp -f /tmp/iredmail.schema /etc/ldap/schema/
 +
# /etc/init.d/ldap restart
 +
</pre>}}
 +
 +
 +
* On FreeBSD:
 +
{{cmd|<pre>
 +
# cd /tmp
 +
# wget https://bitbucket.org/zhb/iredmail/raw/b4dd5c080967/iRedMail/samples/iredmail.schema
 +
 +
# cd /usr/local/etc/ldap/schema/
 +
# cp iredmail.schema iredmail.schema.bak
 +
 +
# cp -f /tmp/iredmail.schema /usr/local/etc/openldap/schema/
 +
# /etc/init.d/ldap restart
 +
</pre>}}
 +
= MySQL backend special =
= MySQL backend special =
= PostgreSQL backend special =
= PostgreSQL backend special =

Revision as of 13:06, 17 June 2012

Contents


THIS TUTORIAL IS A DRAFT. DO NOT APPLY IT.

ChangeLog

  • 2012-06-14: Fix incorrect log rotate setting for iRedAPD on FreeBSD.

General (All backends should apply these upgrade steps)

[FreeBSD only] Fix incorrect rotate setting for iRedAPD log file

NOTE: This fix is only applicable to FreeBSD.

iRedMail-0.8.1 defines incorrectly path of PID file in /etc/newsyslog.conf, so please fix it manually by editing /etc/newsyslog.conf.

  • Make sure you have below line in /etc/newsyslog.conf:
File: /etc/newsyslog.conf
/var/log/iredapd.log    root:wheel      640  7     *    24    Z /var/run/iredapd.pid
  • Then restart syslogd service:
Terminal:
# /etc/rc.d/syslogd restart

OpenLDAP backend special

Use newest schema file

New LDAP schema file shipped in iRedMail-0.8.2 allows normal mail user to use attribute domainGlobalAdmin. With this attribute, you can mark mail user as a global admin to manage mail accounts with iRedAdmin-Pro.

To use the newest iRedMail ldap schem file, we have to:

  • Download the newest iRedMail ldap schema file
  • Copy old ldap schema file as a backup copy
  • Replace the old one
  • Restart OpenLDAP service.

Here we go:

  • On RHEL/CentOS/Scientific Linux (both release 5.x and 6.x), openSUSE, Gentoo, OpenBSD:
Terminal:
# cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/b4dd5c080967/iRedMail/samples/iredmail.schema

# cd /etc/openldap/schema/
# cp iredmail.schema iredmail.schema.bak

# cp -f /tmp/iredmail.schema /etc/openldap/schema/
# /etc/init.d/slapd restart       # <-- Or: /etc/init.d/ldap restart
  • On Debian/Ubuntu:
Terminal:
# cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/b4dd5c080967/iRedMail/samples/iredmail.schema

# cd /etc/ldap/schema/
# cp iredmail.schema iredmail.schema.bak

# cp -f /tmp/iredmail.schema /etc/ldap/schema/
# /etc/init.d/ldap restart


  • On FreeBSD:
Terminal:
# cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/b4dd5c080967/iRedMail/samples/iredmail.schema

# cd /usr/local/etc/ldap/schema/
# cp iredmail.schema iredmail.schema.bak

# cp -f /tmp/iredmail.schema /usr/local/etc/openldap/schema/
# /etc/init.d/ldap restart

MySQL backend special

PostgreSQL backend special

Personal tools