Solved

Exchange 2007   - email client connectiion is being blocked WSAEWOULDBLOCK

Posted on 2010-09-10
12
562 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
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
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create a User Mailbox 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 >> Mailb…
To show how to create a transport rule 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 Mail Flow >> Rules tab.:  To cr…

815 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now