1

Topic: Hostname Change In production Mail Server

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


I need to change my hostname in running mail server.

I will change it in   /etc/hostname  and  /etc/hosts   files.

But, i want to know is there any changes need in iredmail mail config files ( like postfix,dovecot, iredapd, nginx, mysql, amavis.. etc....)

If it is required pls help me the file locations to change the hostname.

Thanks In advance ...

----

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

2

Re: Hostname Change In production Mail Server

FYI: https://docs.iredmail.org/change.server.hostname.html

If something is missing on the doc, please let me know, i will update it.

3

Re: Hostname Change In production Mail Server

ZhangHuangbin wrote:

FYI: https://docs.iredmail.org/change.server.hostname.html

If something is missing on the doc, please let me know, i will update it.


Thanks for the reply..

I have followed the Document and changed  accordingly. After the server restart I have faced the host 0r domain not found error. Then I changed the  domain name in /var/spool/postfix/etc/resolv.conf.


Now I'm facing another issue.


After the host name change All mails are waiting in queue long time

Pls help me to resolve the problem.....

Thanks In Advance

4

Re: Hostname Change In production Mail Server

suresh0890 wrote:

After the host name change All mails are waiting in queue long time

Any related error in Postfix log file?

5

Re: Hostname Change In production Mail Server

ZhangHuangbin wrote:
suresh0890 wrote:

After the host name change All mails are waiting in queue long time

Any related error in Postfix log file?


Hi Zhang,

No error in postfix log.  But, The issue has been gone after few hours of restart. I didn't done any changes.