Unable to Connect to SMTP on Azure Ubuntu Server for Gmail: Port 25 Telnet Issue

Shanuka Thushara 61 Reputation points
2024-01-20T09:21:53.34+00:00

Hello everyone, I've been trying to connect to SMTP on my Azure Linux VM, specifically to Gmail. However, I'm facing an issue as it says "unable to connect." I used the command telnet smtp-relay.gmail.com 25. Please note that I have allowed port 25 in both my Network Security Group (NSG) and Azure VM firewall settings, yet the problem persists. I would appreciate any advice or guidance on resolving this issue with my Azure VM. smtp error

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

Accepted answer
  1. Andreas Baumgarten 123.5K Reputation points MVP Volunteer Moderator
    2024-01-20T09:59:02.8033333+00:00

    Hi @Shanuka Thushara ,

    there are limitations running an SMTP service in an Azure VM:

    Troubleshoot outbound SMTP connectivity problems in Azure

    In summary the limitations are based on the type of Azure Subscription:

    Enterprise and MCA-E

    All Other Subscription Types


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten


0 additional answers

Sort by: Most helpful

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.