Export users mail

SYSTEM INFORMATION
OS type and version Debian 12
Webmin version 2.510
Virtualmin version 7.40.1
Webserver version 2.4.65
Related packages Postfix 3.7.11 Dovecot 2.3.19.1

Due to a clients supply chain requirements, I need to move one of our mail domains off virtualmin and move it onto 365.

What’s the best way to export the mail off our virtualmin and into a format we can import into 365?

Is there a tool or process we can use?

Thanks in advance

365 has email import tools in the Microsoft 365 admin center and there is always the trusty IMAPSYNC script (and not the web based service by the same name) which can be installed and used free of charge.

There are also various third party services which charge for the migration.

Thank you for that information, especially the IMAPSYNC script.

good luck with imapsync and o365. keep in mind there are special instructions for imapsync+o365, you must read the manual before using it… (had to use davmail in my case.)


o365 is a (the most?) lousy lock-in email service around…, could never understand why people choose it.

2c.

1 Like

I am reading up on the imapsync now. I’ve also had a look at the migration options in exchange online and they seem to have improved significantly since we last tried to use them in anger!!

We are not using 365 through my choice and my boss is actually regretting we didn’t go with my other idea of virtualmin and nextcloud clusters and linux desktops for about 70% of our users!!

1 Like

Yes, there are a number of things that have to be kept in mind - imapsync is not for beginners but it does give one a huge amount of control.

In a recent disaster recovery situation I was able to use imapsync to iteratively restore mailboxes - used 10 simultaneous imapsync instances to givr hundreds of users just their last few days email so that downtime was minimised, and then in the next iteration of sync transferred the remaining mail.

I can’t think of any other script that offers this level of flexibility.

1 Like

imapsync is a great tool (perhaps the best in what it does), no objections on it.
but o365 is a lousy service.

2c