IMAP sync between 2 DA Server

SeLLeRoNe

Super Moderator
Joined
Oct 9, 2004
Messages
6,516
Location
A Coruña, Spain
Hi,

a customer asked me if there is a way to have 2 DA Server with same configurations with different IP where IMAP folders can be synced

His plan is to have those two server in different locations (Rome and Milan) for have a disaster recovery system for the server with all up2date on both server with the abilty to have specially the email synced (he asked for IMAP cause would like to have sent emails synced aswell).

Anyone has ever done something like this with DA Server? Any clue or suggestions?

Thanks everyone

Regards
 
Yep i did think about that but, in case serverA crash so the up2date one should be serverB (supposing ill use two MX record one for serverA one for serverB).

I was hoping for an IMAP way to sync so read/unread/sent/new/whatever would be always synced like serverA <=> serverB

Regards
 
Ok, last update.

This software seems to do exactly what i was looking for:

http://pwet.fr/man/linux/commandes/imapsync

Code:
DESCRIPTION

The command imapsync is a tool allowing incremental and recursive imap transfer from one mailbox to another.

We sometimes need to transfer mailboxes from one imap server to another. This is called migration.

imapsync is the adequate tool because it reduces the amount of data transfered by not transfering a given message if it is already on both sides. Same headers, same message size and the transfert is done only once. All flags are preserved, unread will stay unread, read will stay read, deleted will stay deleted. You can stop the transfert at any time and restart it later, imapsync is adapted to a bad connection.

You can decide to delete the messages from the source mailbox after a successful transfert (it is a good feature when migrating). In that case, use the --delete option, and run imapsync again with the --expunge option.

You can also just synchronize a mailbox A from another mailbox B in case you just want to keep a live copy of B in A.

Hope this will be helpful to someone else also :)

EDIT:

Is also avaible for CentOS on epel repository:

Code:
Dependencies Resolved

====================================================================================================================================================================================
 Package                                            Arch                                Version                                         Repository                             Size
====================================================================================================================================================================================
Installing:
 imapsync                                           noarch                              1.456-1.el5                                     epel                                  123 k
Installing for dependencies:
 perl-IO-Socket-SSL                                 noarch                              1.01-1.fc6                                      base                                   49 k
 perl-Mail-IMAPClient                               noarch                              3.28-1.el5                                      epel                                  229 k
 perl-NTLM                                          noarch                              1.09-1.el5                                      epel                                   18 k
 perl-Net-SSLeay                                    x86_64                              1.30-4.fc6                                      base                                  192 k
 perl-Parse-RecDescent                              noarch                              1.965.1-2.el5.rf                                rpmforge                              145 k

Regards
 
Gosh, this work just mail account by mail account...

im starting to think that maybe rsync would work better in this case..
 
I was hoping for an IMAP way to sync so read/unread/sent/new/whatever would be always synced like serverA <=> serverB

I guess with rsync you'll still be able to sync status of a message.
 
Hi SeLLeRoNe,
One of our clients ask for thew same solution.
find a way to do it?
 
I didnt investigate anymore cause i did not found so much time to spend on it.

Feel free to continue tests and post results if you want.

Regards
 
Back
Top