On Tue, 22 May 2012, Reindl Harald wrote:

Am 22.05.2012 12:15, schrieb Barbara M.:
# telnet mail.aaa.tld 25
Trying 192.168.1.25...
Connected to mail.aaa.tld.
Escape character is '^]'.
220 mail.aaa.tld ESMTP
 . . . .


but Postfix seems to still search the real IP via DNS.

Why?
Any trick/config/workaround to force Postfix to consider /etc/hosts?

because a MTA on the first hand looks for MX records which
is a thing /etc/hosts can not provide, so a MTA relies
on a working DNS

Thanks.

I put:

smtp_host_lookup = native, dns

In my idea this give higher priority to /etc/hosts

Correct?


/etc/nsswitch.conf is the default for CentOS 6.2 and contain:

hosts: files dns


Thanks, B.

Reply via email to