How to set MX entry for subdomain?

Hi,

New to Hestia. And struggling with Mails on subdomains.

When creating a subdomain in the Mail tab, it seems to expect the MX entry for this domain to be explicitely set to mail.subdomain.domain.tld, which seems odd. Before hestia, I only used one MX entry per main domain, which also handles any subdomain mail.

Is there any permanent way in hestia to set this up? Am I missing something? Does it have to do with hestia at all?

Thanks and all the best,
Stefan

Hi,

Hestia treats each mail domain as independent, whether it’s a main domain or subdomain.

Anyway, if you already have a mail domain configured for domain.tld, you can use the MX record mail.domain.tld for subdomain.domain.tld. I’m saying this because you will need valid certificates, so it’s imperative that Exim uses the certificate for mail.domain.tld if you want to change the MX record.

But sincerely, I would use the Hestia way.

1 Like

Thank you. I will think about this. As far as I understood, this is purely a DNS topic. I cannot use hestia to manage DNS, so I will have to set this up for each subdomain with my provider. Quite some job :slight_smile:

Cheers, Stefan

Keep in mind that you must also create the required records for SPF, DMARC and DKIM (Exim will use the private key generated for the mail subdomain, so you must add the correct TXT record to publish the public key for DKIM).

If your DNS provider allows you to add/modify/delete records using an API, you could automate this.

Yes, that’s what I meant with “Quite some job”. And no, my provider does not provide an API (yet?). But it’s really cheap :grin:

Cheers, Stefan

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.