I’m guessing this is the IP of the server on which Discourse is running, and you also have a local SMTP server?
From inside the container can you connect to 33.165.221.244 port 25?
If not, you may have better luck using the host’s IP address of the docker0 bridge instead of the public IP. Can you connect to the host’s docker0 IP on port 25 from the container?