All help articles

Outbound IP addresses

Mail to other servers can leave from addresses you choose, instead of the server's one address:

Set it up in the Mailocity panel, Settings → Outbound IPs, or with corpsuite ip-pool and corpsuite ip-settings.

Which address mail leaves from

For each message, from its sender's domain:

  1. IPv4: one of the team's dedicated addresses when it has any, otherwise one of the shared ones. A domain always gets the same one of them, so its reputation stays with one address.
  2. IPv6 (with a prefix and a name base set): the domain's own address, made from the domain's name, so it never changes while the prefix does not.
  3. With Send over IPv6 first, the server tries IPv6 when the receiving server has an IPv6 address, then IPv4.

Without any pool address, mail leaves from the server's own address with its host name, as before.

The server says each address's own name in EHLO. Receivers check that the address's PTR (reverse DNS) is that name and that the name points back at the address: set both (see below), or many receivers refuse the mail.

SPF

Each domain's SPF record lists the addresses its mail may leave from: its team's pool addresses (ip4:) and its own IPv6 address (ip6:), then the server's name as before. A shared domain lists every pool address, since its users belong to many teams. The DNS list on the domain's page shows the record to publish; Automatic DNS keeps it right by itself. Adding or removing pool addresses changes SPF records, so publish them again.

Making the addresses work on the server

The server binds each address when it connects, with Linux's FREEBIND option: an address need not be configured on an interface, only routed to the host, and no extra privilege is needed.

Outside Linux, addresses must be configured on an interface.

Names and PTR records

Each pool address has a name (its EHLO name and PTR), such as o1.mailo.city; each domain's IPv6 address is named x<10 hex>.<name base>, such as x1a2b3c4d5e.out.mailo.city.

Publish names and PTR records publishes, through Route53 with the server's own AWS credentials:

Addresses whose reverse zone is elsewhere are named in the result: ask the provider of the addresses to set their PTR to the name.

Teams

A team sees where its mail leaves from on its page in the team manager (Where your mail leaves from: each domain's IPv4 and IPv6), or with corpsuite tenant sending-addresses TEAM.

Not yet