New SMTP Server Setup in Azure VM

Rokesh Vijayakumar 0 Reputation points
2025-03-03T10:03:42.4766667+00:00

We are planning to run our own SMTP server on a linux VM due to a business requirement and do not want to use SMTP relay like sendgrid.

 

We want to run our own outbound SMTP server from Azure ( using enterprise subscription):

  1. The SMTP server will be sending around 50K - 100K emails daily
  2. We need a dedicated NEW IP (that is not blacklisted in RBL list) that is WARMED UP
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,041 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2025-03-03T19:12:46.2666667+00:00

    Hi Rokesh Vijayakumar,

    Thank you for reaching out to the Microsoft Q&A platform.

    By default, outbound SMTP traffic on TCP port 25 is blocked by the Azure platform. However, outbound traffic on port 587 is not blocked by default.

    Make sure you have an enough space VM configuration as per your requirement.

    We recommend you use authenticated SMTP relay services to send email from Azure VMs or from Azure App Service. Connections to authenticated SMTP relay services are typically on TCP port 587 which is not blocked. These services are used in part to maintain IP reputation which is critical for delivery reliability. Azure Communication Services offers an authenticated SMTP relay service.

    Using these email delivery services on authenticated SMTP port 587 isn't restricted in Azure, regardless of the subscription type.

    For more details, please refer to the below documentation:

    Troubleshoot outbound SMTP connectivity problems in Azure.

    If it was helpful, please click "Upvote" on this post to let us know.

    Thank You.

    0 comments No comments

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.