Virtual machine SMTP (25) port blocked fix?

app 0 Reputation points
2024-05-16T23:05:44.76+00:00

After hacking my way through the docs to realize that port 25 is blocked I found the:

It's 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 section in the Azure Virtual Network resource in the Azure portal and run the diagnostic. This process exempts the qualified enterprise dev/test subscriptions automatically. https://learn.microsoft.com/en-us/azure/virtual-network/troubleshoot-outbound-smtp-connectivity

User's image

But when I try and unblock it by following the advice there's no solution.

What is the solution so I can send emails using postfix from my server?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,111 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,548 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jackson Martins 10,566 Reputation points MVP
    2024-05-16T23:19:08.63+00:00

    Hi @app

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

    You can use alternate ports or email services:

    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).

    Another alternative is to use a third-party email service provider, such as SendGrid, Mailchimp,which are designed to handle email delivery and often offer a free tier of service.

    Get in touch if you need more help with this issue.

    --please don't forget to "[Accept the answer]" if the reply is 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.