Getting Started

DNS configuration

To work properly, you'll need to configure a number of DNS records for your Postal installation. Review the table below and create appropriate DNS records with your DNS provider. You will need to enter the record names you choose in your postal.yml configuration file.

We'll assume for the purposes of this documentation you have both IPv4 and IPv6 available to your server. We'll use the following values in this documentation, you'll need to replace them as appropriate.

  • - IPv4 address
  • 2a00:1234:abcd:1::3 - IPv6 address
  • - the hostname you wish to use to run Postal

A Records

You'll need these records for accessing the API, management interface & SMTP server.

Hostname Type Value A AAAA 2a00:1234:abcd:1::3

SPF Record

You can configure a global SPF record for your mail server which means domains don't need to each individually reference your server IPs. This allows you to make changes in the future.

Hostname Type Value TXT v=spf1 ip4: ip6:2a00:1234:abcd:1::3 ~all
You may wish to replace ~all with -all to make the SPF record stricter.

Return Path

The return path domain is the default domain that is used as the MAIL FROM for all messages sent through a mail server. You should add DNS records as below.

Hostname Type Value MX 10 TXT v=spf1 a mx ~all TXT Value from postal default-dkim-record

Route domain

If you wish to receive incoming e-mail by forwarding messages directly to routes in Postal, you'll need to configure a domain for this just to point to your server using an MX record.

Hostname Type Value MX 10

Example Postal Configuration

In your postal.yml you should have something that looks like the below to cover the key DNS records.