[Dovecot] Migrating UW-POP3 mbox storage to Dovecot POP3 mbox storage
Hi
We have an mailserver running RedHat Linux 9.0 with UW-IMAP (imap-2001a- 18.progeny.1.src.rpm), we have user mailboxes in /var/spool/mail/username using the default mbox storage method.
Some users have home directories and some dont. They only connect through the POP3 server, not IMAP.
We are now migrating both hardware and software to an new server running RHEL 4, i have copied all user mbox files from the old RH9 server to the new RHEL 4 server (/var/spool/mail) but when the users are trying to get their mail they can login but Dovecot is complaining about some IMAP dirs missing, see attached docs. I would like to still use POP3 and mbox with Dovecot, is this possible ? I would rather not have to change the user files.
Errors from /var/log/maillog: Aug 11 13:25:15 newmail pop3-login: Login: user0001 [::ffff:82.237.232.61] Aug 11 13:25:15 newmail pop3(user0001): mbox: Can't create root IMAP folder /local/home/user0001/mail: Permission denied Aug 11 13:25:15 newmail pop3(user0001): Failed to create storage with data: mbox:/var/spool/mail/user0001 Aug 11 13:25:15 newmail dovecot: child 9371 (pop3) returned error 89
From dovecot.conf: #protocols = imap imaps protocols = pop3
#default_mail_env = default_mail_env = mbox:/var/spool/mail/%u
Best Regards, Rickard
On Thu, 2005-08-11 at 15:05 +0200, Rickard Svorén wrote:
We are now migrating both hardware and software to an new server running RHEL 4, i have copied all user mbox files from the old RH9 server to the new RHEL 4 server (/var/spool/mail) but when the users are trying to get their mail they can login but Dovecot is complaining about some IMAP dirs missing, see attached docs. I would like to still use POP3 and mbox with Dovecot, is this possible ? I would rather not have to change the user files.
Dovecot wants to store at least index files somewhere. Changing their location elsewhere gets you further:
default_mail_env = mbox:~/mail:INBOX=/var/mail/%u:INDEX=/var/index/%u
Although Dovecot still wants to create the ~/mail directory and fails if it can't. You could probably just delete that part of the code (src/lib-storage/index/mbox/mbox-storage.c create_root_dir()) although then you'd have to be sure that the directory exists for IMAP users. I'm not sure if I should change this in any way for the main Dovecot distribution..
Thanks Timo
I decided to create home-directories for all users and one INDEX directory, works fine now.
Best Regards, Rickard
Timo Sirainen wrote:
On Thu, 2005-08-11 at 15:05 +0200, Rickard Svorén wrote:
We are now migrating both hardware and software to an new server running RHEL 4, i have copied all user mbox files from the old RH9 server to the new RHEL 4 server (/var/spool/mail) but when the users are trying to get their mail they can login but Dovecot is complaining about some IMAP dirs missing, see attached docs. I would like to still use POP3 and mbox with Dovecot, is this possible ? I would rather not have to change the user files.
Dovecot wants to store at least index files somewhere. Changing their location elsewhere gets you further:
default_mail_env = mbox:~/mail:INBOX=/var/mail/%u:INDEX=/var/index/%u
Although Dovecot still wants to create the ~/mail directory and fails if it can't. You could probably just delete that part of the code (src/lib-storage/index/mbox/mbox-storage.c create_root_dir()) although then you'd have to be sure that the directory exists for IMAP users. I'm not sure if I should change this in any way for the main Dovecot distribution..
participants (3)
-
Rickard Svoren
-
Rickard Svorén
-
Timo Sirainen