Upgrade/iRedMail/0.7.2-0.7.3
From iRedMail
(Difference between revisions)
(→MySQL backend special) |
(→OpenLDAP backend special) |
||
| Line 5: | Line 5: | ||
= OpenLDAP backend special = | = OpenLDAP backend special = | ||
| - | * Add enabledService=lda, required by Dovecot 2.x. http://iredmail.googlecode.com/hg/extra/update/updateLDAPValues_072_to_073.py | + | * 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. | ||
| + | {{cmd|<pre> | ||
| + | # cd /root/ | ||
| + | # wget http://iredmail.googlecode.com/hg/extra/update/updateLDAPValues_072_to_073.py | ||
| + | </pre>}} | ||
| + | |||
| + | * Open '''updateLDAPValues_072_to_073.py''', config LDAP server related settings in file head. e.g. | ||
| + | {{cfg|updateLDAPValues_072_to_073.py|<pre> | ||
| + | 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' | ||
| + | </pre>}} | ||
| + | |||
| + | 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: | ||
| + | {{cmd|<pre> | ||
| + | # python updateLDAPValues_072_to_073.py | ||
| + | </pre>}} | ||
= MySQL backend special = | = MySQL backend special = | ||
Revision as of 03:32, 8 August 2011
DRAFT. STILL WORKING IN PROGRESS, DO NOT APPLY THEM.
General
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); |
