Let me know if you see any holes in my plan!
First of a quick background:
1. Server A and Server B have identical copies of a website including the maildir
2. Server A is currently the mail server
3. The site uses IMAP so once it has been migrated to server B, the files need to be there:
What I am going to do:
1. Change the MX on server A to point to Server B
2. On server A remove the domain from /etc/localdomains and stick it in /etc/remotedomains
2. Replicate the /mail dir one final time from A to B
It sounds to me like using this method we would be waiting on DNS to do its thing and even after the changes were made that some mail could still wind up on server A.
But it also sounds to me like setting up /etc/remotedomains is the patch for this problem and that it will force the mailserver to read the MX on the domain and forward it on immediately.
Main thing is to sync IMAP over to an identical server then have the mail be immediately redirected to that server. See anything I missed?
First of a quick background:
1. Server A and Server B have identical copies of a website including the maildir
2. Server A is currently the mail server
3. The site uses IMAP so once it has been migrated to server B, the files need to be there:
What I am going to do:
1. Change the MX on server A to point to Server B
2. On server A remove the domain from /etc/localdomains and stick it in /etc/remotedomains
2. Replicate the /mail dir one final time from A to B
It sounds to me like using this method we would be waiting on DNS to do its thing and even after the changes were made that some mail could still wind up on server A.
But it also sounds to me like setting up /etc/remotedomains is the patch for this problem and that it will force the mailserver to read the MX on the domain and forward it on immediately.
Main thing is to sync IMAP over to an identical server then have the mail be immediately redirected to that server. See anything I missed?