Use NAT to redirect port 25 (inbound) to a VM

Thomas Martinez 20 Reputation points
2025-06-03T09:57:46.9233333+00:00

Hello,

I'm trying to setup a redirection using DNAT from Exchange online on port 25, to a virtual machine in my infrastructure.

I've a virtual wan, with a virtual hub setup as secured hub, so with an azure firewall. I would like to redirect the traffic coming from internet on the port 25 on the firewall, to a virtual machine connected using a VNET connection:

User's image

I've created a DNAT rules:

User's image

But I keep on getting this error from exchange online:

User's image

Is it something that's not possible that way ?

Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
786 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.