Skip to content

Commit ff6487d

Browse files
cleanup
1 parent 4da99b9 commit ff6487d

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
helps to create scripts for true multi-node multi-master replication
55

66
plugin listens on mailbox changes and reports them by:
7-
* writing a marker file `<mail_home>/syncer/<mailbox_guid>`
7+
* writing a marker file `<mail_home>/syncer/guid/<mailbox_guid>`
88
* sending a change event to the pipe `/run/dovecot/syncer/pipe`
99

1010
replication scripts then can watch for changes:
11-
* new files in the `syncer` folder
11+
* new files in the `syncer/{guid,type}` folder
1212
* new events in the `syncer/pipe` fifo
1313

1414
and invoke `doveadm sync -g <mailbox_guid>` to multiple replication nodes

test/etc/dovecot/dovecot.conf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,33 +31,39 @@ protocol sieve {
3131
mail_plugins = $mail_plugins syncer
3232
}
3333
protocol doveadm {
34+
# note: disable in production
3435
mail_plugins = $mail_plugins syncer
3536
}
3637
protocol sieve-filter {
3738
mail_plugins = $mail_plugins syncer
3839
}
3940

40-
# configure syncer settings
41+
# configure syncer_* settings
4142
plugin {
4243

43-
# enable plugin messages and marker file content
44+
# enable plugin logger messages
4445
syncer_use_log = yes
4546

46-
# plugin output folder name inside <mail_home>
47+
# plugin output folder inside <mail_home>
4748
syncer_dir = ~/syncer-test
48-
# enable plugin output folder feature
49+
50+
# enable plugin output via folder feature
4951
syncer_use_dir = yes
52+
5053
# enable content in plugin guid report marker files
5154
syncer_use_content = yes
5255

53-
# plugin output fifo pipe
56+
# plugin output fifo pipe file
5457
syncer_pipe = /tmp/dovecot/syncer-pipe/pipe
58+
5559
# enable plugin output via fifo/pipe feature
5660
syncer_use_pipe = yes
5761

5862
# TODO
5963
# syncer_script = /etc/dovecot/syncer-script.sh
6064

65+
###
66+
6167
# sieve-filter testing
6268
sieve_dir = ~/sieve
6369
sieve = ~/sieve/active.sieve

0 commit comments

Comments
 (0)