21 May
2020
21 May
'20
7:06 a.m.
On 20/05/2020 22.47, Sami Ketola wrote:
We’re transferring users between servers and want to use dsync to transfer the mail; ideally we’d like to avoid creating a separate TCP connection per user.
Would writing a script to process each user sequentially be an option?
Like ...
for USER in user1 user2 user3 user4 do doveadm sync -u $USER ssh user@remoteserver.com doveadmn dsync-server -u $USER done
Or if that's not possible, just write them out longhand:
doveadm sync -u user1 ssh user@remoteserver.com doveadmn dsync-server -u otheruser1 doveadm sync -u user2 ssh user@remoteserver.com doveadmn dsync-server -u otheruser2 doveadm sync -u user3 ssh user@remoteserver.com doveadmn dsync-server -u otheruser3
P.