Outbound SMTP email issue

2020-06-15T16:02:34.757+00:00

I have built a solution using python flask and created the web app for that in azure. The solution will send smtp email using port 25 to GE emails.
The solution is working fine in my IDE but, failing on azure as, it cant send email to GE outlook and throwing error of “[Errno -5] No address associated with hostname”
Is the issue related to azure outbound restriction on smtp?
if, yes then how can I lift up the restriction please, let me know and for what whom should I contact.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,852 questions
0 comments No comments
{count} votes

Accepted answer
  1. Manu Philip 16,966 Reputation points MVP
    2020-06-15T16:23:35.883+00:00

    Hi,
    I guess, your email administrator can help on this. Here the relay request is coming form Azure which has a public IP. You can provide the IP to your email administrator. They can create the connector for this purpose. Note that, email systems can't authenticate from unknown sources. Here Azure email relay request is an unknown source and to be resolved

    Please mark as "Accept the answer" if the above steps helps you. Others with similar issues can also follow the solution as per your suggestion

    Regards,

    Manu


2 additional answers

Sort by: Most helpful
  1. Manu Philip 16,966 Reputation points MVP
    2020-06-15T16:11:07.503+00:00

    Hello,

    The mail server you use for relaying the emails should have an associated connector created with required permissions. The mail server you are trying to connect can't understand the mails you are initiating from azure. So, create the required connector and fix it

    Please mark as "Accept the answer" if the above steps helps you. Others with similar issues can also follow the solution as per your suggestion

    Regards,

    Manu


  2. Andy David 701 Reputation points
    2020-06-15T17:20:50.047+00:00

    Unauthenticated outbound SMTP on port 25 is blocked in Azure.
    See: https://learn.microsoft.com/en-us/azure/virtual-network/troubleshoot-outbound-smtp-connectivity

    See the Pay as you Go section for how to remove the restriction or use a service that supports authenticated mail.

    0 comments No comments