• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Migration emails between two servers

Erwan

Regular Pleskian
Hello,

We have a server with emails (Plesk Onyx). We must migrate all the accounts on a new server where is the website.
We use the imapsync soft.

The problem we have that we must activate "mail server" on Plesk Onyx on the domain on the new server.
And during the migration... emails generated by the website arrive on future accounts (on the new server).
And we want that emails generated by website continue to arrive on the server when the account are at this moment.

It seems that website don't read DNS information (MX) when mail server is on the domain.
When i disable mail server on the domain (always with Plesk Onyx)1), all is ok.

Is there a solution to avoid that?
 
Hello,

We have a server with emails (Plesk Onyx). We must migrate all the accounts on a new server where is the website.
We use the imapsync soft.

The problem we have that we must activate "mail server" on Plesk Onyx on the domain on the new server.
And during the migration... emails generated by the website arrive on future accounts (on the new server).
And we want that emails generated by website continue to arrive on the server when the account are at this moment.

It seems that website don't read DNS information (MX) when mail server is on the domain.
When i disable mail server on the domain (always with Plesk Onyx)1), all is ok.

Is there a solution to avoid that?

Hello,
yes, if you are sending mail using php mail() function, emails will be directly routed to the local mailbox instead of following MX records.
You have to use an external SMTP server to fix this issue.

How to send mail via PHP script using a mailbox located on another server
 
But we don't manage the website concerned.
It will be difficult for us to ask to modify the functions of sending emails.
Thanks anyway.
 
Thanks Checkout but the problem is with emails generated by the website during the transfer.
 
Can you explain a bit more what you are trying to accomplish? Why are you not switching over the accounts to the new server once synced?
 
Because we have more than 400 GB of emails.
Synchronization takes time and we want to test before the reel migration.
And can not afford that emails are lost, or erased by the production migration.

Finally we will put in maintenance the websites during the migration.
 
Instead of using imapsync, you could try just doing an rsync on the /var/qmail/mailnames/ directory; you'll want to make sure the email accounts are setup identical between the two servers. This wouldn't require enabling mail. This idea may also flop horribly but worth a try. Just don't make it live until you make sure everything is functioning ok.
 
I just proposed an alternate idea as you were not wanting to enable mail on the server. You'll be syncing the raw files versus making an imap connection.
 
Back
Top