VPS network configuration

Anis Ben Bechir 0 Reputation points
2023-04-21T08:52:44.0433333+00:00

Hello,
I need your help for my vps networking, my vps can't connect to any external ip ( like telnet google.com 25) :
A vps hosted in another platform : Trying 142.250.184.110... Connected to google.com.

My vps hosted on Azure :
telnet google.com 25 Trying 142.250.187.206...
(Nothing will prompt ever after few mins)

How can i fix this please ?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,018 questions
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 38,021 Reputation points Microsoft Employee Moderator
    2023-04-21T18:14:09.75+00:00

    @Anis Ben Bechir

    I see that you are testing outbound connectivity on TCP Port 25 on your virtual machine.

    Outbound SMTP traffic on TCP port 25 is blocked by the Azure platform to ensure better security for Microsoft partners and customers, protect the Azure platform, and conform to industry standards. This block applies to Azure Virtual Machines. More information and suggestions can be found here.

    Microsoft recommends using authenticated SMTP relay services for sending email from Azure Virtual Machines. These services typically connect through TCP port 587, but they may also support other ports. Authenticated SMTP relay services, such as Exchange Online Protection and SendGrid, specialize in sender reputation to minimize the possibility that third-party email providers reject messages.

    Using authenticated SMTP relay services is not restricted in Azure, regardless of your subscription type. If you need to send emails from your Azure VMs, consider using one of these services as an alternative to sending emails directly over TCP port 25.


    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    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.