Migrating from A server to B server

Discussions about the usage of KeyHelp.
Post Reply
amarc
Posts: 57
Joined: Thu 7. May 2020, 18:56

Migrating from A server to B server

Post by amarc »

Hello,

I have Debian 12 installation (server A) that holds only mail domain(s) and users.. No webhositng or anything else.

I plan to install Debian 13 on server B and migrate only needed DB tables from A to B to keep domains, accounts,passwords, dkim's, aliases etc,etc.. + rsync /var/mail/vhosts/* content.

Question is: what exact tables I need in this case that hold mail related data? Considering it's Debian 12 to Debian 13 I guess it's not recommended to drop/import whole "keyhelp" database ? Or is it ? (it would be simpler)

Also, can I do same with "roundcube" database ?


Thank you
User avatar
Alexander
Keyweb AG
Posts: 4950
Joined: Wed 20. Jan 2016, 02:23

Re: Migrating from A server to B server

Post by Alexander »

Hello,

you can import the KeyHelp database as well as Roundcube to your new server.
However, you'll need to update the IP addresses or hostnames in the table.

You may want to have a look here: viewtopic.php?p=38734#p38734

DKIM keys are not stored in the database, and are located here: /var/lib/rspamd/keyhelp/dkim/
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
amarc
Posts: 57
Joined: Thu 7. May 2020, 18:56

Re: Migrating from A server to B server

Post by amarc »

Thanks Alexander,

so whole database can be moved to new server ? Also, regarding IP change, I guess you mean panel IP address ? Can I just update value in settings table once I import "old" DB to new server ?

This:

Image

DKIM.. I guess it's just easier to generate new one and update DNS.
Post Reply