can not open port 25 for my VM

nishant meghnathi 6 Reputation points
2019-11-15T08:19:59.583+00:00

Dear Team,

We have services which is communication with each other port on port 25. But as we have seen azure have already blocked 25 port for security reason. So can we have any other alternative to get working this services with azure VM. Currently we are using local provider VM which we want to shift to azure.
Our subscription is from oct-2018.

Let us know any solution so we can plan our decision based on this.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,080 questions
0 comments No comments
{count} vote

5 answers

Sort by: Most helpful
  1. Moamen Hany 1,091 Reputation points MVP
    2020-08-07T22:24:25.107+00:00
    3 people found this answer helpful.
    0 comments No comments

  2. msrini-MSFT 9,251 Reputation points Microsoft Employee
    2019-11-15T10:24:38.94+00:00

    Can you take a look at the below doc? Azure blocked port 25 outbound for security reasons and based on the subscription that you use, you can request to unblock port 25. More details on this doc: https://learn.microsoft.com/en-us/azure/virtual-network/troubleshoot-outbound-smtp-connectivity

    1 person found this answer helpful.
    0 comments No comments

  3. Adusumalli, Harikrishna 1 Reputation point
    2019-11-15T09:25:15.063+00:00

    Azure will not block any ports, Check NSG rules, VM firewall rules and if you have deployed NVA firewall on azure check the port on NVA. If you have still facing issue use PowerShell test-netconnection command check where the port is blocking.


  4. nishant meghnathi 6 Reputation points
    2019-11-19T07:37:06.547+00:00

    My problem is resolved now. In case we really need 25 port then we can request from azure panel.
    By folowing below steps.
    Technical > Virtual Network > Connectivity > Cannot send email (SMTP/Port 25).
    thank you guys for prompt reply.


  5. Eric Rohner 1 Reputation point
    2022-02-28T21:16:08.147+00:00

    Azure is having many issues, it is time to move back to your own office. They want to charge you for supporting their errors. In the Azure Portal I test the out bound port 25 and get success, but in the VM I use telnet to test port 25 and it fails. On my laptop at home port 25 works just fine, which is strange because they say ISPs block out bound port 25. As technology of computers keep growing the need for an Azure or AWS server will go away.

    0 comments No comments