I'm trying to migrate emails using dovecot's: doveadm sync -1 command.
I have created a file of email addresses (usernames) that I'd like to iterate through and I can do this; however, each time I need to enter the root password for the receiving server. I've gone through documentation for a few days now, but can't find anything to set this up without using IMAP syncing. I'm just trying to automate a backup service for a second server to hold an archive. Any direction is appreciated.
Here's the command I'm using (on the existing/working server): doveadm sync -1 -u user@extension.com remote:mail2.myserver.com
here's what comes up:
root@mail2.myserver.com's password:
Once I manually type in the password, it works.
The issue is that I have dozens of email addresses and need to automate this.