Upgrade iRedMail from 0.7.2 to 0.7.3

ChangeLog

We provide remote upgrade service, check the price and contact us.

General (All backends should apply these upgrade steps)

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.

# cd /root/
# wget http://iredmail.googlecode.com/hg/extra/update/updateLDAPValues_072_to_073.py
# Part of 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'

You can find required LDAP credential in iRedAdmin config file or iRedMail.tips file under your iRedMail installation directory. Using either cn=Manager,dc=xx,dc=xx or cn=vmailadmin,dc=xx,dc=xx as bind dn is ok.

# python updateLDAPValues_072_to_073.py

MySQL backend special

$ 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);