Is it possible to change MiaB servers?

Hey everyone!

I love MiaB and have been using it for I think two years now. Great stuff. Anyhoo!

With the new U.S. administration getting ready to trample on human rights, I’ve been thinking of moving my mail server somewhere where the U.S. Patriot Act has no effect. Like, on Exoscale. Currently, my server is hosted on DigitalOcean. Is it possible for me to transfer settings and such over to a new server provider? Or should I just set up everything from scratch and then export/import my mail (idk how at the moment)?

I’ve emailed DO and they’ve informed me that they’ve no plans to have a server center in Switzerland (or somewhere related) anytime soon.

Yes, if you simply rsync over the /home/user-data folder and then re-run the mailinabox command, everything should be transferred over fine.

I just looked up rsync and there’s a DO tutorial!

So you’re saying I should install MiaB on my new server, use rsync on my old server to transfer data to the new server, then re-run MiaB on the new server?

Yeah, though I usually run rsync on the new server to pull old server data:

Of course you have to put the SSH key of the new server onto the old server first.

  1. On new server: ssh-keygen -t rsa -b 4096 (then hit enter through prompts)
  2. On new server: cat ~/.ssh/id_rsa.pub (then copy and paste this)
  3. On old server: nano ~/.ssh/authorized_keys (paste the contents from 2., which should go on one line)

Then on the new server you can run:

rsync root@[old-server-ip-address]:/home/user-data/ /home/user-data/

1 Like

OOOH okay, awesome! Thanks a lot for your help! :smiley:

don’t forget to point your domain to your new box!