No - this doesn’t work for me. I’ve tried the following in ADDITIONAL_SAN= and ADDITIONAL_SERVER_NAMES= in mailcow.conf:
- Left completely blank, as default
- Wildcard entries added manually in ADDITIONAL_SAN=
e.g. autoconfig.*,autodiscover.*
- Wildcard entries added manually in ADDITIONAL_SAN= and ADDITIONAL_SERVER_NAMES=
e.g. autoconfig.*,autodiscover.*
- All domains entered in full in ADDITIONAL_SAN=
e.g. autoconfig.maildomain1.com,autodiscover.maildomain1.com
- All domains entered in full in ADDITIONAL_SAN= and ADDITIONAL_SERVER_NAMES=
e.g. autoconfig.maildomain1.com,autodiscover.maildomain1.com
None of these make any difference. Neither does either running with the Force flag added or not.
I have 5 domains configured and working for mail, as well as my main domain - mail.example.com so that’s 6 domains in total. For each mail domain I have CNAME records as follows:
autoconfig 300 IN CNAME mail.example.com.
autodiscover 300 IN CNAME mail.example.com.
When tested with dig every domain resolves to the A and AAAA record correctly. I think these 2 DNS records are all that is required for an ACME HTTP-01 challenge to succeed with each SAN domain.
Every single time I restart acme-mailcow the acme-tiny system runs, finds that there are no new certs to create, and ends:
Certificates were successfully validated, no changes or renewals required, sleeping for another day.
Or, if a forced renewal:
Certificates were successfully renewed where required, sleeping for another day.
Different users report different issues - IdrisK found that it was necessary to write out the whole FQDN. maddler found that entering the wildcards worked. Both of these are contrary to the documentation that states that these 2 wildcards are automatically entered. So there is clearly an issue.
Does someone know what is really going on at all? Maybe there is some config stuck in the database, or an issue with the local Unbound DNS server passing the domain table? Anything else anyone can suggest to troubleshoot please?