Hello everybody,
since now I did no replication and spam is delivered into users folder "spambox"
Every night there is a cronjob which deletes spam older than 30 days via something like
"find .... -ctime +30 -delete"
Now I'm going to set up replication (two way) and I thought that
doing "rm" is not a good idea.
So I modified the job to something like
/usr/bin/doveadm expunge -u test1 mailbox INBOX.spambox BEFORE 30d
which works like intended, but I see that on the replication
partner the spam isn't deleted. Even if I do a
doveadm force-resync -u test1 '*'
or log in via imap to the replication partner I still see the old spam.
So my question is:
is this the intended behaviour and I have to run the "doveadm expunge" on both replication partners
or should the deletion via "expunge" being replicated to the partner and I have a misconfiguration
or maybe I hit a bug ?
Regards, Olaf
/etc/dovecot/conf.d/12-replication.conf:
mail_plugins = $mail_plugins notify replication
service aggregator {
fifo_listener replication-notify-fifo {
mode = 0666
}
unix_listener replication-notify {
mode = 0666
}
}
service replicator {
process_min_avail = 1
unix_listener replicator-doveadm {
mode = 0666
}
}
service doveadm {
inet_listener {
port = 1109
}
}
doveadm_password = XXXXX
plugin {
mail_replica = tcp:X.Y.Z.X:1109
}
ATIS - Abt. Technische Infrastruktur, Fakultät für Informatik
Dipl.-Geophys. Olaf Hopp