'hostname "mail.domain.tld" does not match the server certificate' :: SNI support? & how to query cert from Discourse container?

My recommendation would be to use Configure direct-delivery incoming email for self-hosted sites with Mail-Receiver rather than pop3.