- C 91.2%
- Shell 3.3%
- Makefile 3.1%
- M4 2.4%
Introduction
This is wormhole, a project to bring back Dovecot's replication feature for Dovecot 2.4 and later. It is mainly a fork of the Dovecot 2.3 replication code ported to Dovecot 2.4. The forked code was removed by the Dovecot maintainers from Dovecot starting with Version 2.4. This project aims to provide the feature as a plugin for Dovecot 2.4 and higher.
Installation
To install wormhole you first have to install Dovecot or at least the Dovecot development package from your distribution or the Dovecot community repositories. After that you compile and install the project with (assuming you have Dovecot installed in /usr):
./configure --prefix=/usr
make
make check # optional
make install
Patch for Dovecot
For best backward compatibility, you can find a patch for Dovecot in
the patches directory. This patch will add a hook system do
doveadm's sync and dsync-server commands. These hooks will be
used by wormhole to extend sync and dsync-server with replication
specific features. The availability of this hooks is autodetected by
configure.
If you do not need backward compatibility with existing Dovecot-2.3
replication servers, you don't need this patch. It is even possible to
run mixed 2.3/2.4 setups without this patch but you will have limited
support for noreplicate setting.
Configuration
Setting up replication works the same way as before in Dovecot 2.3. Including the full documentation for replication in this project is on the roadmap.
Additional settings
To allow replication with Dovecot 2.3 servers without patching
Dovecot 2.4, there is a config setting
replication_dsync_command. This can be set to dsync-server to
inform the replication service which doveadm command to us on the
remote (2.3) server side when starting replication.
Authors and acknowledgements
First I want to thank Timo Sirainen and his team from Dovecot for providing the replication feature in Dovecot since 2012. Most of the code in this project is based on their work!
Maintainer of this project and author of the new code to bring replication back into Dovecot 2.4:
- Patrick Cernko pcernko@mpi-klsb.mpg.de
License
Wormhole is released under LGPLv2.1 (see COPYING) similar to the forked code of Dovecot's replication feature.
Questions and Contributing
If you have questions or want to report issues or contribute, you can do so on Codeberg:
The official website of this project is: https://people.mpi-klsb.mpg.de/~pcernko/dovecot-replication.shtml