dsync multiple mailboxes per connection?

Plutocrat plutocrat at gmail.com
Thu May 21 07:06:13 EEST 2020


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 at 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 at remoteserver.com doveadmn dsync-server -u otheruser1
doveadm sync -u user2 ssh user at remoteserver.com doveadmn dsync-server -u otheruser2
doveadm sync -u user3 ssh user at remoteserver.com doveadmn dsync-server -u otheruser3

P.


More information about the dovecot mailing list