kratos-courier refuses multi-mail server
We have one mail server handling mails for lots of domains, a fairly typical case. But now kratos-courier does not accept the alias, meaning we would need to hardcode the main domain of the mailserver which I am not a fan of...
2024-01-22T09:59:41.492 -[-] ERROR Unable to send email using SMTP connection.
audience: application
error: {"message":"x509: certificate is valid for MAILSERVERDOMAIN, not DOMAIN","stack_trace":"stack trace could not be recovered from error type x509.HostnameError"}
file: /project/courier/smtp.go:212
func: github.com/ory/kratos/courier.(*courier).dispatchEmail
message_from: admin@DOMAIN
message_id: a952d3ee-c8fa-42d7-8688-19ef1cd75ccf
message_nid: 35b9f1aa-4ea6-4e67-8057-5baf871627d1
service_name: Ory Kratos
service_version: v0.13.0
smtp_server: DOMAIN:587
smtp_ssl_enabled: false