Hi @Vivek Kumar ,
sending emails on port 25 from an Azure VM is restricted (not possible) in Azure.
The Azure platform blocks outbound SMTP connections on TCP port 25 for deployed VMs.
We recommend you use authenticated SMTP relay services to send email from Azure VMs
Please take a look here: Troubleshoot outbound SMTP connectivity problems in Azure
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten