2
Bulk Import Mail or Remote IMAP
Question asked by Scarab - 10/12/2020 at 3:57 PM
Unanswered
We have over a thousand users we will be migrating soon from OpenSRS to SmarterMail. We figured out how to automate account creation, which really isn't necessary since there is the User Import from CSV which works flawlessly already, but looking at the SmarterMail API there doesn't appear to be any way to script out Mailbox Migration or configuring Email Retrieval/Remote IMAP programmatically.

I calculated that even with OCD it would take 49.1 continuous hours to manually copypasta the information in the Web GUI for 1000 accounts for either migration or retrieval.

Anyone know an easier way to do this in bulk other than manually?

Many thanks ahead of time!

1 Reply

Reply to Thread
1
Sébastien Riccio Replied
Hi Scarab,

It looks to me that there are API calls for this:

When in a user impersonatig context:
(probably with "isMailboxMigration" set to true)

More globally, check the "Mailbox migration" section of the Users settings API:

Another option could be to generate a batch from your csv data that calls the imapsync (or any other imap migration) tool for each mailbox to migrate.

Kind regards
Sébastien Riccio
System & Network Admin

Reply to Thread