Would that work at all? The mail clients (Outlook et al) will look for autoconfig / autodiscover information based on (the domain name associated with) the email address entered by the user… don’t know for sure how the email client can be made to refer to the hostname instead of the domain name. Let us know if you find a way to make this work.
I think that’s the right idea - setup a Lets Encrypt certificate - by pointing domain to the Virtualmin server IP for mail.domain.tld and also autoconfigure.domain.tld and autodiscover.domain.tld.
Mhh, mail.domain.tld doesn’t appear at my Logs if I create an new Virtualserver.
Do you have an Idea, where I can check, why this entry for mail does not appear here?
BTW: Where would I found this “autoconfig” and “autodiscover” which is generated from Virtualmin? Is it only at autoconfig.domain.tld and autodiscover.domain.tld?
If I open that page, I was only piped to an 404 error of my webpage.
Did I need to configure my nginx to be able to access this pages?
I would hazard a guess - and I could be completely wrong about this - that older base installs of Virtualmin do not include mail.domain.tld as part of the default set of domains for which a SSL certificate is requested via Let’s Encrypt even when the base install of Virtualmin is upgraded to the current version; OTOH a newer base install (say, Virtualmin version 6.11 onwards) has mail.domain.tld as part of the default set of domains for which a SSL certificate is requested via Let’s Encrypt.
Weird, and I do believe this is a Virtualmin quirk. Again, I could be wrong and no documentation (of which I am aware) exists to confirm this but it is what I have empirically observed. So, @suther, is your install of Virtualmin an old one which you have kept on upgrading? If so, it might explain why you do not see mail.domain.tld as part of the set of domains in your install of Virtualmin while in the example I have provided from a recent install of Virtualmin, the domain is part of the set for which a SSL certificate is requested via Let’s Encrypt.
You can enable and disable this via Virtualmin -> Email Settings -> Mail Client Configuration