1

Topic: Migration from Exchange 2007 to iRedMail

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: Ubuntu
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB wink
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

hello,
first - sorry for my english smile

we use iRedmail for a few domain. One of them is proxy for Exchange 2007.
Now is happy day to leave MS Exchange and migration to iRedMail wink

Describe situation:

Server A - iRedMail server (0.9.2)
Server B - MariaDB server
Server C - new server for iRedMail (0.9.4) with Sogo

theoretically all is easy smile
(new instalation, copy database and email files)

Problem 1:
We use different server for MariaDB, so on the instalation:
http://www.iredmail.org/docs/install.ir … erver.html

thats ok, but is there any chance to change db name, example:
- iredadmin_2
- vmail_2
- etc...

I just need to configure new server but old have to work for some time...

Problem 2:
Migration from Echange 2007 - maybe someone do this before??
i found and testing Offline imap http://www.offlineimap.org
i works but is slow.
i have to copy 15 mailboxes, each ~ 7 GB
maybe someone know fastest tool?

thanks
kazix

----

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

2 (edited by reno31 2016-03-09 23:02:53)

Re: Migration from Exchange 2007 to iRedMail

Problem 1 :
It should be the same database, no need for second set of db, just follow the guide.

Problem 2 :
Back in the days there was a tool call imapcopy(.pl) that you can set for copying between IMAPs servers.
It seem to be not free anymore, you can surely find it online.

Edit :
on debian I have : 
apt-cache search imapcopy
imapcopy - IMAP backup, copy and migration tool

I should be present for Ubuntu as well.

3

Re: Migration from Exchange 2007 to iRedMail

#1: Database names are hard-coded in some files: conf/*. Try this under iRedMail-0.9.4 directory:

$ grep -E '(VMAIL_DB=|_DB_NAME=|RCM_DB=)' conf/*

conf/amavisd:export AMAVISD_DB_NAME='amavisd'
conf/global:export VMAIL_DB='vmail'
conf/iredadmin:export IREDADMIN_DB_NAME="${IREDADMIN_USER_NAME}"
conf/iredapd:export IREDAPD_DB_NAME='iredapd'
conf/roundcube:export RCM_DB="roundcubemail"
conf/sogo:export SOGO_DB_NAME='sogo'

#2: you may give "imapsync" a try. But it requires you to know mail username and password on both servers. On iRedMail, you can use Dovecot Master User, so no need to know each user's password (on iRedMail server).

FYI: http://www.iredmail.org/docs/dovecot.master.user.html

4

Re: Migration from Exchange 2007 to iRedMail

A quick update: in development edition, i changed 2 variable names:

*) RCM_DB -> RCM_DB_NAME
*) VMAIL_DB -> RCM_DB_NAME

So, in next iRedMail release, you can find all database names with command below:

$ grep '_DB_NAME=' conf/*
conf/amavisd:export AMAVISD_DB_NAME='amavisd'
conf/global:export VMAIL_DB_NAME='vmail'
conf/iredadmin:export IREDADMIN_DB_NAME="${IREDADMIN_USER_NAME}"
conf/iredapd:export IREDAPD_DB_NAME='iredapd'
conf/roundcube:export RCM_DB_NAME="roundcubemail"
conf/sogo:export SOGO_DB_NAME='sogo'

5

Re: Migration from Exchange 2007 to iRedMail

Thanks - instalation second instance of iRedMail - works great.
i change DBname and DBuser in files conf/* and just go wink

there is one problem on instalation with remote Mysql/MariaDB - install script don't search is installed mysqlclient package, so there was error on finish - so i have to back system to clear installation and start again (snapshot).

So first i install bzip2 and mariadb-client-core-5.5, and then go...

2. Migration - i will start tomorrow and write what happen...
i think there will be long time migration hmm

thanks
kazix

6

Re: Migration from Exchange 2007 to iRedMail

kazix wrote:

there is one problem on instalation with remote Mysql/MariaDB - install script don't search is installed mysqlclient package

Bug. fixed moment ago:
https://bitbucket.org/zhb/iredmail/comm … 1044e6ff47

7

Re: Migration from Exchange 2007 to iRedMail

hey Zhang - you are great wink

[reno31] - imapcopy cant connect to exchange and iRedMail - maybe SSL/TLS problem? i dont have time to looked this...
i use offlineimap http://www.offlineimap.org - very nice tool, connect with Exchange/imap, but may be faster hmm

after migration problem:

1. Restored user cant connect to Sogo - if i change password via iredadmin, it works great, but if i dont change, they cant login

BTW: SOGo - how can i add address book for users from one domain, or global address?

thanks
kazix

8

Re: Migration from Exchange 2007 to iRedMail

kazix wrote:

1. Restored user cant connect to Sogo - if i change password via iredadmin, it works great, but if i dont change, they cant login

It's better to ask in SOGo mailing list, its document doesn't mention this at all.
http://sogo.nu/support/index.html#/community

kazix wrote:

BTW: SOGo - how can i add address book for users from one domain, or global address?

You need to add new "SOGoUserSources = {}" block in /etc/sogo/sogo.conf. Just have a look at existing "SOGoUserSources" in sogo.conf configured by iRedMail.