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
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
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