Others

Can Microsoft 365 Set Reverse DNS for a Website Mail Server?

Rana GarciaRana Garcia Nov 27, 2026 868 views

Question details

The user needs valid reverse DNS for a website server that sends email through PHP mail.

Can Microsoft 365 Set Reverse DNS for a Website Mail Server?
Product
Microsoft 365 and website mail server
Device & OS
not provided
Scenario
A website sends messages from a fixed IP address while the same domain uses Microsoft 365 for email.
Observed behavior
Some receiving servers reject messages because the website server's sending IP address does not have valid reverse DNS.
Before you start

Check a rejection message or mail log to identify the actual sending IP address. Find out which hosting provider or ISP controls that IP and choose a mail server hostname under a domain you manage.

Solution 1Recommended

Ask the IP provider to configure reverse DNS

Use this approach when website messages are sent directly from your server's fixed IP address.

The organization that controls the sending IP address typically manages its reverse DNS. Microsoft 365 cannot create a PTR record for your website server's IP.

1
Request a PTR record

In your hosting provider's control panel or support portal, request a PTR record that maps the sending IP address to your mail server hostname, such as mail.example.com.

2
Set forward DNS

In your domain's DNS management panel, create or check an A record so the chosen hostname resolves back to the same IPv4 address. For an IPv6 sending address, check the corresponding AAAA record.

3
Verify both lookups

Use a DNS lookup tool or run `dig -x <sending-IP>` to check the PTR record, then run `dig <hostname> A` or `dig <hostname> AAAA` to confirm the hostname resolves to the sending IP.

4
Test delivery

Send a test message from a website script and review the receiving server's response or your mail log for any remaining rejection reasons.

Ask the IP provider to configure reverse DNS
Reverse DNS is only one check: A matching PTR and forward DNS record can help, but receiving servers may also check SPF, DKIM, DMARC, reputation, and message content.
Free Microsoft Office alternative

Use WPS Office for Everyday Documents Alongside Your Mail Service

WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations in a familiar interface. Its Microsoft Office format support makes it easier to move existing files. It does not configure mail server DNS or fix email delivery.

Free, lightweight tools with a familiar Office-style interfaceCompatible with Microsoft Office formats including DOCX, XLSX, and PPTXWork on website correspondence and mail setup documentation in one office suite
microsoft office alternative - wps office

Frequently Asked Questions

Can Microsoft 365 create a PTR record for my website's IP address?

No. Contact the hosting provider or ISP that controls the website server's sending IP, or use its control panel if it offers reverse DNS management.

How do I check whether reverse DNS matches forward DNS?

Run `dig -x <sending-IP>` to find the PTR hostname, then run `dig <hostname> A` for IPv4 or `dig <hostname> AAAA` for IPv6. The forward lookup should return the sending IP.

Does using Microsoft 365 for my domain's email automatically cover PHP mail?

No. A PHP script that sends directly from the website server uses that server's sending IP. Its reverse DNS and domain authentication need to be configured separately.

Will a PTR record guarantee that my messages are accepted?

No. Check rejection messages and sending logs for other issues, including SPF, DKIM, DMARC, IP reputation, or message content.