Come aggiungere SMTP di Dreamhost in Discourse

That port should be correct. Have you rebuilt your Docker image?