Messages from old server to DA server with Dovecot

Scr33x0r

Verified User
Joined
Jul 24, 2006
Messages
27
Hey,

Im trying to convert my mails from an old server with sendmail and mbox to a new server with Directadmin and dovecot and Maildir installed.

On my old server runs sendmail with just some homedirs in: /home/$user/ and the spool in /var/spool/mail/$user

I can transfer the spoolmail but the mail in my imap folders wont transfer, the directories and messages are on the new server in the right directory:

/home/someuser/imap/somedomain.ext/$user/Maildir
It has:
Code:
[root@web01 Maildir]# ls -al
total 216
drwxrwx---  24 someusr mail 4096 Feb 16 14:12 .
drwxrwx---   3 someusr mail 4096 Feb 16 14:00 ..
drwxrwx---   5 someusr mail 4096 Feb 16 14:02 .SomeFolder
drwxrwx---   5 someusr mail 4096 Feb 16 14:02 .SomeFolder
drwxrwx---   5 someusr mail 4096 Feb 16 14:02 .SomeFolder
drwxrwx---   5 someusr mail 4096 Feb 16 14:02 .SomeFolder
drwxrwx---   2 someusr mail 4096 Feb 16 14:02 cur
drwxrwx---   5 someusr mail 4096 Feb 16 14:02 .SomeFolder
-rwxrwx---   1 someusr mail  120 Feb 16 14:02 dovecot.index
-rwxrwx---   1 someusr mail   56 Feb 16 14:11 dovecot.index.log
drwxrwx---   5 someusr mail 4096 Feb 16 14:02 .Drafts
drwxrwx---   5 someusr mail 4096 Feb 16 14:02 .SomeFolder
drwxrwx---   5 someusr mail 4096 Feb 16 14:02 .SomeFolder
drwxrwx---   5 someusr mail 4096 Feb 16 14:02 .SomeFolder
drwxrwx---   5 someusr mail 4096 Feb 16 14:02 .INBOX.Drafts
drwxrwx---   5 someusr mail 4096 Feb 16 14:02 .INBOX.Sent
drwxrwx---   5 someusr mail 4096 Feb 16 14:12 .INBOX.spam
drwxrwx---   5 someusr mail 4096 Feb 16 14:02 .INBOX.Trash
drwxrwx---   5 someusr mail 4096 Feb 16 14:02 .SomeFolder
drwxrwx---   5 someusr mail 4096 Feb 16 14:02 .SomeFolder
drwxrwx---   5 someusr mail 4096 Feb 16 14:02 .SomeFolder
drwxrwx---   2 someusr mail 4096 Feb 16 14:02 new
drwxrwx---   5 someusr mail 4096 Feb 16 14:02 .Sent
drwxrwx---   5 someusr mail 4096 Feb 16 14:02 .spam
-rw-rw----   1 someusr mail   53 Feb 16 14:12 subscriptions
drwxrwx---   2 someusr mail 4096 Feb 16 14:02 tmp
drwxrwx---   5 someusr mail 4096 Feb 16 14:02 .Trash

But I cant see them via Imap or webmail (squirrelmail/roundcube)

Can anyone help me?
 
Last edited:
I'm not sure why you'd have to move the spool; shouldn't you just let it empty from the old server?

As far as the Maildir directories are concerned, did you follow DA instructions for setting up Dovecot? Did you use DirectAdmin to set up the users before moving the emails into the various directories under Maildir?

What's in the Maildir directories?

There should be one individual file for each email. How did you create them? How are they named?

Jeff
 
Well, /var/spool/mail/someuser should be moved from the old server because that is the inbox file.

Let me explain;

We have some old and some new servers. The new servers, are all directadmin and dovecot installed, newest updates etc. The old server were installed by some other dude before I had this job and he installed everything without controlpanel, so it has sendmail running as the mailserver. We want to get the old servers out of our system, but all e-mail, as we work with imap, should be transfered to the new servers (with DA and dovecot).

So when I use mb2md I can convert the messages, but they wont showup in webmail and imap.
 
Ok, I solved the problem, the folders should be in the subscriptions list. Is there anyway I can do this automaticly?
 
If you've updated your DA server(s) to Dovecot, then it's expecting email in Maildir format. mail in mbox files won't work; you'll have to "explode" (convert) each mbox file to a Maildir format folder.

Check the DA knowledgebase for information on how to convert to Dovecot without custombuild (using customapache); I believe it has a link to a conversion program.

Jeff
 
Back
Top