SMTP server not working with Azure web client

sourav soni 0 Reputation points
2023-05-03T07:45:45.1133333+00:00

I have an ASP.NET Web API project that uses an (GoDaddy) SMTP server to send emails. The project also communicates with Azure web client to access some resources. This setup used to work fine, but now I'm encountering issues i.e. no longer receiving any emails.

I've checked the SMTP server settings, and they are correct. I've also tried to telnet to the server from the API server, and I can connect without any issues.

After some troubleshooting, I've discovered that the issue is related to the Azure web client.

Has anyone else encountered this issue before? Is there a way to make the SMTP server work with the Azure web client in an ASP.NET Web API project? Any help or insights would be appreciated.

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

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 12,966 Reputation points
    2023-05-05T05:14:50.94+00:00

    Hi @sourav soni you mentioned your project was working until recently, did you make any changes to the SMTP server settings? when did it stop working? did you get any specific error messages?

    This issue could be due to the network security group (NSG) settings for your Azure web client. NSGs can be used to restrict traffic to and from Azure resources, and it's possible that the NSG for your web client is blocking traffic to the SMTP server.

    Please check the NSG settings for your Azure web client to see if there are any rules that might be blocking traffic to the SMTP server. You can do this by navigating to the Networking section of your web client in the Azure portal and checking the NSG settings**.**

    If you find that the NSG is blocking traffic to the SMTP server, you can try adding a rule to allow traffic to the SMTP server. You will need to know the IP address or IP address range of the SMTP server in order to create the rule.

    However, you are still having trouble after checking the NSG settings, you may want to try using a different SMTP server to see if the issue is specific to the GoDaddy server. You can also try using a different email client to see if the issue is specific to the Azure web client.

    Hope that helps.

    -Grace

    0 comments No comments