Upgrade/iRedMail/0.7.2-0.7.3
From iRedMail
Revision as of 06:47, 23 August 2011 by ZhangHuangbin (Talk | contribs)
Contents |
General (All backends should apply these updates
Upgrade iRedAdmin (open source edition)
Note: If you have iRedAdmin-Pro running, it's not necessary to upgrade open source edition anymore, just keep iRedAdmin-Pro up to date.
iRedAdmin-0.1.6 (open source edition) is available for upgrade, please upgrade it as soon as possible.
Below upgrade steps are used to upgrade iRedAdmin (open source edition) from 0.1.5 to 0.1.6.
- Download iRedAdmin-0.1.6 (open source edition): http://iredmail.org/yum/misc/iRedAdmin-0.1.6.tar.bz2
- Upload iRedAdmin-0.1.6.tar.bz2 to your server which has old version running. We assume it's /root/iRedAdmin-0.1.6.tar.bz2.
- Uncompress it to correct directory, set correct file owner and permission, restart Apache web server.
| Terminal: |
# # ---- On RHEL/CentOS ---- # # tar xjf /root/iRedAdmin-0.1.6.tar.bz2 -C /var/www/ # cd /var/www/ # cp iRedAdmin-0.1.5/settings.ini iRedAdmin-0.1.6/ # chown -R iredadmin:iredadmin iRedAdmin-0.1.6 # chmod -R 0555 iRedAdmin-0.1.6 # chmod 0400 iRedAdmin-0.1.6/settings.ini # rm -i iredadmin # <- Remove old symbol link # ln -s iRedAdmin-0.1.6 iredadmin # Create a new symbol link # /etc/init.d/httpd restart # # ---- On Debian/Ubuntu ---- # # tar xjf /root/iRedAdmin-0.1.6.tar.bz2 -C /usr/share/apache2/ # cd /usr/share/apache2/ # cp iRedAdmin-0.1.5/settings.ini iRedAdmin-0.1.6/ # chown -R iredadmin:iredadmin iRedAdmin-0.1.6 # chmod -R 0555 iRedAdmin-0.1.6 # chmod 0400 iRedAdmin-0.1.6/settings.ini # rm -i iredadmin # <- Remove old symbol link # ln -s iRedAdmin-0.1.6 iredadmin # Create a new symbol link # /etc/init.d/apache2 restart # # ---- On openSUSE ---- # # tar xjf /root/iRedAdmin-0.1.6.tar.bz2 -C /srv/www/ # cd /srv/www/ # cp iRedAdmin-0.1.5/settings.ini iRedAdmin-0.1.6/ # chown -R iredadmin:iredadmin iRedAdmin-0.1.6 # chmod -R 0555 iRedAdmin-0.1.6 # chmod 0400 iRedAdmin-0.1.6/settings.ini # rm -i iredadmin # <- Remove old symbol link # ln -s iRedAdmin-0.1.6 iredadmin # Create a new symbol link # /etc/init.d/apache2 restart # # ---- On FreeBSD ---- # # tar xjf /root/iRedAdmin-0.1.6.tar.bz2 -C /usr/local/www/ # cd /usr/local/www/ # cp iRedAdmin-0.1.5/settings.ini iRedAdmin-0.1.6/ # chown -R iredadmin:iredadmin iRedAdmin-0.1.6 # chmod -R 0555 iRedAdmin-0.1.6 # chmod 0400 iRedAdmin-0.1.6/settings.ini # rm -i iredadmin # <- Remove old symbol link # ln -s iRedAdmin-0.1.6 iredadmin # Create a new symbol link # /usr/local/etc/rc.d/apache2 restart |
OpenLDAP backend special
- Add enabledService=lda, required by Dovecot 2.x.
- Note: If you're running dovecot-1.1.x, or 1.2.x, then please stay on that version, but it's still recommended to add this missing value for existing users. It won't impact current mail services.
- Note: Dovecot-2.x is the default version on RHEL/CentOS/Scieitnfic Linux 6.x.
Dovecot-2.x requires enabledService=enablelda for receiving email for virtual mail users, so we should add it if users doesn't have it.
Steps:
- Download python script used to adding missing values.
| Terminal: |
# cd /root/ # wget http://iredmail.googlecode.com/hg/extra/update/updateLDAPValues_072_to_073.py |
- Open updateLDAPValues_072_to_073.py, config LDAP server related settings in file head. e.g.
| File: updateLDAPValues_072_to_073.py |
uri = 'ldap://127.0.0.1:389' basedn = 'o=domains,dc=iredmail,dc=org' bind_dn = 'cn=vmailadmin,dc=iredmail,dc=org' bind_pw = 'passwd' |
Tip:
- You can find them in iRedAdmin config file or iRedMail.tips file under your iRedMail installation directory.
- Use 'cn=Manager' instead of 'cn=vmailadmin' here is ok too.
- Execute this script, it will add missing values for mail accounts:
| Terminal: |
# python updateLDAPValues_072_to_073.py |
MySQL backend special
- Add column: mailbox.enablelda, required by Dovecot 2.x, used to replace mailbox.enabledeliver.
| Terminal: |
$ mysql -uroot -p mysql> USE vmail; mysql> ALTER TABLE mailbox ADD COLUMN enablelda TINYINT(1) NOT NULL DEFAULT 1; mysql> ALTER TABLE mailbox ADD INDEX enablelda (enablelda); |
