Sending emails with remote mail server in ASP.NET blocked by Windows firewall?

Posted by Dave on Server Fault See other posts from Server Fault or by Dave
Published on 2010-05-13T00:31:19Z Indexed on 2010/05/13 0:34 UTC
Read the original article Hit count: 280

I want to migrate a web application from a Windows Server 2003 to a Windows Server 2008 R2. All works fine except sending emails from the application.

If I configure the application to use the smtp server on "localhost" it works, but changing it to the "real" host name (e.g. mail.example.org) no mail is sent. The error message says, that the remote server needs a secure connection or smtp authentication. But since it works when using "localhost" instead of the host name I doubt that this is the problem.

Also it's unlikely a problem with the mail server, I also tried it with another one.

So for me it seems like the firewall is blocking the outgoing connection to the mail server. I tried to open port 25, but it still did not work. Maybe I just did it the wrong way.

© Server Fault or respective owner

Related posts about smtp

Related posts about windows-server-2008