1

Topic: Change Hostname and Email Domain -- how to change DKIM?

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

I originally created the iredmail server using brand new Hostname domain and Email domain. That did not work well with ISPs because the domains had no history and thus were suspected of Spam. I am now renaming the Hostname and Email domain to be Sub-domains of existing Domains with years of good history.

But when changing the configuration entries in /etc/amavis/conf.d/50-user I notice that the DKIM entries refer to the old domains. How is the best way to align the DKIM Key names and Paths to reflect the new Domains?

Thank you.

----

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

2

Re: Change Hostname and Email Domain -- how to change DKIM?

Have you followed official documents for DKIM?

Setup DNS records for your iRedMail server (A, PTR, MX, SPF, DKIM)
https://docs.iredmail.org/setup.dns.htm … omain-name

Sign DKIM signature on outgoing emails for new mail domain
https://docs.iredmail.org/sign.dkim.sig … omain.html

3

Re: Change Hostname and Email Domain -- how to change DKIM?

ketan.aagja wrote:

Have you followed official documents for DKIM?

Setup DNS records for your iRedMail server (A, PTR, MX, SPF, DKIM)
https://docs.iredmail.org/setup.dns.htm … omain-name

Sign DKIM signature on outgoing emails for new mail domain
https://docs.iredmail.org/sign.dkim.sig … omain.html

Thank you for reminding me of those documents. I have reviewed them and created a new DKIM key for the new domain. I appreciate your help.