A few things you can try
- check if your provider allows a different port and see if you have the same error
- if you know how to use
curl, try curl-ing your mail setup directly from within the docker container - use a different mail provider altogether, Mailgun is known to work well with Discourse