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?