Hi Nicola Ferrini,
Port 25 is only eligible for Enterprise Agreement subscriptions. Check if your Azure subscription type is eligible for the port 25 unblock request.
It's possible to use port 25 for outbound communication on Azure App Service and Azure Functions through the virtual network integration feature or when App Service Environment v3 is used.
If unblocking port 25 is not feasible, consider configuring Postfix to use alternative ports that are commonly allowed for email transmission, such as port 587 (sending) or 465 (SMTPS).
For Enterprise Dev/Test subscriptions, outbound traffic on port 25 (SMTP) is blocked by default. However, it is possible to request the removal of this restriction. To initiate the request, navigate to the Diagnose and Solve Problems section within your Azure Virtual Network resource in the Azure portal. Locate and run the "Cannot send email (SMTP - Port 25)" diagnostic.
Please refer below screenshots:
Please check with your ISP has a policy of blocking outbound port 25 connections, except to their official outgoing SMTP servers and try with different network. also try
Navigate to control panel>>system and security>>Windows defender firewall>>Advanced settings>> Inbound rules>>add new rule>> select port>>Enter a custom rule name, e.g. TCP "Port 25">>allow the connection>>(Domain+Private+Public).
Check whether SMTP port 25 is opened or not. Open up a command prompt and run below command
telnet <server_ip> 25
Please find below official documentation for reference:
https://v4.hkg1.meaqua.org/en-us/azure/virtual-network/troubleshoot-outbound-smtp-connectivity?wt.mc_id=knowledgesearch_inproduct_azure-cxp-community-insider#enterprise-and-mca-e
Hope this helps! Please let me know if you have any other queries.