File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 4
4
helps to create scripts for true multi-node multi-master replication
5
5
6
6
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> `
8
8
* sending a change event to the pipe ` /run/dovecot/syncer/pipe `
9
9
10
10
replication scripts then can watch for changes:
11
- * new files in the ` syncer ` folder
11
+ * new files in the ` syncer/{guid,type} ` folder
12
12
* new events in the ` syncer/pipe ` fifo
13
13
14
14
and invoke ` doveadm sync -g <mailbox_guid> ` to multiple replication nodes
Original file line number Diff line number Diff line change @@ -31,33 +31,39 @@ protocol sieve {
31
31
mail_plugins = $mail_plugins syncer
32
32
}
33
33
protocol doveadm {
34
+ # note: disable in production
34
35
mail_plugins = $mail_plugins syncer
35
36
}
36
37
protocol sieve-filter {
37
38
mail_plugins = $mail_plugins syncer
38
39
}
39
40
40
- # configure syncer settings
41
+ # configure syncer_* settings
41
42
plugin {
42
43
43
- # enable plugin messages and marker file content
44
+ # enable plugin logger messages
44
45
syncer_use_log = yes
45
46
46
- # plugin output folder name inside <mail_home>
47
+ # plugin output folder inside <mail_home>
47
48
syncer_dir = ~/syncer-test
48
- # enable plugin output folder feature
49
+
50
+ # enable plugin output via folder feature
49
51
syncer_use_dir = yes
52
+
50
53
# enable content in plugin guid report marker files
51
54
syncer_use_content = yes
52
55
53
- # plugin output fifo pipe
56
+ # plugin output fifo pipe file
54
57
syncer_pipe = /tmp/dovecot/syncer-pipe/pipe
58
+
55
59
# enable plugin output via fifo/pipe feature
56
60
syncer_use_pipe = yes
57
61
58
62
# TODO
59
63
# syncer_script = /etc/dovecot/syncer-script.sh
60
64
65
+ ###
66
+
61
67
# sieve-filter testing
62
68
sieve_dir = ~/sieve
63
69
sieve = ~/sieve/active.sieve
You can’t perform that action at this time.
0 commit comments