Hi,
I am running Dovecot on Debian trixie (dovecot-core/stable,now 1:2.4.1+dfsg1-6 
amd64).
Under the previous version, which I believe was 2.3, I was able to run a sync 
script with the following syntax:

doveadm sync -u <user> remote:<user>@<host.tld>

This worked very well and I was able to sync my mail.
Having upgraded, this syntax produces the following error:

dsync-server: invalid option -- ‘U'
Error: doveadm: Unexpected or incomplete option: -U  

Even though my script doesn’t pass “-U” explicitly I believe that it is passed 
internally:

https://github.com/dovecot/core/blob/main/src/doveadm/doveadm-settings.c#L103
core/src/doveadm/doveadm-settings.c at main · dovecot/core
github.com

Confusingly the online help still displays:

doveadm dsync-server —help 
doveadm dsync-server [-r <rawlog path>] [-T <timeout secs>] [-U] 

Here we can see that the “-U” option (despite all the above) appears to have 
been removed from the code:

https://github.com/dovecot/core/commit/4c04e4c30fd4817a8b0e11d04d9681173f696f41
global: Remove replicator · dovecot/core@4c04e4c
github.com

I have added the following to /etc/dovecot/local.conf:

dsync_remote_cmd = "ssh -l%{login} %{host} doveadm dsync-server -u%{user}”

(Note that I override the “-U”) and sync once again works properly.

Many thanks for your attention,

Dan Whitehouse

_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to