# GET /mail/addresses

First published 15 Oct 2026 (release 0.2.2) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the mail group.

List outgoing mail IP addresses and their reverse DNS names

- Who may call it: administrator
- Token scope, any of: mail, read, all
- Answers: 200 OK

The outgoing object lists the server's global IP addresses and any IP addresses configured for its hostname, including IP addresses behind a provider's NAT. Each entry includes reverse DNS, whether the reverse name resolves back to the IP address, whether it matches the SMTP greeting hostname, and whether Postfix binds to that IP address. DNS checks use ssl.resolver when configured.

The response includes the server's hostname and reports ipv4 as the preference. Postfix tries IPv4 first when the destination supports it.

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/mail/addresses" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "outgoing": {
    "addresses": [
      {
        "address": "info@example.com",
        "bound": true,
        "family": "ipv4",
        "hostname_address": true,
        "matches_hostname": true,
        "on_machine": true,
        "points_back": "yes",
        "reverse": "text"
      }
    ],
    "hostname": "server.example.com",
    "preference": "text"
  }
}
```

## Errors

- 401: Authentication required
