I have postfix configured to work on the local docker host such that a test via swaks --to destination@domain.tld --from admin@hostdomain.tld --server localhost -tls delivers as expected. It uses port 25 and sends out the email with no problem at all.
So I’m lead to the question: how do I set up app.yml SMTP config settings appropriately to utilize localhost for mail delivery?
So in such a case you need to use the public IP or is thre a special IP scheme that Docker uses? For example, within the host I see docker0 with 172.17.0.1 and within the container (./launcher enter app; apt-get install ifconfig) eth0 is 172.17.0.2. I suspect I should use the host’s 172.17.0.1 w/in the discourse container, but I wouldn’t want it to change on me somehow and at some point.
Just to document here, the following was sufficient (all other SMTP lines commented out) to deliver to the docker host’s smtp server if no auth is necessary: