Get your free beta license ↗
Mail · Postfix

Mail is refused because of the server's reverse DNS

Last updated 30 Nov 2026
Summary

Receiving servers refuse or defer outgoing mail when your server's IP address has no reverse DNS or points to a different hostname. Set the PTR record at your hosting provider to the hostname Postfix uses.

Symptoms

Receiving servers refuse or defer mail from your server. Their reply mentions reverse DNS, a PTR record or the HELO name.

The urbestack-mail-queue-list command shows the reply in the message's delay_reason. A bounce quotes the same reply.

Cause

A receiving server looks up the PTR record for the IP address the mail comes from and compares it with the name your server greets with.

Postfix greets with the server's hostname, myhostname, from every outgoing IP address UrbeStack uses.

The hosting provider manages the IP address. Its PTR record is set at the provider, outside the server's own DNS zones.

Resolution

  1. Check the hostname your server greets with.

    postconf myhostname
  2. Look up the PTR record for your server's IP address. The command must print the same hostname followed by a dot.

    dig +short -x 203.0.113.10
  3. Check that the hostname also resolves back to the same IP address.

    dig +short server.example.net
  4. If the PTR record is missing or names something else, set it to the server's hostname in your hosting provider's control panel or ask the provider to set it.

  5. Once dig -x prints the hostname, retry the queue with urbestack-mail-queue-flush.