Hi AM,
Alternate workarounds: Use authenticated SMTP over alternate ports:
Option 1: Use Microsoft 365 (Exchange Online)
- SMTP server:
smtp.office365.com
- Port: 587
- Encryption: STARTTLS
- Requires authentication with a valid Microsoft 365 account
Option 2: Use a third-party SMTP relay like SendGrid
- Azure officially partners with SendGrid
- Offers free and paid tiers
- Uses port 587 or 465 with authentication
Option 3: Set up a relay VM outside Azure
- Host an SMTP relay (e.g., Postfix or Exim) on a VPS or dedicated host with port 25 open
- Configure Azure VMs to relay mail through that external server using port 587 or 465.
There are several cloud email services available to use. Some of the prominent names are SendGrid, MailJet, and MailGun(Highly reliable, scalable, and widely used for transactional emails and has a Foundation plan (~$35/month) supporting 50,000+ emails/month). Whichever email service you choose, using them to send emails from Azure is similar, server address and port for SMTP and API endpoint address for REST.
SendGrid is probably the most popular email service option for sending emails from Azure. https://www.twilio.com/docs/sendgrid/for-developers/partners/microsoft-azure-2021
You can upgrade to a Paid SendGrid Plan (Recommended for Azure-native workflows)
- SendGrid offers Essentials, Pro, and Premier plans.
- The Essentials plan starts at ~$14.95/month for up to 50,000 emails/month.
- You can scale to millions of emails/month by moving to the Pro or Premier tiers.
- These tiers also include:
- Dedicated IPs (for better deliverability)
- High throughput
- API and SMTP relay support over port 587.
Use Azure Communication Services (ACS) Email lhttps://learn.microsoft.com/en-us/azure/communication-services/overview
This is Microsoft's native email service — scalable, reliable, and port 25–safe.
Benefits:
- Uses SMTP or REST API
- Microsoft-managed infrastructure (excellent deliverability)
- Can be integrated with Azure Functions, Logic Apps, VMs, etc.
- Offers custom domain + DKIM/SPF support You can send a limited number of email messages. If you exceed the email rate limits for your subscription, your requests are rejected. You can attempt these requests again, after the Retry-After time passes. Take action before reaching the limit by requesting to raise your sending volume limits if needed. https://learn.microsoft.com/en-us/azure/communication-services/concepts/service-limits#email
If you have any further queries, let me know. If the information is helpful, please click on Upvote and Accept Answer on it.