An Azure service that is used to provision Windows and Linux virtual machines.
Hello Boskora LLC,
Thank you for reaching out to Microsoft Q&A!
Outbound port 25 is blocked by default on most Azure subscription types (such as Pay-As-You-Go, Free Trial, and CSP). This block is strictly enforced to prevent spamming, protect the IP reputation of the Azure platform, and ensure better security for our customers and partners.
While Enterprise Agreement (EA) and Microsoft Customer Agreement for Enterprise (MCA-E) subscriptions generally have this port open by default (or are eligible for an unblock), standard subscriptions cannot have the port 25 restriction removed
To send legitimate business and transactional emails from your current subscription without upgrading to an EA/MCA-E, you must use an authenticated SMTP relay service over TCP port 587. Since you plan to configure email authentication (SPF, DKIM, DMARC), Azure Communication Services is an option for you.
I suggest you to follow official instructions in order to setup SMTP Relay: Microsoft Learn Guide or Tech Community Guide
Here is a short summary of how to set this up:
- Create an Azure Communication Service Resource. Microsoft Learn Guide
- Create an Email Communication Service. You must have Azure Communication Service resource in order to create Email Communication Service. Microsoft Learn Guide
- Once created, you add your email domain and you will be able to configure SPF and DKIM.
- Link domain to your Azure Communication Service
- Register a custom RBAC Role for SMTP authentication and assign this role to your Microsoft Entra Application. Microsoft Learn Guide
- Once created, you can assign role to your Entra Application. Microsoft Learn Guide
You can view your email address in Email Communication Service -> Email Services -> MailFrom address By default you will have DoNotReply@.... email.
If you need more clear instructions, please let me know.
If you have any queries, please do let us know, we will help you.
If the information is helpful, please click on "Accept Answer" and "Upvote"
and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.