Cannot send email (SMTP-Port 25)

Nicola Ferrini 25 Reputation points MVP
2025-09-04T07:02:15.4966667+00:00

Cannot send email (SMTP-Port 25) in my subscription. How can I activate this?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Jilakara Hemalatha 6,200 Reputation points Microsoft External Staff Moderator
    2025-09-04T08:15:23.2966667+00:00

    Hi Nicola Ferrini,

    Port 25 is only eligible for Enterprise Agreement subscriptions. Check if your Azure subscription type is eligible for the port 25 unblock request.

    It's possible to use port 25 for outbound communication on Azure App Service and Azure Functions through the virtual network integration feature or when App Service Environment v3 is used.

    If unblocking port 25 is not feasible, consider configuring Postfix to use alternative ports that are commonly allowed for email transmission, such as port 587 (sending) or 465 (SMTPS).

    For Enterprise Dev/Test subscriptions, outbound traffic on port 25 (SMTP) is blocked by default. However, it is possible to request the removal of this restriction. To initiate the request, navigate to the Diagnose and Solve Problems section within your Azure Virtual Network resource in the Azure portal. Locate and run the "Cannot send email (SMTP - Port 25)" diagnostic.

    Please refer below screenshots:

    User's image

    User's image

    Please check with your ISP has a policy of blocking outbound port 25 connections, except to their official outgoing SMTP servers and try with different network. also try

    Navigate to control panel>>system and security>>Windows defender firewall>>Advanced settings>> Inbound rules>>add new rule>> select port>>Enter a custom rule name, e.g. TCP "Port 25">>allow the connection>>(Domain+Private+Public).

    Check whether SMTP port 25 is opened or not. Open up a command prompt and run below command

     telnet <server_ip> 25
    

    Please find below official documentation for reference:
    https://v4.hkg1.meaqua.org/en-us/azure/virtual-network/troubleshoot-outbound-smtp-connectivity?wt.mc_id=knowledgesearch_inproduct_azure-cxp-community-insider#enterprise-and-mca-e

    Hope this helps! Please let me know if you have any other queries.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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