How to set SMTP config to use localhost?

This is not in a different docker container, but simply on the docker host itself.