How work name resolution in Postfix?

I have an internal server that resend mail to another box (in the same
IntraNet).
If I put in my local /etc/hosts something like:

192.168.1.25    mail.aaa.tld

the box do what I want:

# ping mail.aaa.tld
PING mail.aaa.tld (192.168.1.25) 56(84) bytes of data.
64 bytes from mail.aaa.tld (192.168.1.25): icmp_seq=1 ttl=64 time=0.181 ms
64 bytes from mail.aaa.tld (192.168.1.25): icmp_seq=2 ttl=64 time=0.181 ms
64 bytes from mail.aaa.tld (192.168.1.25): icmp_seq=3 ttl=64 time=0.184 ms
 . . .

# 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?

Thanks, B.

Reply via email to