Your question
I may have misconfigured Stalwart with an unsupported setup and hope @helpbot with its excellent source-level understanding can help me out.
My setup
My Domain Name is set to m.filts.net and Default Hostname is set to madalena.filts.net, which matches the Reverse DNS records. IMHO, that should be a legal way to set up a mailserver.
I have a DNS Provider configured and am using that for ACME Dns01 and automatic DNS management.
I am using 0.16.18 from a checkout a couple of days ago.
The issue
The https certificate is only for madalena.filts.net, while it should also include mta-sts.m.filts.net, likely among others.
Looking at the source
The important function appears to be build_domains in network/acme/order.rs in the common crate. Judging from the result, hostnames appears to be non-empty for me, likely containing madalena.filts.net.
The only caller of that function is acme_renew in renew.rs, which sets the hostnames argument to subject_alternative_names and where those are set, I don’t understand.
Looking further at build_domains, even if I were to hit the Dns01 branch, I would be missing a certificate for Default Hostname, as that is where all the DNS records point to.
Questions
Should my setup be supported or should I change Reverse DNS and Default Hostname to m or m.filts.net? How would that result in an empty hostnames argument, so that a wildcard certificate gets ordered? That is where I don’t understand the source.
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on