Yes, Microsoft restrict this by default. You can submit a support ticket to Azure support requesting the port to be opened if you really need it.
Azure virtual machine restricted?
Hi,
I guess my virtual machine is restricted to send emails using basic SMTP ports like 25, 587. Connections are refused, and mail servers are giving errors like Socket error 10060.
Can anyone help?
3 answers
Sort by: Most helpful
-
-
suvasara-MSFT 10,046 Reputation points
2021-08-19T10:32:11.47+00:00 @Lev Anni , The Azure platform will block outbound SMTP connections on TCP port 25 for VMs deployed in certain subscriptions. It is possible to have this block removed. To request to have the block removed, go to the Cannot send email (SMTP-Port 25) section of the Diagnose and Solve blade in the Azure Virtual Network resource in the Azure portal and open a support request.
If you still need help, contact support to get your problem resolved quickly. Use this issue type: Technical > Virtual Network > Cannot send email (SMTP/Port 25).
----------
Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.
-
Lev Anni 41 Reputation points
2021-08-19T15:49:19.8+00:00 Thanks for help, I have sent a ticket