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.
192.168.1.3- IPv4 address
2a00:1234:abcd:1::3- IPv6 address
postal.example.com- the hostname you wish to use to run Postal
You'll need these records for accessing the API, management interface & SMTP server.
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.
-allto make the SPF record stricter.
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.
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.
Example Postal Configuration
postal.yml you should have something that looks like the below:
dns: mx_records: - postal.example.com smtp_server_hostname: postal.example.com track_domain: postal.example.com spf_include: spf.postal.example.com return_path: rp.postal.example.com route_domain: routes.postal.example.com