Key takeaways
- Create an A record for a hostname such as mail.example.com that points to your server's IP.
- Then set the PTR for that IP in the Manager to the same hostname.
- Check that dig -x returns the hostname and that the hostname resolves back to the IP.
A PTR record maps an IP address back to a hostname, and it only works if that hostname points forward to the same IP. Infomaniak's PTR guide covers VPS and VPS Lite IP addresses, not the sending servers behind the Mail service. This guide shows how to set a PTR for a server you run on Infomaniak, and how to check the forward and reverse pair.
Research checked: 2026-11-12
The short answer
Create an A record for a hostname such as `mail.example.com` that points to your server's IP. Then set the PTR for that IP in the Manager to the same hostname. Check that `dig -x` returns the hostname and that the hostname resolves back to the IP. If you send through the Infomaniak Mail service rather than your own server, you do not set a PTR yourself.
Which case applies to you
Infomaniak's PTR guide says it "explains how to create a PTR record on the dedicated IPs of VPS Cloud / VPS Lite" (Infomaniak: Create a PTR record for Cloud VPS / VPS Lite). The page does not cover Mail service domains, and we did not find a separate page for setting PTR on Mail service sending IPs. So there are two cases:
- Your own server on Infomaniak VPS: you set the PTR, using the steps below.
- Sending through the Infomaniak Mail service or its SMTP: the sending infrastructure is Infomaniak's, so you do not set a PTR. Your job is the DNS records for your domain, not the IP's reverse record.
Step 1: create the forward record
Point the hostname at the server's IP. Infomaniak's guide asks for an A record (or AAAA for IPv6) for the domain or subdomain before the PTR, and for the IP address from the Manager or `ifconfig` (Infomaniak: Create a PTR record for Cloud VPS / VPS Lite).
``` mail.example.com. A 203.0.113.25 ```
Use a hostname in your own domain. Infomaniak rejects servers that introduce themselves with a generic or local name, so the same hostname must be what your mail server announces in its HELO or EHLO (Infomaniak: Troubleshooting a bogus HELO error).
Step 2: set the PTR in the Manager
Open your VPS list in the Infomaniak Manager, click the VPS name, use the quick action or menu for the server's IP address, enter the PTR value and save (Infomaniak: Create a PTR record for Cloud VPS / VPS Lite). The PTR value is `mail.example.com`, with no IP and no trailing text.
Step 3: check both directions
``` dig -x 203.0.113.25 +short dig +short A mail.example.com ```
The first should return `mail.example.com.`. The second should return `203.0.113.25`. Both must match. Gmail's sender guidelines require the sending IP to match the hostname in its PTR, and that hostname to resolve back to the same IP (Gmail Help: Email sender guidelines).
Wait for propagation before you judge the result. Infomaniak's DNS guidance says changes can take up to 48 hours (Infomaniak: Link a domain name to the Mail service).
Step 4: match the HELO
Configure your mail software to send that same hostname in HELO or EHLO. A mismatch between the PTR and the announced name is a common reason for rejections, and Infomaniak refuses generic or IP-literal names outright.
Verify end to end
Send a message from the server to an address you control, and read the `Received` line. The hostname in the first header should match your PTR. Then run a reverse-DNS checker, and confirm it reports the forward and reverse pair as consistent.