FAQ.Dovecot.txt 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. #!/bin/cat
  2. $Id: FAQ.Dovecot.txt,v 1.14 2022/06/16 09:06:34 gilles Exp gilles $
  3. This documentation is also available online at
  4. https://imapsync.lamiral.info/FAQ.d/
  5. https://imapsync.lamiral.info/FAQ.d/FAQ.Dovecot.txt
  6. =======================================================================
  7. Imapsync tips for Dovecot. Specific issues and solutions.
  8. =======================================================================
  9. Questions answered in this FAQ are:
  10. Q. Is there imapsync specific options to deal with Dovecot?
  11. Q. The login fails with the error:
  12. Err 1/1: Host2 failure: Error login on [...] with user [...] auth [LOGIN]: timeout waiting 120s for data from server (5x)
  13. What can it be?
  14. Q. Subfolders are not created by imapsync and the error is
  15. "Mailbox doesn't allow inferior mailboxes"
  16. Q. How to migrate to Dovecot with an admin/MasterUser account?
  17. Q. I have a mailbox that "dovecot backup" gives errors on that
  18. I can't get rid of: "UID inserted in the middle of mailbox".
  19. What can I do?
  20. Q. Imapsync encounters timeouts and Dovecot log says
  21. "mailpiler dovecot: imap(xxx): Error: Timeout (180s) while waiting for dotlock for transaction log file ..."
  22. What can I do?
  23. Now the questions again with their answers.
  24. =======================================================================
  25. Q. Is there imapsync specific options to deal with Dovecot?
  26. R. Dovecot is ok with imapsync, nothing special is needed, just the
  27. basic options, ie, the credentials, are needed.
  28. =======================================================================
  29. Q. The login fails with the error:
  30. Err 1/1: Host2 failure: Error login on [...] with user [...] auth [LOGIN]: timeout waiting 120s for data from server (5x)
  31. What can it be?
  32. R. It can be special characters in the password. Change it with only
  33. normal characters, characters from a-z A-Z 0-9
  34. =======================================================================
  35. Q. How to migrate to Dovecot with an admin/MasterUser account?
  36. R. Dovecot uses the same syntax as uw-imap
  37. imapsync ... --user2="loginuser*admin_user" --password2 "admin_user_password"
  38. To setup a Dovecot MasterUser follow the document
  39. https://doc.dovecot.org/configuration_manual/authentication/master_users/
  40. =======================================================================
  41. Q. I have a mailbox that "dovecot backup" gives errors on that
  42. I can't get rid of: "UID inserted in the middle of mailbox".
  43. What can I do?
  44. Q. Solution, run:
  45. doveadm -v deduplicate -m -u martin mailbox A/Posted
  46. it will get rid of the duplicates (I can also be run without "-m")
  47. and this also allows "dovecot backup" to work.
  48. Thanks to Martin Ward for this input!
  49. =======================================================================
  50. Q. Subfolders are not created by imapsync and the error is
  51. "Mailbox doesn't allow inferior mailboxes"
  52. R. Dovecot usually supports subfolders with messages and subfolders,
  53. it's a Dovecot configuration issue.
  54. If you can change the Dovecot configuration dovecot.conf,
  55. then try this:
  56. mail_location = maildir:~/Maildir:LAYOUT=fs
  57. See details at:
  58. https://superuser.com/questions/813362/sub-folders-in-dovecot
  59. https://wiki2.dovecot.org/MailLocation/Maildir
  60. =======================================================================
  61. Q. Imapsync encounters timeouts and Dovecot log says
  62. "mailpiler dovecot: imap(xxx): Error: Timeout (180s) while waiting for dotlock for transaction log file ..."
  63. What can I do?
  64. R. It looks like an NFS issue with Dovecot.
  65. Solve it with Dovecot support or use something else than NFS.
  66. I'll be glad to share here any solution you find.
  67. (Thanks to Mate Skoblar for reporting this issue)
  68. =======================================================================
  69. =======================================================================