TLS error on connection from (localhost.localdomain) [172.17.0.2]

Can you elaborate on your setup?

Was it built using our documentation and configured to use one of the recommended mail providers?