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)