Replication sieve scripts.

Michael Grimm trashcan at ellael.org
Sat Jul 23 16:17:58 UTC 2016


Stephan Bosch <stephan at rename-it.nl> wrote:

> Only the user's scripts in the ~/sieve directory and the active script marked by ~/.dovecot.sieve (symlink) are replicated.

I do have those files in those directories:

	KB> la /var/mail/.homedirs/mike/.dovecot.sieve /var/mail/.homedirs/mike/.sieves/default.sieve
	lrwx------  1 vmail  dovecot  uarch   21 Jul 21 19:38 /var/mail/.homedirs/mike/.dovecot.sieve -> .sieves/default.sieve
	-rw-------  1 vmail  dovecot  uarch 5898 Jul 21 19:38 /var/mail/.homedirs/mike/.sieves/default.sieve

	MW> la /var/mail/.homedirs/mike/.dovecot.sieve /var/mail/.homedirs/mike/.sieves/default.sieve
	lrwx------  1 vmail  dovecot  uarch   21 Jul 21 19:38 /var/mail/.homedirs/mike/.dovecot.sieve -> .sieves/default.sieve
	-rw-------  1 vmail  dovecot  uarch 5898 Jul 21 19:38 /var/mail/.homedirs/mike/.sieves/default.sieve

	KB> ls -al default
	-rw-r--r--  1 root  wheel  5909 Jul 21 19:39 default

	KB> doveadm sieve put -u mike -a default < default

I do see traffic arriving at MW when listening on the defined port for synchronisation (tcpdump), but the new default file at KB doesn't become synchronized:

	MW> la /var/mail/.homedirs/mike/.dovecot.sieve /var/mail/.homedirs/mike/.sieves/default.sieve
	lrwx------  1 vmail  dovecot  uarch   21 Jul 21 19:38 /var/mail/.homedirs/mike/.dovecot.sieve -> .sieves/default.sieve
	-rw-------  1 vmail  dovecot  uarch 5898 Jul 21 19:38 /var/mail/.homedirs/mike/.sieves/default.sieve

If I do remove that file at MW and repeat "doveadm sieve put" at KB, I do see synchronization succeed:

	MW> rm /var/mail/.homedirs/mike/.sieves/default.sieve

	MW> la /var/mail/.homedirs/mike/.dovecot.sieve /var/mail/.homedirs/mike/.sieves/default.sieve
	ls: /var/mail/.homedirs/mike/.sieves/default.sieve: No such file or directory
	lrwx------  1 vmail  dovecot  uarch 21 Jul 21 19:38 /var/mail/.homedirs/mike/.dovecot.sieve -> .sieves/default.sieve

	KB> doveadm sieve put -u mike -a default < default

	KB> la /var/mail/.homedirs/mike/.dovecot.sieve /var/mail/.homedirs/mike/.sieves/default.sieve
	lrwx------  1 vmail  dovecot  uarch   21 Jul 21 19:40 /var/mail/.homedirs/mike/.dovecot.sieve -> .sieves/default.sieve
	-rw-------  1 vmail  dovecot  uarch 5909 Jul 21 19:40 /var/mail/.homedirs/mike/.sieves/default.sieve

	MW> la /var/mail/.homedirs/mike/.dovecot.sieve /var/mail/.homedirs/mike/.sieves/default.sieve
	lrwx------  1 vmail  dovecot  uarch   21 Jul 21 19:40 /var/mail/.homedirs/mike/.dovecot.sieve -> .sieves/default.sieve
	-rw-------  1 vmail  dovecot  uarch 5909 Jan  1  1970 /var/mail/.homedirs/mike/.sieves/default.sieve

The date of the file puzzles me, though. 

JFTR: This is a recent FreeBSD and ZFS.
JFTR: The logfiles do show the very same messages as Claud has shown in his last mail.

Regards,
Michael





More information about the dovecot mailing list