How to fix the No connection could be made because the target machine actively refused it 127.0.0.1:25 error - Digital Tool Factory blog How to fix the No connection could be made because the target machine actively refused it 127.0.0.1:25 error - Digital Tool Factory blog

How to fix the No connection could be made because the target machine actively refused it 127.0.0.1:25 error

The Problem: You have a brand new Windows 2008 server and you are testing your web application and trying to send an email.  Every time you try to send an email via the web application you get the following error

“System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:25”

The Cause: SMTP services are not installed on the server, they do not seem to be installed by default.

The Solution: SMTP is not configured on the server.  Go ahead and add in SMTP (it is not installed by default).  It will take about 60 seconds to install.  You will then get the error  “Mailbox unavailable. The server response was: 5.7.1 Unable to relay for [email protected]”.  You then must run on the SMTP relaying services via the IIS 6 interface (for some reason) in start/control panel/administrative tools/internet information services and add the current account from there.

 

This post originally appeared on the Stronico blog – with the absorption of Stronico into Digital Tool Factory this post has been moved to the Digital Tool Factory blog

Tags: ,

 

Written By Steve French

 

One response to “How to fix the No connection could be made because the target machine actively refused it 127.0.0.1:25 error”

Leave a Reply

Your email address will not be published. Required fields are marked *






Copyright 2011 Digital Tool Factory. All Rights Reserved. Powered by raw technical talent. And in this case, WordPress.