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
}
--
Karlsruher Institut f?r Technologie (KIT)
ATIS - Abt. Technische Infrastruktur, Fakult?t f?r Informatik
Dipl.-Geophys. Olaf Hopp
- Leitung IT-Dienste -
Am Fasanengarten 5, Geb?ude 50.34, Raum 009
76131 Karlsruhe
Telefon: +49 721 608-43973
Fax: +49 721 608-46699
E-Mail: Olaf.Hopp at kit.edu
www.atis.informatik.kit.edu
www.kit.edu
KIT - Die Forschungsuniversit?t in der Helmholtz-Gemeinschaft
Das KIT ist seit 2010 als familiengerechte Hochschule zertifiziert.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5212 bytes
Desc: S/MIME Cryptographic Signature
URL:
<https://dovecot.org/pipermail/dovecot/attachments/20200330/2d132277/attachment.p7s>
Nobody ? :-( On 3/30/20 5:26 PM, Olaf Hopp wrote:> 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 > } > >-- Karlsruher Institut f?r Technologie (KIT) ATIS - Abt. Technische Infrastruktur, Fakult?t f?r Informatik Dipl.-Geophys. Olaf Hopp - Leitung IT-Dienste - Am Fasanengarten 5, Geb?ude 50.34, Raum 009 76131 Karlsruhe Telefon: +49 721 608-43973 Fax: +49 721 608-46699 E-Mail: Olaf.Hopp at kit.edu www.atis.informatik.kit.edu www.kit.edu KIT - Die Forschungsuniversit?t in der Helmholtz-Gemeinschaft Das KIT ist seit 2010 als familiengerechte Hochschule zertifiziert. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5212 bytes Desc: S/MIME Cryptographic Signature URL: <https://dovecot.org/pipermail/dovecot/attachments/20200404/9c5ec391/attachment.p7s>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
Can you provide doveconf -n and try turning on mail_debug=yes on both ends
and try doveadm -Dv expunge ....
</div>
<div>
<br>
</div>
<div>
Aki
</div>
<blockquote type="cite">
<div>
On 04/04/2020 20:03 Olaf Hopp <
<a
href="mailto:olaf.hopp@kit.edu">olaf.hopp@kit.edu</a>>
wrote:
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
Nobody ? :-(
</div>
<div>
<br>
</div>
<div>
On 3/30/20 5:26 PM, Olaf Hopp wrote:
</div>
<blockquote type="cite">
<div>
Hello everybody,
</div>
<div>
since now I did no replication and spam is delivered into users folder
"spambox"
</div>
<div>
Every night there is a cronjob which deletes spam older than 30 days via
something like
</div>
<div>
"find .... -ctime +30 -delete"
</div>
<div>
Now I'm going to set up replication (two way) and I thought that
</div>
<div>
doing "rm" is not a good idea.
</div>
<div>
So I modified the job to something like
</div>
<div>
/usr/bin/doveadm expunge -u test1 mailbox INBOX.spambox BEFORE 30d
</div>
<div>
which works like intended, but I see that on the replication
</div>
<div>
partner the spam isn't deleted. Even if I do a
</div>
<div>
doveadm force-resync -u test1 '*'
</div>
<div>
or log in via imap to the replication partner I still see the old spam.
</div>
<div>
<br>
</div>
<div>
So my question is:
</div>
<div>
is this the intended behaviour and I have to run the "doveadm
expunge" on both replication partners
</div>
<div>
or should the deletion via "expunge" being replicated to the
partner and I have a misconfiguration
</div>
<div>
or maybe I hit a bug ?
</div>
<div>
<br>
</div>
<div>
Regards, Olaf
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
/etc/dovecot/conf.d/12-replication.conf:
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
mail_plugins = $mail_plugins notify replication
</div>
<div>
service aggregator {
</div>
<div>
fifo_listener replication-notify-fifo {
</div>
<div>
mode = 0666
</div>
<div>
}
</div>
<div>
unix_listener replication-notify {
</div>
<div>
mode = 0666
</div>
<div>
}
</div>
<div>
}
</div>
<div>
service replicator {
</div>
<div>
process_min_avail = 1
</div>
<div>
unix_listener replicator-doveadm {
</div>
<div>
mode = 0666
</div>
<div>
}
</div>
<div>
}
</div>
<div>
service doveadm {
</div>
<div>
inet_listener {
</div>
<div>
port = 1109
</div>
<div>
}
</div>
<div>
}
</div>
<div>
doveadm_password = XXXXX
</div>
<div>
plugin {
</div>
<div>
mail_replica = tcp:X.Y.Z.X:1109
</div>
<div>
}
</div>
<div>
<br>
</div>
<div>
<br>
</div>
</blockquote>
<div>
<br>
</div>
<div>
--
</div>
<div>
Karlsruher Institut für Technologie (KIT)
</div>
<div>
ATIS - Abt. Technische Infrastruktur, Fakultät für Informatik
</div>
<div>
<br>
</div>
<div>
Dipl.-Geophys. Olaf Hopp
</div>
<div>
- Leitung IT-Dienste -
</div>
<div>
<br>
</div>
<div>
Am Fasanengarten 5, Gebäude 50.34, Raum 009
</div>
<div>
76131 Karlsruhe
</div>
<div>
Telefon: +49 721 608-43973
</div>
<div>
Fax: +49 721 608-46699
</div>
<div>
E-Mail:
<a
href="mailto:Olaf.Hopp@kit.edu">Olaf.Hopp@kit.edu</a>
</div>
<div>
www.atis.informatik.kit.edu
</div>
<div>
<br>
</div>
<div>
www.kit.edu
</div>
<div>
<br>
</div>
<div>
KIT - Die Forschungsuniversität in der Helmholtz-Gemeinschaft
</div>
<div>
<br>
</div>
<div>
Das KIT ist seit 2010 als familiengerechte Hochschule zertifiziert.
</div>
</blockquote>
<div>
<br>
</div>
<div class="io-ox-signature">
<pre>---
Aki Tuomi</pre>
</div>
</body>
</html>