Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm working on a website, and I need to test the functionality of sending email messages from ASP.NET, something like this:

Dim msg As New MailMessage("email1", "email2")

msg.Subject = "Subject"<br>
msg.IsBodyHtml = True<br>
msg.Body = "Click <a href='site'>here</a>."

Dim client As SmtpClient = New SmtpClient()

client.Host = "My-Server"<br>
client.Port = 25<br>
client.DeliveryMethod = SmtpDeliveryMethod.Network<br>

This is running from a Windows 8 workstation.

I've installed SMTP server on my Windows Server 2012 machine. The mail shows up in the mailroot/Queue folder and sits there, eventually getting deposited into Badmail.

Now I have AT&T U-verse at home, and a few devices connected to the gateway, including let's call it "My-Server."

When I run SmtpDiag from say, datc@... to datc@hotmail.com I get SOA serial number match passed, Local DNS (99-135-60-233.lightspeed.bcvloh.sbcglobal.net) & Remote DNS (hotmail.com) tests *not* passed, and ultimately, Connecting to the server failed. Error: 10060. Failed to submit mail to mx2.hotmail.com error.

When I set My-Server's IP to static and equal to the external IP,, and again run SmtpDiag, I get SOA, Local DNS, and Remote DNS tests passed, but the same 10060 error.

Same for yahoo.com, gmail.com, and so forth.

Is it my ISP's job to fix this? Some PTR record missing somewhere? Is it at all possible to have a home-based SMTP server? All I want is to test my email code. Perhaps, my IP address is just not "trusted" somehow.

share|improve this question
add comment

closed as off topic by John Gardeniers, MDMarra, Michael Hampton, rnxrx, Magellan Oct 22 '12 at 4:42

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.