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
Cyrus IMAP - Migrate from openSUSE 10.3 to CentOS 7
Cyrus IMAP - Migrate from openSUSE 10.3 to CentOS 7
Best regards,
Michael
Michael
Re: Cyrus IMAP - Migrate from openSUSE 10.3 to CentOS 7
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
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
Re: Cyrus IMAP - Migrate from openSUSE 10.3 to CentOS 7
I have already deactivated selinux completely for testing. Unfortunately this didn't bring any improvement. Any other suggestions?
Best regards,
Michael
Michael
Re: Cyrus IMAP - Migrate from openSUSE 10.3 to CentOS 7
For your information, the following steps have been done:
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?
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
Best regards,
Michael
Michael