Imapsync from CLI - schedule

Daku

Verified User
Joined
Sep 24, 2015
Messages
12
Hello,

Is it possible to push local sync via imapsync binary ?
Same as on panel for local account but i need to schedule it.

i've have about 1500 mail accounts on different servers to import every few hours, and i make CLI script for it but i need both passwords.

Is there any method to sync to Local server w/o password ?


Thanks,
Daku
 
on destination i have ssh, on source only mail + password.
Users changes thier passwords.
DA allow import mails to " Local " without password, is there any way to use direct script of imapsync w/o password on local side ?
 
i've readed it, and didn't find usefull info about migrate to local server w/o auth

Only one about --authuser2 which credentials to use ? user with admin rights ? dovecot master ? where to find it.
I see that i need dovecot master account add or change password, none info on DA page.
 
Last edited:
i've readed it, and didn't find usefull info about migrate to local server w/o auth

The "Internal sign-in" authentication in DirectAdmin interface is offered as the control panel can inject a random one-time password to any existing email account.

As an alternative to imapsync CLI you might try DirectAdmin API. Here can you find some info: https://petstore.swagger.io/?url=https://demo.directadmin.com:2222/static/swagger.json#/Imapsync I see it lacks information on "Internal sign-in" authentication in API. If you want to give it a try, you can specify an empty password and "sso"=true:

JSON:
"to":{"account":"userbob","domain":"example.net","password":"","sso":true}

Another random guide from Internet: https://www.howtoforge.com/how-to-migrate-mailboxes-between-imap-servers-with-imapsync

I provided possible ways to complete the task. That's up to you to find out how to use any of them.
 
Back
Top