Hello everyone!
I am new to Mailcow and would like to confirm if my DNS setup is sound. I think I got all the bases covered.
I have two domains: example1.com and example2.com
Mailcow is installed on a fresh server with the PTR mail.example1.com
DNS setup taken from Linode, apologies if the format is a bit odd:
example1.com
- mail.example1.com MX priority 10
- mail A 1.2.3.4
- mail AAAA a.b.c.d
- autoconfig CNAME mail.example1.com
- autodiscover CNAME mail.example1.com
- @ TXT v=spf1 mx ip4:1.2.3.4 all
- dkim._domainkey TXT <generated in Mailcow UI>
- _dmarc TXT v=DMARC1; p=reject; rua=mailto:mailauth-reports@example1.com
- imap.tcp SRV priority 0, weight 1, port 143 mail.example1.com (along with the rest of the SRV records in this fashion)
example2.com
- mail.example1.com MX priority 10
- mail.example1.com A 1.2.3.4
- mail.example1.com AAAA a.b.c.d
- autoconfig CNAME mail.example1.com
- autodiscover CNAME mail.example1.com
- @ TXT v=spf1 mx ip4:1.2.3.4 all
- dkim._domainkey TXT <generated in Mailcow UI>
- _dmarc TXT v=DMARC1; p=reject; rua=mailto:mailauth-reports@example2.com
- imap.tcp SRV priority 0, weight 1, port 143 mail.example1.com (along with the rest of the SRV records in this fashion)
Is the above setup correct for both domains?
Do I need to change anything in the records for the second domain (example2.com) to use mail.example2.com when configuring IMAP & SMTP in mail clients? For some reason, it only works if I use mail.example1.com.
I apologise if my post is lengthy and I thank you in advance for your assistance!
Looking forward to your feedback.