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?
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.
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
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.