1

Topic: DNS & Multiple Domain Configuration

==== Required information ====
- iRedMail version (check /etc/iredmail-release): ) 0.9.4
- Linux/BSD distribution name and version: CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====

Presently we operate a Exchange Server with 30 Domains. I have set the FQDN of the Server to mail.domain.com and added the 30 accepted domains into Exchange (domain.com, domain1.com, domain2.com etc...). At each ISP I have set the MX record of every domain to mail.domain.com and have the router port forward traffic to the Mail Server. Works with no issues.

MX  > mail.domain.com
A     > mail.domain.com. > 5.10.xx.xx

So how can I accomplish this with iRedMail as what I still havn't quite grasped here is where many of the DNS zone records would sit for multiple domains in iRedMail.

The CentOS server for example is called
FQDN: mail.domain.com
Hostname: mail

iRedMail has say 4 domains
domain.com, domain1.com, domain2.com, domain3.com

All domains will have ISP DNS records pointing to the mail.domain.com with ptr resolving to the Gateway IP. The router will in turn port forward on all traffic to the iRedMailServer. correct??

At the ISP
MX  > mail.domain.com
A     > mail.domain.com. > 5.10.xx.xx

So my question is where would I be setting the following records?

mail.domain.com => CNAME: domain.com

domain.com      => TXT *2 for DKIM and SPF
domain.com      => SPF
domain.com      => DMARC

Thanks for any pointers.. or suggestions.

----

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

2

Re: DNS & Multiple Domain Configuration

domain.com:
MX Record                                   - MX 10 mail.domain.com.
A Record for mail.domain.com    - mail  A  1.2.3.4
PTR Record at your ISP 1.2.3.4 -> mail.domain.com
SPF for domain.com                     - domain.com.  TXT  "v=spf1 ip4:1.2.3.4 ?all"
DKIM for domain.com                  - dkim.domainkey.domain.com.  TXT  <dkim for domain.com>

domain1.com
MX Record                                   - MX 10 mail.domain.com.
SPF for domain1.com                   - domain1.com.  TXT   "v=spf1 ip4:1.2.3.4 ?all"
DKIM for domain1.com                - dkim.domainkey.domain1.com. TXT <dkim for domain1.com>

domain2.com
MX Record                                   - MX 10 mail.domain.com.
SPF for domain1.com                   - domain2.com.  TXT   "v=spf1 ip4:1.2.3.4 ?all"
DKIM for domain1.com                - dkim.domainkey.domain2.com. TXT <dkim for domain2.com>

And so on... And you dont need the CNAME. Hope this helps...

3

Re: DNS & Multiple Domain Configuration

Thank you for that and just to confirm am i correct in saying that the domain1.com & Domain2.com SPF & DKIM records are set at the hosting company that manage the DNS Zone file or is that managed by the iRedMail config file locally.

Once again thanks

4

Re: DNS & Multiple Domain Configuration

All DNS records are set at the hosting company that manage the DNS zone file. iRedMail doesn't setup DNS server locally.