FAQ.Cyrus.txt 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. #!/bin/cat
  2. $Id: FAQ.Cyrus.txt,v 1.2 2021/02/19 13:39:03 gilles Exp gilles $
  3. =======================================================================
  4. Imapsync tips for the Cyrus imap server
  5. =======================================================================
  6. This documentation is also available online at
  7. https://imapsync.lamiral.info/FAQ.d/
  8. https://imapsync.lamiral.info/FAQ.d/FAQ.Cyrus.txt
  9. Questions answered in this FAQ are:
  10. Q. How to migrate from cyrus with an admin account?
  11. Q. I'm migrating from WU to Cyrus, and the mail folders are under
  12. /home/user/mail but the tool copies everything in /home/user, how
  13. can i avoid that?
  14. Q. I'm migrating from WU to Cyrus, and the mail folders are under
  15. /home/user/mail directory. When imapsync creates the folders in
  16. the new cyrus imap server, it makes a folder "mail" and below that
  17. folder puts all the mail folders the user have in /home/user/mail,
  18. i would like to have all those folders directly under INBOX.
  19. Q. Migrating from Groupwise to Cyrus
  20. Now the questions again with their answers.
  21. ======================================================================
  22. Q. How to migrate from cyrus with an admin account?
  23. R. Use:
  24. imapsync ... \
  25. --authuser1 admin_user ----password1 admin_user_password \
  26. --user1 foo_user --ssl1
  27. Instead of --ssl1 the alternative --tls1 can be used.
  28. With --authuser1, the option --authmech1 PLAIN is set
  29. automatically, you don't have to add it.
  30. PLAIN authentication is the only way to go with --authuser1 for now.
  31. So don't use --authmech1 SOMETHING with --authuser1 admin_user,
  32. it will not work.
  33. Same behavior with the --authuser2 option.
  34. Do not forget the option --ssl1 or --tls1 since PLAIN auth is only
  35. supported with ssl encryption most of the time. But it can
  36. work without --ssl1 nor --tls1 if PLAIN is permitted in clear text
  37. transmissions (the normal mode).
  38. Add the AdminAccount to admins line in /etc/imapd.conf
  39. Give AdminAccount lrswipkxtecda to the Cyrus Imap account
  40. being migrated from, "joe" here.
  41. Here is an example:
  42. imapsync \
  43. --host1 server1 \
  44. --user1 joe \
  45. --authuser1 AdminAccount \
  46. --password1 AdminAccountPassword \
  47. --ssl1 \
  48. --host2 server2 \
  49. --user2 joe \
  50. --password2 joespassonserver2 \
  51. --exclude "^user\."
  52. =======================================================================
  53. Q. I'm migrating from WU to Cyrus, and the mail folders are under
  54. /home/user/mail but the tool copies everything in /home/user, how
  55. can i avoid that?
  56. Two solutions:
  57. R. Use
  58. imapsync ... --include '^mail'
  59. R. or (better)
  60. imapsync ... --subscribed --subscribe
  61. =======================================================================
  62. Q. I'm migrating from WU to Cyrus, and the mail folders are under
  63. /home/user/mail directory. When imapsync creates the folders in
  64. the new cyrus imap server, it makes a folder "mail" and below that
  65. folder puts all the mail folders the user have in /home/user/mail,
  66. i would like to have all those folders directly under INBOX.
  67. R. Use
  68. imapsync ... --regextrans2 's/^mail/INBOX/' --dry
  69. look at the simulation and if all transformations seem
  70. good then remove the --dry option.
  71. =======================================================================
  72. Q. Migrating from Groupwise to Cyrus
  73. R. By Jamie Neil:
  74. I eventually managed to get the mail to migrate without errors using the
  75. following options:
  76. --maxage 3650
  77. - some messages just don't seem to want to transfer and produce the
  78. perl errors I mentioned before. This prevents the errors, but the
  79. bad messages don't transfer.
  80. Even though the mail migrated OK, there are a couple of gotchas with
  81. Groupwise IMAP:
  82. 1) Some of the GW folders are not real folders and are not available
  83. to IMAP, the main problem one being "Sent Items". I could find no way
  84. of coping the contents of these folders. The nearest I got was to
  85. create a "real" folder and copy/move the sent items into it, but
  86. imapsync still didn't see the messages (I think because there is
  87. something funny about the reported dates/sizes).
  88. It think this problem has been rectified in GW6.5.
  89. 2) Version 6.0.1 of the Groupwise Internet Connector sucks. I was
  90. getting server aborts when I pushed it a bit hard! I eventually had to
  91. upgrade to 6.0.4 which seems to be a lot more stable.
  92. =======================================================================