The Perfect Server - CentOs x86_64 [ISPConfig 3], now what?

Discussion in 'Server Operation' started by excalibur, Mar 22, 2011.

  1. excalibur

    excalibur New Member

    I'm switching from my reseller account to my own server in datacenter.
    In my old reseller-account all the emails are stored in
    e.g /home/info/
    I have 'Thrash', 'sent' & 'draft' file and my inbox is in /var/spool/mail/, i got a 'info' file.

    With my CentOs setup, can i easily copy those files to let it work and where do i have to copy this ?
    Or do i have to do another procedure?

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    It seems that your old server uses the mbox format to store emails and your new server uses maildir format. There is a tool available named mb2md that can convert mailbox files to maildir format:

    The maildirs on a ispconfig 3 server are in /var/vmail/domain.tld/user/Maildir/
  3. excalibur

    excalibur New Member

    Do i have to download the files first to my new server?
    because i don't have SSH access to my reseller account.
  4. excalibur

    excalibur New Member

    I'm following the mb2md, they say
    Run this as the user of the mailboxes, not as root.

    but i don't have users for eg., i only have root user to migrate my files.

    also when i do this
    [[email protected] Maildir]# ./ -s Drafts
    Fatal: Source is not an mbox file or a directory!

  5. excalibur

    excalibur New Member


    Problem solved.

    What did i do?

    I have download all files of my current hosting (/home/[user]/) to /tmp/[user] of the new server
    and ran this:

    ./mb2md -s /tmp/[user]/ -R -d /var/vmail/[domain]/[user]/Maildir/

    When i check my roundcube on my new server, all my mails are imported.

    1 disadvantage: all my mails are marked unread :(

    Hopefully this will help anyone.

Share This Page