I have created a mail server that has several domains. There is one primary domain that has PTR records etc. When I setup recommended settings for other domains they show the primary domain for smtp/imap servers during autoconfig/autodiscovery (e.g. in Thunferbird).
Is it possible to setup secondary domain so its domain name is used for the send/receive server?
Generally at the moment all domains are pointing to the same server (A and AAAA records) and I set up ssl certificate acquisition the way I can use UI in any mail.* subdomain of the added domains. That is there is no problem with ssl certificates loading e.g. mail.primary.tld or mail.secondary.tld.
I used to use my custom domains on some hostings with provided email services for smtp/imap server. Just want to understand how it is possible to configure.