Problem
I am unable to send mail to certain domains. The mail bounces with the message:
421 mailserver.mydom.dom: unable to contact smtp daemon for somedom.com. message deferred. connection reset by somedom.com
Cause
Some mail servers use DNS reverse lookups to establish connections with the sending machine. Reverse lookups rely on the existence of PTR records for the sending machine. If the sending machine does not have a PTR record, or if the PTR record does not match the A record, mail will not be accepted by the destination mail server.
Solution
Contact your name service administrator and have them add a PTR
record for your mail server (and all machines that will be sending
mail) to the primary name server's named.rev file. Also, have them
check that each PTR record matches each machine's A record.The named.rev file contains the zone database for the IN-ADDR.ARPA domain. The file name (named.rev) is arbitrary; it can be specified in named.boot as the source file for the IN-ADDR.ARPA domain.
The pointer records are needed by gethostbyaddr(SLIB) which is used by many secure mailservers.
The named.rev file is created manually on the primary name server. Its entries look like:
$INCLUDE named.soa;name {ttl} class type real_name
0.130 IN PTR host1.company.COM.where "name" is the IP address of the host in reverse order. You only need to specify enough octets to make the name unique. For example, host1 could have the address 128.32.130.0.
"real_name" is the name of the host to which the index points. There should be an entry for each host listed in named.hosts. The trailing '.' prevents DNS from appending the current $ORIGIN.
See also
man page for named.rev(SFF)