1

Topic: Migrate mail from postfix CentOs5 to iReMail

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.1
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: CentOs 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello,

I must migrate a mail server from CentOs 5 to CentOs7. I decided to use iRedMail on my new server.
How can I migrate user mails from CentOs 5 (store in /home/username) to iRedMail (store in /var/vmail) please?
Thank you.

----

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

2

Re: Migrate mail from postfix CentOs5 to iReMail

- Seems you're using mbox format for mailbox, if yes, you have to either convert mbox to maildir directly, or migrate mailboxes with `imapsync` tool.
- For password migration, check: https://docs.iredmail.org/password.hashes.html

3 (edited by stribouille 2020-08-26 16:27:19)

Re: Migrate mail from postfix CentOs5 to iReMail

Hello,

In my CentOs 5 main.cf I have:
home_mailbox = Mailbox
How can I convert mailbox to maildir please?
For example, I have a user named stribouille on CentOs5 and iRedMail
Thank you.

PS: On iRedMail there is no /home for users...I don't know how it works hmm

4

Re: Migrate mail from postfix CentOs5 to iReMail

I suggest you use "imapsync" tool to sync mailboxes, no need to convert mailbox format.
also, we offer paid migration support, contact us if you need assistance:
https://www.iredmail.org/contact.html

5

Re: Migrate mail from postfix CentOs5 to iReMail

Hello,

I tried imapsync but the imapsync --testslive failed. I've contacted the author. Waiting for an answer.
Thank you.

6

Re: Migrate mail from postfix CentOs5 to iReMail

Hello,

I've installed mannually the new version of imapsync:

  yum install perl-App-cpanminus \
perl-Dist-CheckConflicts \
perl-HTML-Parser \
perl-libwww-perl \
perl-Module-Implementation \
perl-Module-ScanDeps \
perl-Package-Stash \
perl-Package-Stash-XS \
perl-PAR-Packer \
perl-Regexp-Common \
perl-Sys-MemInfo \
perl-Test-Fatal \
perl-Test-Mock-Guard \
perl-Test-Requires \
perl-Test-Deep \
perl-File-Tail \
perl-Unicode-String \
perl-Test-NoWarnings \
perl-Test-Simple \
perl-Test-Warn \
perl-Sub-Uplevel

Also, run the following commands:

  cpanm Encode::IMAPUTF7
  wget -N https://imapsync.lamiral.info/imapsync
  chmod +x imapsync
  imapsync --testslive

Now you should have the latest imapsync locally working on Centos 7.

If you want to install it and replace the old one:

  mv /usr/bin/imapsync  /usr/bin/imapsync_old
  cp ./imapsync /usr/bin/imapsync


And it works fine. Thank you. Topic can be closed.