Topic: Preferred way to set up MX DNS for multiple domains and SSL question
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Ubuntu 14.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue: ----
====
Hey,
I've just got a quick question about setting the correct MX DNS records when using multiple domains.
Let's assume my mailserver is mail.myfirstdomain.com
The DNS records for myfirstdomain.com are:
mail A [IP of mailserver]
@ MX 10 mail.myfirstdomain.com
(... SPF, DKIM records)
Which of the following two variants is the best for the second domain myseconddomain.com?
Approach 1:
mail A [IP of mailserver]
@ MX 10 mail.myseconddomain.com
(... SPF, DKIM records)
or Approach 2:
@ MX 10 mail.myfirstdomain.com
(... SPF, DKIM records)
I'd prefer the first approach, but was wondering whether this could cause any problems when sending / receiving mails and if it has any disadvantages.
Also, the first variant would allow connecting to mail.myseconddomain.com for webmail and IMAP for example. Would a SAN certificate with both domains in it be fine for the mailserver software, or do I need seperate certificates for each domains (and additional IPs)?
Thank you for your help.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.