Move mail from one server to another. Help!

Discussion in 'General' started by xciso, Jul 19, 2013.

  1. xciso

    xciso Member

    Hello.
    I have set up a new server and i want to move all the mail from the old server to the new.

    I have done like this but it dosn't work:
    scp -P 22 /var/vmail/my.domain/ xx.xx.xx.xx:/var/vmail/

    When i then look in the folder i see many files that it have copy, but i cant show the in squirrelmail or with my local thunderbird.

    In squirrelmail i get this error:
    ERROR: Connection dropped by IMAP server.
    Query: FETCH 3054:3056,3059,3064:3068,3070,3073:3074,3077:3079 (FLAGS UID RFC822.SIZE INTERNALDATE BODY.PEEK[HEADER.FIELDS (Date To Cc From Subject X-Priority Importance Priority Content-Type)])

    What have i do wrong?
    I have set up a account in the new server with all alias and everything.

    Please help! Now my mail is offline :(
     
  2. xciso

    xciso Member

    I hope someone can help me soon.
    The only thing i need to have from the old server is mail from /var/vmail/my.domain
     
  3. tahunasky

    tahunasky Member

    Did you check the owner of the files.. should be vmail.

    chown -R vmail:vmail /var/vmail

    I use rsync to copy over emails as it keeps permissions/owership etc:

    rsync -avz root@[OLD_SERVER_IP]:/var/vmail/ /var/vmail
     
    Last edited: Jul 20, 2013

Share This Page