1

Topic: Faill to upgrade iRedMail server to latest version

Hi ZhangHuangbin, we haven't written to each other for more than 13 years... and I can say that for these years I am extremely satisfied with iRedMail. The server I am trying to migrate has an Uptime of 2433 days, 5 hours, 21 minutes!

I have two mailservers installed that I want to migrate to the latest version, I think it's time for them to migrate to the latest version.

The server I am trying to migrate is iRedMail v0.9.5-1 with iRedAdmin v0.6.1 (LDAP), Cent OS 3.10.0-327.18.2.el7.x86_64.

I installed Debian 12, and iRedMail-1.7.1, exported from the old server the LDAP database following the instructions, downloaded updateLDAPValues_095_1_to_096.py and updateLDAPValues_099_to_1.py, set
basedn = 'o=domains,dc=example,dc=com'
bind_dn = 'cn=vmailadmin,dc=example,dc=com'
bind_pw = 'passwd'
and when running the script it gives the following error:
root@mail-new:/home/dimi# python3 updateLDAPValues_095_1_to_096.py
File "/home/dimi/updateLDAPValues_095_1_to_096.py", line 20
print "* Connecting to LDAP server: %s" % uri
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

I'm obviously going to need some help, thanks in advance!

----

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

2

Re: Faill to upgrade iRedMail server to latest version

The script was written in Python 2, but your new machine has only Python 3.
You may need to update the upgrade script to python3 syntax. sad

3 (edited by dtrdimi 2024-11-12 23:35:15)

Re: Faill to upgrade iRedMail server to latest version

ZhangHuangbin wrote:

The script was written in Python 2, but your new machine has only Python 3.
You may need to update the upgrade script to python3 syntax. sad

Thank you, it helped me a lot... Yes, the scripts are in python 2, I converted them to 3 and still there are errors, when I create an account through Iredadmin the account is logged in without a problem, the imported accounts are not logged in, what I notice is that in the old accounts have 20 services while the new account has 33.
I expect some constructive help to do it myself, or will I have to pay for migration?

The problem is in logging in via IMAP, neither with a mail client not with Roadcube webmail.

4

Re: Faill to upgrade iRedMail server to latest version

FYI https://docs.iredmail.org/upgrade.dovecot.2.2-2.3.html