1

Topic: Migrating from Zimbra to iRedmail issues

- iRedMail version: 1.2.1
- Deployed with iRedMail downloadable installer
- Ubuntu 18.04
- Store mail accounts in which backend: LDAP
- Web server: Nginx
- Manage mail accounts with iRedAdmin-Pro?  No

I'm trying to migrate from Zimbra (opensource 8.8.8GA) using imapsync.  Trying to use an admin account, so I don't need to hassle with passwords for each user.  Command I'm using:

imapsync --host1 my.zimbra.server --host2 my.iredmail.server --user1 'user1@my.domain' --authuser1 'adminaccount@my.domain' --password1 'supersecretpassword' --user2 'mytestaccount@my.domain' --authuser2 'adminaccount@my.domain' --password2 'supersecretpassword' --ssl1 --ssl2 --authmech1 PLAIN --authmech2 PLAIN


This properly logs into the zimbra server, but fails when trying it to Redmail - even though it says it supports "PLAIN"

Host1: success login on [my.zimbra.server] with user [user1@my.domain] auth [PLAIN]
Host2: connecting and login on host2 [my.iredmail.server] port [993] with user [mytestaccount@my.domain]
Host2 IP address: 123.123.123.12
Host2 banner: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN] Dovecot (Ubuntu) ready.
Host2 capability before authentication: IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN AUTH
Host2: my.iredmail.server says it has CAPABILITY for AUTHENTICATE PLAIN
Host2 info: authmech [PLAIN] user [mytestaccount@my.domain] authuser [adminaccount@my.domain] IsUnconnected []
Host2 failure: Error login on [my.iredmail.server] with user [mytestaccount@my.domain] auth [PLAIN]: 2 NO [AUTHENTICATIONFAILED] Authentication failed.
Exiting with return value 16 (EXIT_AUTHENTICATION_FAILURE) 1/50 nb_errors/max_errors
Disconnecting from host1 my.zimbra.server user1 user1@my.domain


Any help appreciated....

2

Re: Migrating from Zimbra to iRedmail issues

Use TLS please.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

3

Re: Migrating from Zimbra to iRedmail issues

ZhangHuangbin wrote:

Use TLS please.

--tls2 fails in the same way.  It looks like the iRedmail server is ignorin the --authuser2 directive .... if I remove that and just use the user/pass for the mailbox, it works.   So, I guess I can't just sync every user's mailbox from zimbra to redmail without specifying the user/pass on the redmail side....

4

Re: Migrating from Zimbra to iRedmail issues

Use LOGIN as auth method.

imapsync works fine with iRedMail + Dovecot Master User, i had a lot success experience.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee