PTR Record for Email on a VPS: Why You Need It and How to Set It Up

A PTR record (reverse DNS record) links an IP address to a name, for example 203.0.113.10 → mail.your-domain.com. Mail services such as Gmail and Outlook check it for the sending server. If there is no PTR or it does not match the server name, email from your VPS goes to spam or is rejected.

Nothing needs to be done on shared hosting: our hosting servers already have PTR records. This article is for your own mail server on a VPS.

How to set it up

  1. Choose a mail server name, for example mail.your-domain.com.
  2. Create an A record for this name pointing to the VPS IP address: DNS records for a VDS.
  3. Set the same name as the server hostname and in the mail server software on the VPS (the name used in the SMTP greeting).
  4. Contact support from your client area with the VPS IP address and the name for the PTR record. PTR records are set by the owner of the IP address, so we set it up for you.

How to check

A few hours after the setup, run:

nslookup 203.0.113.10
nslookup mail.your-domain.com

The first command should return mail.your-domain.com and the second the VPS IP address. The name and the address must point to each other.

What else is needed for delivery

  • SPF, DKIM and DMARC records for the domain;
  • an MX record for the domain pointing to mail.your-domain.com;
  • the same server name everywhere: in the PTR record, the A record and the mail server settings.
Questions and answers
No. PTR records are set by the owner of the IP address. Send support the VPS IP address and the name you need, and we will set it up.
No. Our hosting servers already have PTR records.
One IP address has one PTR record. Use one mail server name for all domains on this VPS.