# Mail is refused because of the server's reverse DNS

UrbeStack sysadmin note about Postfix. Last updated 30 Nov 2026.

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

Check the hostname your server greets with.

```
postconf myhostname
```

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
```

Check that the hostname also resolves back to the same IP address.

```
dig +short server.example.net
```

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.

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

If the problem persists after you follow this note, you can [open a support ticket](https://support.urbestack.com/new?type=support). Including the output of the commands you ran helps support diagnose the problem.
