• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

repeating a migration - what happens to emails?

finbarr69

Basic Pleskian
Hi all,

If I migrate a client/domain from one server to a new one (on a different IP address), and due to DNS propagation delays, some emails still arrive on the old server after the migration, can I re-run the migration (emails only) and expect it to merge the new emails in from the old server with any new ones that arrived on the new server?

If not, what is the best way to migrate and ensure that no emails go adrift?

TIA

Brian
 
Brian, you can just run an rsync on the mail folder from the old server to the new server. The folder it self is:

/var/qmail/mailnames/
 
Just a quick note, ensure to include the -a option to rsync to preserve the permissions and ownership. I forgot initially and found emails stopped arriving because the transferred files became owned by root instead of popuser. oops.
 
Yes,

rsync -az --progress --size-only /var/qmail/mailnames/ * yournewserver.com:/var/qmail/mailnames/
 
Back
Top