Ich habe mir mal auf zwei alten Servern je einen E-Mailserver mit postfix/dovecot aufgesetzt. Auf dem ersten Server kommen die E-Mails rein, und im Ordner /var/vmail/mailboxes/domain.com/info/mail/cur habe ich auch die einzelnen E-Mails. Das Postfach ist auf beiden Servern eingerichtet.
Nun habe ich mir mal mit einer älteren Anlitung dsync eingerichtet.
Auf Server1 wo die Mails reinkommen, habe ich in der dovecot.conf folgendes erweitert:
mail_plugins um notify replication und zu unterst folgendes eingefügt:
# Both the client and the server need to have a shared secret
doveadm_password = replication_password
# configure how many dsyncs can be run in parallel (10 by default)
replication_max_conns = 10
service aggregator {
fifo_listener replication-notify-fifo {
user = vmail
mode = 0666
}
unix_listener replication-notify {
user = vmail
mode = 0666
}
}
service replicator {
unix_listener replicator-doveadm {
mode = 0666
}
}
service doveadm {
user = vmail
inet_listener {
port = 4711
}
}
service config {
unix_listener config {
user = vmail
}
}
# use tcp:ip as the dsync target
plugin {
replication_full_sync_interval = 1 hours
mail_replica = tcp:192.168.0.106:4711
}
protocol imap {
mail_plugins = quota imap_quota notify replication
}
Display More
Auf Server zwei wieder mail_plugins erweitert, und folgendes am ende eingefügt:
# Both the client and the server need to have a shared secret
doveadm_password = replication_password
# configure how many dsyncs can be run in parallel (10 by default)
replication_max_conns = 10
service aggregator {
fifo_listener replication-notify-fifo {
user = vmail
mode = 0666
}
unix_listener replication-notify {
user = vmail
mode = 0666
}
}
service replicator {
unix_listener replicator-doveadm {
mode = 0666
}
}
service doveadm {
user = vmail
inet_listener {
port = 4711
}
}
service config {
unix_listener config {
user = vmail
}
}
# use tcp:ip as the dsync target
plugin {
replication_full_sync_interval = 1 hours
mail_replica = tcp:192.168.0.105:4711
}
protocol imap {
mail_plugins = quota imap_quota notify replication
}
Display More
Als IP habe ich jeweils die normale InternetIP des Servers verwendet. Die erste Synchronisation ging auch wunderbar. Sobald ich nun jedoch eine weitere E-Mail sende taucht diese nie auf Server 2 auf.
Auf Server1:
doveadm replicator status '*'
username priority fast sync full sync success sync failed
info@domain.com none 00:11:06 00:12:02 00:11:06 -
Auf Server2:
doveadm replicator status '*'
username priority fast sync full sync success sync failed
info@domain.com none 00:11:33 00:12:30 00:12:29 -
Ich weiss nicht ob es mit dem Fehler zusammenhängt den ich seit der Einrichtung erhalte. Eine Lösung dazu habe ich jedoch noch nicht gefunden:
tail -f /var/log/syslog
Dec 16 15:44:57 mail dovecot: auth-worker: Error: 7fffd1a6d000-7fffd1a8e000 rw-p 00000000 00:00 0 [stack]
Dec 16 15:44:57 mail dovecot: auth-worker: Error: 7fffd1b12000-7fffd1b14000 r--p 00000000 00:00 0 [vvar]
Dec 16 15:44:57 mail dovecot: auth-worker: Error: 7fffd1b14000-7fffd1b16000 r-xp 00000000 00:00 0 [vdso]
Dec 16 15:44:57 mail dovecot: auth-worker: Error: ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Dec 16 15:44:57 mail dovecot: auth-worker: Fatal: master: service(auth-worker): child 1355 killed with signal 6 (core dumps disabled - https://dovecot.org/bugreport.html#coredumps)
Vielleicht hat ja noch jemand einen Anhaltspunkt für mich.