Variations of this warning show up many times in the Postfix logs:
warning: hostname 107-174-39-133-host.colocrossing.com does not resolve
to address 107.174.39.133: Name or service not known
I'd like to know what this warning actually means.
Specifically, is it a forward or reverse DNS check that's failing? Is it using A, MX or PTR records? Is the failure caused by the remote mail server using cloudflare.com? Or is Postfix catching a spammer impersonating a server that isn't theirs?
Here's a live example of dig
queries:
dig -x 107.174.39.133
;; ANSWER SECTION:
133.39.174.107.in-addr.arpa. 300 IN PTR 107-174-39-133-host.colocrossing.com.
dig 107-174-39-133-host.colocrossing.com
;; AUTHORITY SECTION:
colocrossing.com. 355 IN SOA brad.ns.cloudflare.com. dns.cloudflare.com. 2324254619 10000 2400 604800 1800
The reverse lookup PTR matches the domain to the IP address, but the forward lookup doesn't return an IP address.
I'd like to know if this is spam or a Postfix misconfiguration?
Please note: I already have smtp_host_lookup = native
set, and the server's real IP address set in /etc/hosts
:
127.0.0.1 localhost
xx.xx.xx.xx domain.com
xx:xx::xx:xx:xx:xx domain.com
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters