Skip to content

Improving Deliverability of Users' Emails Using Reverse DNS

If your users use virtual servers to send emails, mail servers may treat these emails as spam. In this topic, you'll learn how to prevent this by enabling reverse DNS management in SolusVM 2.

Most mail servers use reverse DNS resolution to verify email domains and filter those that are likely to send spam. To do so, mail servers check for DNS PTR records. A PTR record, which is the reverse version of an A record, maps the IP address to the domain name. If the mail server detects no or an invalid PTR record, emails sent from the given IP address will land in spam.

Emails from your users' domains are likely to be treated as spam because these domains don't have PTR records by default. To give your users the ability to add PTR records and pass mail server checks, you need to enable reverse DNS management in SolusVM 2.

To enable reverse DNS management:

  1. Get a server with PowerDNS installed.
  2. Enable the PowerDNS API. To do so, you will need to add the info about an API key to the pdns.conf file. Copy the API key name because you'll need it later.
  3. Log in to SolusVM 2 and go to Settings > DNS.
  4. Select "PowerDNS" and then specify the hostname of your PowerDNS server and the API key name you copied during step 2. You can keep the "Default reverse DNS record template", "TTL", and "Port" fields filled in by default.

  5. Once you fill in all the required fields, click Save.

  6. Determine which IP block contains IP addresses of the servers whose users send mail. Contact your hosting provider that allocated you this IP block. Ask the provider if they can delegate the IP block to the DNS server of your choice (which is the PowerDNS server in our case) using a reverse DNS zone.

    If the provider can delegate, give them PowerDNS name servers to delegate the reverse zone to. The provider will map the IP block to the reverse DNS zone.

    Ask the provider for the reverse DNS zone name. You’ll need it later. The name ends with in-addr.arpa for IPv4 or ip6.arpa for IPv6, for example, 168.192.in-addr.arpa.

    Note

    If the provider cannot delegate the IP block, you can't enable reverse DNS management unless you get an IP block from the provider that can delegate.

  7. Manually create the reverse DNS zone you received from the provider (168.192.in-addr.arpa) in PowerDNS server.

  8. In SolusVM 2, go to Network and add a new IP block or edit an existing one.
  9. Select Enable reverse DNS management, specify the name of the reverse DNS zone you received from the provider, and then click Save.

You've done your share of work by enabling reverse DNS management in SolusVM 2.

Now your users can add PTR records.

Note

We call PTR records "Reverse DNS entries" in the SolusVM 2 user interface.

To add a reverse DNS entry as a user:

  1. Go to https://<management-server-hostname>/login or https://<management-server-IP>/login.
  2. Under the desired project, click "... servers", for example, "2 servers".
  3. Click the server name.
  4. Go to the Networking tab and then click Add Reverse DNS entry.

  5. Specify the server IP address and the email domain.

  6. Click Save.

You’ve added the PTR record for the server. Emails sent from this server now have higher chances of reaching the inbox.

Note

Users can add PTR records mapped to the main and additional IP addresses.

Back to top