Technical article 109680

Mail to certain domains is bouncing with "mail deferred connection reset".

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5UnixWare 7.0.0UnixWare 7.0.1

Written · Last revised

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)

From the Xinuos technical article database, record 109680. Reproduced with permission. The original is at www.sco.com/ta/109680, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.