Closed fischerman closed 8 years ago
You can use ENV like in docs as a workaround https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/
This is by design. We avoid dns.lookup() because it uses the system resolver which is a blocking system call which means Node has to call it via its internal thread pool for it to work asynchronously and that would hurt our performance.
I would modify queue/lmtp to check process.env for the appropriate value rather than switch it to dns.lookup if you need performance.
This is by design. We avoid dns.lookup()
Amen! (dns.lookup also has some odd edge cases)
I'm using haraka in a docker container for inbound mail linked to a dovecot container with LMTP enabled. Every mail is forwarded via LMTP. Docker uses /etc/hosts to set the IP of the linked container. I've set my lmtp.ini accordingly to
I can ping lmtp just fine, however haraka can not resolve it:
I've noticed that in outbound.js:992
resolve
is used which goes to the NS server directly rather thenlookup
which also checks the hosts