1 (edited by ired_mania 2020-01-26 13:40:54)

Topic: change domain name without change of users

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

hi
I am going to change my domain name, and read the link below.
https://docs.iredmail.org/change.server.hostname.html
should I recreate all my users in iredadmin? Is there any way to change just their domain?
is there a way to use canonical name?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: change domain name without change of users

Currently you have to go through all SQL/LDAP data to update domain name.

3

Re: change domain name without change of users

You can try my change domain script, however please be aware that this only changes SQL. You need to rename the maildir on the file system for each user, and update any client devices, to reflect the new domain name.

https://github.com/jeekkd/iRedMail-scri … -domain.sh

Warning: As always before SQL changes make sure you take a backup, if a mistake happens you can restore.