Topic: Moving email between servers? |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: f(x) |
posted 06-06-2007 05:25
Ok, here's my issue: |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 06-06-2007 10:37
Well, one way is always to use imap for that... |
Maniac (V) Mad Scientist From: :morF |
posted 06-06-2007 14:53
Remember as well that Plesk and cPanel are just hosting solutions. What's the actual mail server behind it? Postfix, Exim... which mail server you're actually running will determine how the mail is delivered and in what format. And the two won't necessarily be compatible. You may have to get something to convert the formats. |
Paranoid (IV) Inmate From: f(x) |
posted 06-06-2007 18:21
TP: I believe I have maildir. Within /var/qmail/mailnames/zavaboy.com/zavaboy I see @attachments and Maildir. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 06-06-2007 18:44
Then it's simply a problem of copying everything below Maildir into the Malildir on the new host. |
Paranoid (IV) Inmate From: f(x) |
posted 06-06-2007 19:09 |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 06-06-2007 19:44
huh? |
Paranoid (IV) Inmate From: f(x) |
posted 06-08-2007 02:48
Ok, after some setting up of the new server, here's how things are: |
Maniac (V) Mad Scientist From: :morF |
posted 06-08-2007 14:10
Okay... just a note for you, then. See the Maildir in the Old server? Inside that Maildir is three directories (and maybe a bunch of others, depending on what you're doing for spam filtering andso on). cur, tmp and new. Those are, above all else, what you have to transfer. Also, make sure that their home direcotiries don't contain a .forward file. If they do, you'll have to copy that across too. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 06-08-2007 15:34
If you don't insist on selecting mailboxes for transfer, it's as easy as code: cd /var/qmail/mailnames/domain.com/ tar -cjf 20070608_domain.com.tar.bz2 * -R sftp otheruser@remoteserver cd /home/domainuser/mail/domain.com/ put 20070608_domain.com.tar.bz2 (quit sftp on the other server cd /home/domainuser/mail/domain.com/ tar -xjf 20070608_domain.com.tar.bz2
|
Paranoid (IV) Inmate From: f(x) |
posted 06-08-2007 23:34
TP: To be honest, I'm mot sure that would work. There is no maildir on the new server. So it would be safer to do each user, yes? On the old server Maildir contains cur, new, tmp (and courierpop3dsizelist which I'm guessing is like maildirsize on the new server) while on the new server those directories are not in a maildir. code: // copymailuser.sh domainuser domain.com mailuser #!/bin/sh cd /var/qmail/mailnames/$1/$2/Maildir tar -cjf 20070608_$1_$2.tar.bz2 * -R sftp otheruser@remoteserver su cd /home/$0/mail/$1/$2/ put 20070608_$1_$2.tar.bz2 bye // end copymailuser.sh //on the other server cd /home/domainuser/mail/domain.com/mailuser/ tar -xjf 20070608_domain.com_mailuser.tar.bz2
|
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 06-10-2007 21:32
no, that won't work. |
Paranoid (IV) Inmate From: f(x) |
posted 06-19-2007 06:36
Ok, awhile back TP helped me out over a 2hr chat. We got things figured out. So I tested the move on one of the four mailboxes of a domain. One of the mailboxes can't be accessed, the one I moved. I found that the user/group has been altered on the moved files and directories, so I changed them to what they are supposed to be after looking at the working mailboxes. So now what could the problem be? quote: |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 06-19-2007 09:54
sorry, won't be on q for at least another 36 hours... |
Paranoid (IV) Inmate From: f(x) |
posted 06-19-2007 12:02 |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 06-19-2007 13:57
Well, for me my own server is mostly the luxury of having my mails everywhere I go, since I store them on the server and access them via imap... |
Paranoid (IV) Inmate From: f(x) |
posted 06-20-2007 15:46 |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 06-20-2007 17:03
even money on your dad's computer having cached the old dns entry... or you dead has not updated the account settings. |
Paranoid (IV) Inmate From: f(x) |
posted 06-21-2007 05:50 |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 06-21-2007 12:05
more evidence for the marvels of the dns system at work... |
Paranoid (IV) Inmate From: f(x) |
posted 06-21-2007 16:33 |