Can Microsoft 365 Set Reverse DNS for a Website Mail Server?
Question details
The user needs valid reverse DNS for a website server that sends email through PHP mail.

- 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.
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.
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.
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.
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.
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.
Send a test message from a website script and review the receiving server's response or your mail log for any remaining rejection reasons.

Send website messages through an authenticated SMTP relay
Use a mail relay or transactional email service instead of sending directly from the website server.
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.

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.




