299eec0
Q. We used to use University of Washington IMAP (UW IMAP), in the Red
299eec0
   Hat distribution, the rpm was named "imap". We would now like to use
299eec0
   dovecot and take advantage of its support for Maildir format, but
299eec0
   we have existing user mail files in the old mbox format we need to
299eec0
   migrate. How can we do this?
299eec0
299eec0
A. Read the documentation in
299eec0
   /usr/share/doc/dovecot-*/UW-to-Dovecot-Migration. You will also
299eec0
   find scripts there to help you.
299eec0
299eec0
Q. I'm getting errors in /var/log/maillog for dotlock failed,
299eec0
   permission denied. The actual error probably looks like this with
299eec0
   user replaced by a user name on your system.
299eec0
299eec0
   imap(user): file_lock_dotlock() failed with mbox file /var/spool/mail/user: Permission denied
299eec0
299eec0
A. This is occuring because:
299eec0
299eec0
   1) The user INBOX is in the system spool directory which is:
299eec0
      "drwxrwxr-x root mail"
299eec0
299eec0
   2) Dovecot is configured to create "dotlock" locking files.
299eec0
299eec0
   3) After an imap user logs in the imap process runs as that user
299eec0
      and the spool directory permissions does not allow that user to
299eec0
      creat new files (e.g. dot lock files).
299eec0
299eec0
   The possible solutions are:
299eec0
299eec0
   1) Don't locate the user's INBOX in the system spool directory,
299eec0
      have mail delivered to another location, for instance his home
299eec0
      directory (this may not be possible to change for existing
299eec0
      systems). This is an MTA configuration.
299eec0
299eec0
   2) In the dovecot configuration file set the variable
299eec0
      mail_extra_groups to "mail". This will add the mail group to the
299eec0
      list of groups that the logged in imap user will have permission
299eec0
      for. His imap process can then create files in the mail spool
299eec0
      file. However the user's imap process now has mail group
299eec0
      privileges, you will have to evaluate the extent of the security
299eec0
      threat this poses for your site.
299eec0
299eec0
   3) Disable the use of dotlocks by setting dovecots config parameter
299eec0
      mbox_locks to a value that does not include dotlock, for
299eec0
      example, fcntl. However, note dotlocks are considered robust,
299eec0
      especially for NFS.