Windows Server2008: Does the smtp port open insufficiently to send mail?

I wrote a simple C # program that sends email notifications. It works fine on Windows 7, but it does not work on server 2008.

I read a little about it, but I don’t see what prevents me from sending mail. I opened port 587 (SSL port for Gmail) outgoing and incoming (TCP), but still no luck. I even opened the firewall for the whole program. Are there certain settings in Windows Server that I should be aware of?

* Edit - no other firewalls other than windows.

Stack trace:

System.Net.Mail.SmtpException: Failure sending mail.
---> System.Net.WebException: Unable to connect to the remote server
---> System.Net.Sockets.SocketException: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full 74.125 ..: 587
     at System.Net.Sockets.Socket.DoConnect (EndPoint endPointSnapshot, SocketAddress socketAddress)
     at System.Net.ServicePoint.ConnectSocketInternal (Boolean connectFailure, Socket s4, Socket s6, Socket & socket, IPAddress & address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception & exception)
--- End of inner exception stack trace ---

EDIT: I found my answer: the problem was not related to the Windows server. This is due to the fact that he could not connect to my database. I was a fool. I used to get a connection error when I was unable to connect to the database, but now all I got was weird error messages; one of which was posted here.

Thank you all for your help! Great to get help so fast.

+3
source share
3 answers

The key is an exception, and I doubt this is related to your firewall:

System.Net.Sockets.SocketException: An operation on a socket could not be performed 
because the system lacked sufficient buffer space or because a queue was full

There is a Microsoft KB article that might be worth considering, this is for Windows 2003, but I would still research it:

: " -" - IPAddress

, Windows 2008, , Windows EBS, ( ):

EBS 5-7

, , . enum.exe, , .

:

SocketException #?

+2

, - :-)

  • Try disabling the firewall and letting it go. It could be something really different than the Windows 2008 firewall blocking your path.
  • Try to run telnet yourSmtpServer 587that you are trying to achieve
0
source

All Articles