Port 25 oubound is blocked

TechTy 21 Reputation points
2022-06-29T01:34:54.797+00:00

I am trying to learn more about email by creating a mail server. I have the server setup but it seems that port 25 outbound is blocked (I found a Microsoft article backing this up) and I would like to unblock it. Telnet (any.smtp.link) 25 does not connect going out and I have a extra NSG rule allowing it. I am using the Azure for Students plan. Any help is appreciated

UPDATE: From what I'm seeing, I have to open a ticket but when I try to do so it asks me to upgrade to a support plan or ask the community.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,992 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,509 questions
{count} votes

Accepted answer
  1. Manu Philip 18,676 Reputation points MVP
    2022-06-29T11:22:41.41+00:00

    The Azure platform will block outbound SMTP connections on TCP port 25 for deployed VMs. This is to ensure better security for Microsoft partners and customers, protect Microsoft’s Azure platform, and conform to industry standards.

    As you are using a non-enterprise subscription type (Students plan), the port restriction is expected.
    However, you to use an authenticated SMTP relay service for your learning purpose. These relay services typically connect through TCP port 587. These services are used to maintain IP and domain reputation to minimize the possibility that external domains reject your messages or put them to the SPAM folder. SendGrid is one such SMTP relay service, but there are others. Using these email delivery services isn't restricted in Azure, regardless of the subscription type.

    For Enterprise Dev/Test subscriptions 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 run the diagnostic. This will exempt the qualified enterprise dev/test subscriptions automatically. After the subscription is exempted from this block and the VMs are stopped and restarted.
    As you are using the student subscription, I guess you can't use the above mentioned option to release the block

    ----------

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.