On 16 Oct 2014, at 08:43, Bruno Viaris bviaris@lescentaures.fr wrote:
I’m trying to setup dovecot/postfix/getmail for a single user application: I have 3 email accounts and 2 main computers (home and work). I want to have an imap server on each machine with sync/replication so that read/reply/delete status and sorting into folders are identical. This part is achieved via dsync and seems to work.
Messages are fetched from my ISPs with getmail on both machines. The problem I have is that dsync does not see that a message already fetched on both sides is identical, and duplicates it.
dsync isn't supposed to work with this kind of setup. It doesn't try to compare if message contents are identical. It works with GUIDs that Dovecot generates internally when writing the mails to disk.
If you explain me that there is no way to prevent this duplication and that anyway dsync does the right thing, I will probably use getmail only on one machine and let dsync propagate the messages to the other site, but I will miss the redundancy (and some speed) of my wished setup...
I think that's how it needs to be done.