Solved

Exchange 2007   - email client connectiion is being blocked WSAEWOULDBLOCK

Posted on 2010-09-10
12
569 Views
Last Modified: 2012-05-10
Hi..
I have custom email client that used to work fine connecting -  to previous versions of Exchange.
With Exch 20007 the client connection is blocked and returns a  windows socket error of WSAEWOULDBLOCK.   Outlook 2007 connects fine.  I tried using port 135 too...
How can Outlook connect and a winodow socket program can not.  Any ideas?
thanks
0
Comment
Question by:JElster
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
12 Comments
 
LVL 5

Expert Comment

by:michael_b_smith
ID: 33651409
well, the first question has to be: what technology is the program using?

MAPI requires "all ports".

WebDav requires TCP 80 or 443.

EWS requires TCP 443.
0
 
LVL 1

Author Comment

by:JElster
ID: 33651418
It's written in C# using Microsoft .Net    System.Net.Mail.....  you specify the SMTP server and port and user / passs
0
 

Expert Comment

by:ar_m
ID: 33652580
Outlook could sent mail without use SMTP protocol. To send emails by SMTP you need that Exchange Server have the SMTP port listening. Check it : telnet <Ip server> 25 / telnet <Ip server> 465 (SMTPs)
If it not close the socket:
EMC: Server Configuration: Hub Transport, select your server and create a Receive Connectors
0
Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

 
LVL 12

Expert Comment

by:Dave
ID: 33652584
Possibly The windows firewall knows about Outlkook and  you need to add and exception for your program. Could be other firewalls or anti virus.
0
 
LVL 1

Author Comment

by:JElster
ID: 33653358
Telnet did not work... just hung..
The workstation has the firewall off.
How can the Exchange server know that the 'request' is coming from Outlook and block everything else...is that a firewall issue?
0
 
LVL 12

Expert Comment

by:Dave
ID: 33653413
If you are using Outlook using MAPI thats a different protocol to SMTP and port 25 and uses different ports. SO exchange can tell by the ports you use. SO Exchange can be configured

if you hjave McAfee installed that will block access to Port 25. What other protection software is installed on the PC? Norton, McAfee?
0
 
LVL 1

Author Comment

by:JElster
ID: 33653441
I uninstalled Trend Micro.. so no virus scan software in on it.    The setting in Outlook just have the name of the Exch Server.
0
 
LVL 12

Expert Comment

by:Dave
ID: 33653999
not sure whats going on. Can you post a snapshot of the dialog that has the exchange server name..
0
 
LVL 12

Expert Comment

by:Dave
ID: 33654007
sorry I meant the outlook dialog box with the exchange server name in...
0
 
LVL 1

Author Comment

by:JElster
ID: 33654143
It's just the standard Outlook setting screen when connecting to exchange.. with  a text box for Microsoft Exchange Server
0
 
LVL 1

Author Comment

by:JElster
ID: 33654150
Looks like the windows network user/pass is 'tied' to the Exchange Server....
0
 
LVL 12

Accepted Solution

by:
Dave earned 500 total points
ID: 33654206
According to MSDN "The System.Net.Mail namespace contains classes used to send electronic mail to a Simple Mail Transfer Protocol (SMTP) server for delivery" So it needs to connect on port 25.

OUTLOOK does not use SMTP to submit messgaes when its configured a an Exchnage client so it doesn;t need to connect on port 25. It uses MAPI and usually connects on a random port negotiated by the port mapper service.

So its entirley possible for Outlook to work and the system.net.mail namespace to fail.
Even worse, on Exchange 2007 (and 2010) the client access roll which handles MAPI connection may be on a different server to the Hub/Transport roll that handles SMTP message submission. On Exchange 2010 there are recomendations that mail submission uses a different port (465) and SSL.

I suggest you have a chat to your Exchange admins...
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Manage Mobile Phones (devices) 6 56
EXCHANGE 8 28
Exchange management shell 5 35
exchange 2007 5 18
Find out what you should include to make the best professional email signature for your organization.
In-place Upgrading Dirsync to Azure AD Connect
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question