Moving email accounts to new droplet


#1

Hi Guys,
I created a MIAB in digital ocean last week (everything check-marked green).
Today, my boss changed his mind and doesn’t want to use the “currentdomainname” anymore.
He wants to use “newdomainname” now.

I have more than a Hundred accounts in the “currentdomainname” MIAB but no emails.

I’m going to create a new MIAB droplet with the “newdomainname”.

How can I copy/export the email accounts from “currentdomainname” MIAB to “newdomainname” MIAB?

Thanks!


#2

Don’t move to a new droplet!!!

But first, let’s clarify something … are these 100+ email accounts all going to be changed to user@newdomainname ? Or are they accounts on other domains that were just going to be hosted on this MiaB?

If the former, then it is not so simple … if the latter, simply re run sudo mailinabox after changing the glue records at the newdomainname’s registrar and updating the PTR record.

If the latter, you will need to simply reenter everything … OR manipulate the data in the SQLite database.


#3

Yes, all the accounts will be changed to user@newdomainname.


#4

Sorry to hear. :frowning:

You’ll need to reenter the data or find and use a tool to manipulate the data in the SQLite database.


#5

Thanks for the quick reply Alento!


#6

You’re welcome. I guess the good news is that in either case, you do not have to redo the install.

I had a similar issue once … had to re create 57 emails and 12 aliases. It sucked, but didn’t really take too long. The worst part was getting past the annoyance of having to do it again.


#7

If someone wants to throw me like $20, I can write a PHP script to interface with the API to do stuff like this. Mass-migration of user accounts.


#8

I didn’t even think about the API! Brilliant! :slight_smile:


#9

API is a wonderful thing really.


#10

That someone would be me :slight_smile:
How/where?


#11

wait, can we recover destroyed droplets?


#12

I have paypal, https://urgero.org - see my donation link. (It doesn’t need to be $20 btw, donate however you want)

And no - Droplets that are destroyed are gone forever.


#13

I destroyed it 3 minutes ago. :frowning:
It’s OK. I love to create MIABs.
Thanks murgero!


#14

No worries, I might end up making this script anyway since it can be useful. :smiley:

Good luck!


closed #15

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.