Cyrus IMAP - Migrate from openSUSE 10.3 to CentOS 7

General support questions
Post Reply
User avatar
MSW
Posts: 3
Joined: 2019/06/26 08:34:47
Location: Germany

Cyrus IMAP - Migrate from openSUSE 10.3 to CentOS 7

Post by MSW » 2019/06/26 08:42:31

Hej,
I have the problem to migrate my IMAP server (openSUSE 10.3/cyrus-imapd 2.3.8) to CentOS 7. Unfortunately I was not able to complete it successfully despite various instructions. I don't see any e-mails on the CentOS server, all folders are empty.

Can someone support me or provide me with a step-by-step guide?

Thank you very much!

Greetings,
Michael
Best regards,
Michael

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Cyrus IMAP - Migrate from openSUSE 10.3 to CentOS 7

Post by TrevorH » 2019/06/26 10:05:12

One big difference between SuSE and CentOS is selinux. Make sure you are using the default path for your mail files and if you copied them over from the old system, you might need to run something like restorecon -RFv /path/to/mail/files to correct the selinux contexts on the files. Check the output from aureport -a to see if there are any events logged with the correct timestamp to be related to the problem. You can use ausearch to obtain more details about each event.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
MSW
Posts: 3
Joined: 2019/06/26 08:34:47
Location: Germany

Re: Cyrus IMAP - Migrate from openSUSE 10.3 to CentOS 7

Post by MSW » 2019/06/26 10:41:09

I have already deactivated selinux completely for testing. Unfortunately this didn't bring any improvement. Any other suggestions?
Best regards,
Michael

User avatar
MSW
Posts: 3
Joined: 2019/06/26 08:34:47
Location: Germany

Re: Cyrus IMAP - Migrate from openSUSE 10.3 to CentOS 7

Post by MSW » 2019/06/26 13:22:05

For your information, the following steps have been done:

Code: Select all

linux_old:/ # /etc/init.d/cyrus stop
linux_new:/ # systemctl stop cyrus-imapd
linux_old:/ # scp -r /var/spool/imap/user/* root@IP-Linux_new:/var/spool/imap/user/
linux_old:/ # scp -r /var/lib/imap/user/* root@IP-Linux_new:/var/lib/imap/user/

linux_old:/ # su cyrus -c "/usr/lib/cyrus/bin/ctl_mboxlist -d" >/var/lib/imap/mailboxes.txt
linux_old:/ # scp /var/lib/imap/mailboxes.txt root@IP-Linux_new:/var/lib/imap/

linux_new:/ # chown -Rv cyrus:mail /var/lib/imap/user/*
linux_new:/ # chown -Rv cyrus:mail /var/spool/imap/user/*
linux_new:/ # chown -Rv cyrus:mail /var/lib/imap/mailboxes.txt
linux_new:/ # su cyrus -c "/usr/lib/cyrus-imapd/ctl_mboxlist -u"</var/lib/imap/mailboxes.txt

linux_new:/ # cd /var/spool/imap/user
linux_new:/ # su cyrus -c "/usr/lib/cyrus-imapd/reconstruct -r user.*"
linux_new:/ # systemctl start cyrus-imapd
Folder structure and corresponding rights (ACL) have been transferred. The copied e-mails in the folders are not visible although they exist in the file system. Did I forget something?
Best regards,
Michael

Post Reply