I have a mailcow server working for my primary domain: mail.domain1.tld with letsencrypt and everything works fine.
I added two other domains (mail.domain2.tld, mail.domain3.tld), set up correctly the domain.txt domains.txt files to include other domains. Same cert is issued correctly for all domains (I issued same cert for all domains to let an easy configuration).
The webmail is working correctly for all domains, so everything works fine about sending and receiving.
The problem is I cannot configure correctly email clients (like thunderbird) nor autodiscover for the others domains I added (mail.domain2.tld, mail.domain3.tld).
I get a message "untrusted cert" for imap.domain2.tld.
The first domain (mail.domain1.tld) works fine instead.
How should I configure autodiscover for mail.domain2.tld and mail.domain3.tld to correctly get the right settings?
Or am I missing some server or dns configuration?