Maybe you need to use the mail hostname, it’s shown on the status page:
Without valid cert it worked with following settings when mail is on the same node as nextcloud.
Maybe you need to use the mail hostname, it’s shown on the status page:
Without valid cert it worked with following settings when mail is on the same node as nextcloud.