Azure server to Sendgrid connectivity

Dutta, Sreya 31 Reputation points
2023-02-07T07:13:33.27+00:00

Hi ,

I want to setup connection from my azure server to sendgrid , How Can I do that , what are the flows I need to open in NSG level?

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,653 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Arun Siripuram 891 Reputation points
    2023-02-07T07:54:09.7633333+00:00

    Thank you for posting your query on Microsoft Q&A.

    To set up a connection from an Azure server to SendGrid, you will need to open the following ports in the Network Security Group (NSG) level:

    1. Port 587: This is the default port for SMTP (Simple Mail Transfer Protocol) communication.
    2. Port 25: This is an alternate port that can be used for SMTP communication if port 587 is blocked by a firewall.

    You can add these ports in your NSG inbound security rules.

    Please note that it's recommended to only allow incoming traffic from trusted sources to these ports and to monitor network traffic for any suspicious activity.

    Please refer https://docs.advantys.com/workflowgen-for-azure/azure-sendgrid-smtp-configuration

    https://docs.sendgrid.com/for-developers/partners/microsoft-azure-2021#create-a-twilio-sendgrid-account


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.