NethServer Version: current
Module: samba
I need to move the samba domain to another server but when I try to add an external domain it says the domain name is already in use, which is true.Is it safe to delete the internal domain without losing any mail and then to add an external source for the same domain?
I have already synchronised all accounts to the new server but am stuck on this step.
I can’t find any information in the documentation or here in the forum for this scenario.
I only use NS8 for mail and authentication.
Yes, at least for Mail this is possible: the mail storage is keyed by the user name, regardless of whether the account comes from Samba AD, the built-in OpenLDAP, or an external LDAP source. As long as the user names on the new domain match the existing ones exactly, mailboxes will be picked up again once the Mail module is bound to the new (external) user domain.
A few precautions before deleting the internal Samba domain:
- Run a full backup of the Mail instance (and a cluster backup too), so you can roll back if anything goes wrong.
- Double-check that all users and groups were synchronized: if you use groups for shared mailbox ACLs or mail aliases, their names must match as well.
- After adding the external domain, verify the Mail module settings point to it and that authentication works for a test user before letting real traffic in.
@davidep I have one more question, will that have any impact on my access to the UI What will happen in a worst case scenario as when I have removed the old domain and before I have added the new?
No, it will have no impact on cluster-admin. Access to cluster-admin does not depend on installed user domains: they are separate authentication domains.
If the SMTP server is publicly accessible, for a short period users of your domain will not be found. Mail should be rejected with a temporary error. For additional safety, to avoid permanent SMTP errors, close port 25 on your external firewall during the domain migration.