1

Topic: upgrade,update

==== Required information ====
- iRedMail version: 0.6.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):LDAP
- Linux/BSD distribution name and version: Ubuntu LTS
- Related log if you're reporting an issue:
====
there is a need to update the platform to translate the mail server, and mail server itself.
given
- IRedMail version: 0.6.1
- Store mail accounts in which backend (LDAP / MySQL / PGSQL): LDAP
- Linux / BSD distribution name and version: Ubuntu LTS
5 vertualnoy domains
eye 100 users on each domain
necessary
- IRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP / MySQL / PGSQL): LDAP
- Linux / BSD distribution name and version: Debian 7 (Wheezy)

is it possible to migrate users, demeny and their mail, and save the configuration, if so, what is needed

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: upgrade,update

It was discussed before for SQL backend.

I would do following:
1) copy the LDAP server to development system and make it to work,
2) follow all LDAP related changes noted in upgrade tutorial starting "0.6.1 -> 0.7.0" till the latest "0.8.5 -> 0.8.6" (note, only few of them has LDAP changes, you can skip the rest),
3) dump the resulting data,
4) install fresh supported system or your choice and latest iRedMail with LDAP backend,
5) load the dump created in 3)

All accounts and domains should be configured exactly as on the old server... just make sure to reapply any customization done on the old server.

3

Re: upgrade,update

Reference: Migrate to new iRedMail server:
http://www.iredmail.org/wiki/index.php? … ail.Server

4

Re: upgrade,update

ZhangHuangbin wrote:

Reference: Migrate to new iRedMail server:
http://www.iredmail.org/wiki/index.php? … ail.Server

python updateLDAPValues_061_to_070.py
* Connecting to LDAP server: ldap://127.0.0.1:389
Traceback (most recent call last):
  File "updateLDAPValues_061_to_070.py", line 22, in <module>
    conn.bind_s(bind_dn, bind_pw)
  File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 221, in bind_s
    return self.result(msgid,all=1,timeout=self.timeout)
  File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 436, in result
    res_type,res_data,res_msgid = self.result2(msgid,all,timeout)
  File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 440, in result2
    res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout)
  File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 446, in result3
    ldap_result = self._ldap_call(self._l.result3,msgid,all,timeout)
  File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 96, in _ldap_call
    result = func(*args,**kwargs)
ldap.INVALID_CREDENTIALS: {'desc': 'Invalid credentials'}

5

Re: upgrade,update

aaberezin wrote:

ldap.INVALID_CREDENTIALS: {'desc': 'Invalid credentials'}

Please use correct LDAP bind dn and password.