Syncronizing two IMAP servers

John Allen allen at vo.lu
Sat Oct 10 11:46:24 UTC 2015


On 10/10/2015 13:22, Timothy Murphy wrote:
> I spend time in two places, in different countries.
> I have a local network in each place,
> with IMAP servers on each network.
> I collect email by fetchmail from various servers,
> and read email on my laptop with KMail.
>
> I tried using just one IMAP server, but this proved impractical.
> So I have two collections of the same sub-folders, on the two servers.
>
> I have two questions:
> 1. Is there a simpler way of organizing my email?
Why was it impractical? Remote access to a single IMAP server in one 
location ought to be possible. We spend extended periods in several 
countries. I keep all my email (collected via fetchmail/exim) on an IMAP 
server (dovecot) at home and it's never been a problem to access it 
remotely from different countries and different devices.

> 2. Given the current method, is there a way of syncronizing folders
> on the two servers?
If you are using plain maildir, then I think you could just use rsync to 
synchronise the two sets of folders and files. I guess you would need to 
exclude from the rsync operation the dovecot-specific files (indexes and 
so forth) and allow dovecot to update these itself to reflect the new 
state of each set of stored messages.

--
John Allen
Bofferdange, Luxembourg
allen at vo.lu



More information about the dovecot mailing list