[opensuse] moving imap server
Hello, I have to move an imap server from 11.4 to 13.1. I have the old server on a computer and at least one important account I don't want to brake. I have the new server completely configured and working. I have two concerns: * messages are sometime hanging in the wild (/var/spool; for example) * dns propagation takes some time, so I can't move instantly at the moment I want. I use postfix, dovecot, squirrelmail. What I do usually is to rsync the home contents (I already have duplicated the users accounts and passwords), the /var/spool content and change the dns zone to reflect the new server. but, being imap, I wonder if I couldn't have both servers running with the same mail content (of course with different domain names)? of course I can add an alias on the present server to copy mail to the new one. What can I do best? thanks jdd -- http://www.dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
I have two concerns:
* messages are sometime hanging in the wild (/var/spool; for example)
That is a postfix issue/area.
* dns propagation takes some time, so I can't move instantly at the moment I want.
Right. If it's time-critical, people often reduce the TTLs to 60 seconds before a move, then readjust afterwards.
What I do usually is to rsync the home contents (I already have duplicated the users accounts and passwords), the /var/spool content and change the dns zone to reflect the new server.
Yep, sounds good.
but, being imap, I wonder if I couldn't have both servers running with the same mail content (of course with different domain names)?
You mean with two copies of the same mail or with one shared copy?
of course I can add an alias on the present server to copy mail to the new one. What can I do best?
I would prepare the new server as required and reduce the TTL for your MX to 60, maybe also for the IMAP server. Then stop both, copy the content across, then start both on your new server. Then update DNS. I've done that a couple of times with no issues. -- Per Jessen, Zürich (13.8°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
jdd wrote:
I have two concerns:
* messages are sometime hanging in the wild (/var/spool; for example)
That is a postfix issue/area.
* dns propagation takes some time, so I can't move instantly at the moment I want.
Right. If it's time-critical, people often reduce the TTLs to 60 seconds before a move, then readjust afterwards.
What I do usually is to rsync the home contents (I already have duplicated the users accounts and passwords), the /var/spool content and change the dns zone to reflect the new server.
Yep, sounds good.
but, being imap, I wonder if I couldn't have both servers running with the same mail content (of course with different domain names)?
You mean with two copies of the same mail or with one shared copy?
of course I can add an alias on the present server to copy mail to the new one. What can I do best?
I would prepare the new server as required and reduce the TTL for your MX to 60, maybe also for the IMAP server. Then stop both, copy the content across, then start both on your new server. Then update DNS. I've done that a couple of times with no issues.
If DNS is a problem, you could just move the IP-addresses. (bring down old server, add IPs as secondaries on new server). -- Per Jessen, Zürich (13.8°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 02/06/2014 13:27, Per Jessen a écrit :
If DNS is a problem, you could just move the IP-addresses. (bring down old server, add IPs as secondaries on new server).
I can't do this, IP are bound to the server jdd -- http://www.dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
Le 02/06/2014 13:27, Per Jessen a écrit :
If DNS is a problem, you could just move the IP-addresses. (bring down old server, add IPs as secondaries on new server).
I can't do this, IP are bound to the server
I guess these are leased/remnted servers? Yes, then it's probably difficult or impossible. -- Per Jessen, Zürich (13.8°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 02/06/2014 15:44, Per Jessen a écrit :
I guess these are leased/remnted servers? Yes, then it's probably difficult or impossible.
yes, and cheap ones, so I don't have all the bells and whistles :-( jdd -- http://www.dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-06-02 09:27, jdd wrote:
I use postfix, dovecot, squirrelmail.
What I do usually is to rsync the home contents (I already have duplicated the users accounts and passwords), the /var/spool content and change the dns zone to reflect the new server.
For moving email across imap servers (dovecot) I use two methods. One, is using "imapsync" (package of same name, server:mail repo). Documentation is scarce, because they want you to get the pay version or pay for support or something - but the free version works well, once you find out the correct command line to use. Another method is rsync of the storage folders, but making sure to ignore all ".imap" folders, and "lucene-indexes" if they exist. If you copied them, delete them and allow the new server to reconstruct them fully. I got into strange problems when I did not.
but, being imap, I wonder if I couldn't have both servers running with the same mail content (of course with different domain names)?
I don't see why not. But keeping them in sync is not trivial. Independent, yes. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
participants (3)
-
Carlos E. R.
-
jdd
-
Per Jessen