Hi, With regards to Jira issue https://issues.apache.org/jira/browse/JAMES-2980. Would adding another conditional after the gateway server check in DNSHelper class to check configuration for sslEnable = true be suitable way to fix the bug ? Then we can create a instance of MXHostAddressIterator passing in defaultPort 465.
Regards, Aaron
