On 26/04/2020 20.24, Per Jessen wrote:
Admin Beckspaced wrote:
my problem was that on my dev box postfix, asd it usually does, is using DNS to lookup IP address of a domain So I needed a quick fix to point a domain to another IP on the dev box. Then I thought ... hey, let's use /etc/hosts and define an IP adress there.
I was not aware that postfix is doing a direct DNS query.
Maybe see the postfix "smtp_host_lookup" directive.
http://www.postfix.org/postconf.5.html#smtp_host_lookup
Setting up dnsmasq for this is overkill, imho.
The easy solution is:
smtp_host_lookup = dns,native.
Ah! Interesting :-) When I first hit that problem, about two decades ago, I was using sendmail. So when I switched to postfix I kept using the same method: local dns server (which at the time, was bind9 (it is confusing whether it is called bind9 or named or both). However, a local dns server also speeds up the operation of other daemons, such as postfix, spamassassin, etc. Even the web browser. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)