Rename a domain
How can I change a domain name in SurgeMail?
- Stop Surgemail
- Make a backup of nwauth.* and surgemail.ini
- If using nwauth, then Run ./nwauth -rename old.domain.name new.domain.name (Run this as user 'mail' from the surgemail home path)
- If not using nwauth change the domain names in your database for each user somehow š
- Edit surgemail.ini and change the vdomain name=āOLD.DOMAIN.NAMEā TO āNEW.DOMAIN.NAMEā
- And add āhost_alias āold.domain.nameā if desired.
- Generally you shouldn't change/update mailbox_path unless you plan on renaming the physical folder to match.
- Open 'domuser.dat' with a text editor and search/replace the old domain for the new domain.
Was this article helpful?