Solved

Exchange ports for outlook client communication.

Posted on 2013-06-12
6
1,212 Views
Last Modified: 2013-06-12
I have been asked to clarify what type of mail activity is using TCP 40740.  I pulled netstat on the CAS server and found a number of ports on the exchange server that are listening and servicing client systems.  I was looking for a document that explained how the ports are used and that they were servicing outlook client requests.

Server:  2008 with exchange 2010.
Outlook 2010 clients.

Below are the listening ports and then some of the client connections in question.

Proto  Local Address          Foreign Address        State
  TCP    0.0.0.0:25             MAIL01:0         LISTENING
  TCP    0.0.0.0:80             MAIL01:0         LISTENING
  TCP    0.0.0.0:110            MAIL01:0         LISTENING
  TCP    0.0.0.0:135            MAIL01:0         LISTENING
  TCP    0.0.0.0:143            MAIL01:0         LISTENING
  TCP    0.0.0.0:443            MAIL01:0         LISTENING
  TCP    0.0.0.0:445            MAIL01:0         LISTENING
  TCP    0.0.0.0:587            MAIL01:0         LISTENING
  TCP    0.0.0.0:593            MAIL01:0         LISTENING
  TCP    0.0.0.0:808            MAIL01:0         LISTENING
  TCP    0.0.0.0:993            MAIL01:0         LISTENING
  TCP    0.0.0.0:995            MAIL01:0         LISTENING
  TCP    0.0.0.0:2002           MAIL01:0         LISTENING
  TCP    0.0.0.0:3389           MAIL01:0         LISTENING
  TCP    0.0.0.0:5060           MAIL01:0         LISTENING
  TCP    0.0.0.0:5067           MAIL01:0         LISTENING
  TCP    0.0.0.0:6001           MAIL01:0         LISTENING
  TCP    0.0.0.0:6002           MAIL01:0         LISTENING
  TCP    0.0.0.0:6004           MAIL01:0         LISTENING
  TCP    0.0.0.0:6005           MAIL01:0         LISTENING
  TCP    0.0.0.0:6006           MAIL01:0         LISTENING
  TCP    0.0.0.0:6007           MAIL01:0         LISTENING
  TCP    0.0.0.0:8081           MAIL01:0         LISTENING
  TCP    0.0.0.0:8400           MAIL01:0         LISTENING
  TCP    0.0.0.0:8402           MAIL01:0         LISTENING
  TCP    0.0.0.0:8404           MAIL01:0         LISTENING
  TCP    0.0.0.0:12706          MAIL01:0         LISTENING
  TCP    0.0.0.0:18037          MAIL01:0         LISTENING
  TCP    0.0.0.0:18043          MAIL01:0         LISTENING
  TCP    0.0.0.0:40551          MAIL01:0         LISTENING
  TCP    0.0.0.0:40558          MAIL01:0         LISTENING
  TCP    0.0.0.0:40615          MAIL01:0         LISTENING
  TCP    0.0.0.0:40618          MAIL01:0         LISTENING
  TCP    0.0.0.0:40677          MAIL01:0         LISTENING
  TCP    0.0.0.0:40691          MAIL01:0         LISTENING
  TCP    0.0.0.0:40736          MAIL01:0         LISTENING
  TCP    0.0.0.0:40740          MAIL01:0         LISTENING
  TCP    0.0.0.0:40776          MAIL01:0         LISTENING
  TCP    0.0.0.0:40790          MAIL01:0         LISTENING
  TCP    0.0.0.0:40791          MAIL01:0         LISTENING
  TCP    0.0.0.0:40805          MAIL01:0         LISTENING
  TCP    0.0.0.0:40847          MAIL01:0         LISTENING
  TCP    0.0.0.0:40855          MAIL01:0         LISTENING
  TCP    0.0.0.0:40856          MAIL01:0         LISTENING
  TCP    0.0.0.0:41264          MAIL01:0         LISTENING
  TCP    0.0.0.0:41289          MAIL01:0         LISTENING
  TCP    0.0.0.0:47001          MAIL01:0         LISTENING
  TCP    0.0.0.0:48000          MAIL01:0         LISTENING
  TCP    0.0.0.0:48001          MAIL01:0         LISTENING
  TCP    0.0.0.0:48004          MAIL01:0         LISTENING
  TCP    0.0.0.0:48005          MAIL01:0         LISTENING
  TCP    0.0.0.0:48006          MAIL01:0         LISTENING
  TCP    0.0.0.0:48007          MAIL01:0         LISTENING
  TCP    0.0.0.0:48008          MAIL01:0         LISTENING
  TCP    0.0.0.0:48009          MAIL01:0         LISTENING
  TCP    0.0.0.0:48010          MAIL01:0         LISTENING
  TCP    0.0.0.0:48011          MAIL01:0         LISTENING
  TCP    0.0.0.0:48012          MAIL01:0         LISTENING
  TCP    0.0.0.0:49415          MAIL01:0         LISTENING
  TCP    0.0.0.0:57944          MAIL01:0         LISTENING
  TCP    0.0.0.0:64327          MAIL01:0         LISTENING

Established

TCP    10.6.133.21:40740      99LP-PBGXMBY:49304     ESTABLISHED
TCP    10.6.133.21:40740      99LP-PBGXMBY:49305     ESTABLISHED
TCP    10.6.133.21:40740      99LP-PB529BE:49385     ESTABLISHED
TCP    10.6.133.21:40740      99LP-PB529BE:49389     ESTABLISHED
TCP    10.6.133.21:40740      99LP-PB535HN:49345     ESTABLISHED
TCP    10.6.133.21:40618      99LP-R8H9Z68:52870     ESTABLISHED
TCP    10.6.133.21:40618      99LP-R8H9Z68:55235     ESTABLISHED
TCP    10.6.133.21:40618      99LP-R83KCLV:58185     ESTABLISHED
0
Comment
Question by:Deitsch
6 Comments
 
LVL 42

Expert Comment

by:Amit
ID: 39242252
I don't see port 40740 used by Exchange, check following KB what ports are used by Exchange
http://technet.microsoft.com/en-us/library/bb331973%28v=exchg.141%29.aspx
0
 
LVL 42

Accepted Solution

by:
Amit earned 125 total points
ID: 39242268
Use below command
Netstat -a -n -o

Check the PID in task manager to find more information.
0
 
LVL 11

Expert Comment

by:James Hodge
ID: 39242422
Port 40740 is not assigned not anything that I know of. Definately not Exchange.
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 38

Assisted Solution

by:Adam Brown
Adam Brown earned 125 total points
ID: 39242559
Exchange 2010 utilizes a random port in a very sizable range for RPC access between server and client and server to server communications by default. This is referred to as the RPC Dynamic Range and goes from port 6005 to port 59530 This should only be accessible on the local network. External Outlook Clients should utilize RPC over HTTPS or Outlook Anywhere to communicate. That only goes over port 443.

http://social.technet.microsoft.com/wiki/contents/articles/864.configure-static-rpc-ports-on-an-exchange-2010-client-access-server.aspx#ExchangeTenRPCClientAccessService has some information on what this does and how to limit the available ports. Note that you don't want to drop the number of available ports too low or you could end up with communication failures and bottlenecks.
0
 
LVL 42

Expert Comment

by:Amit
ID: 39242571
Also there is reg key to limit that port range.
0
 

Author Closing Comment

by:Deitsch
ID: 39242628
Amitkulshrestha netstat options for getting the PID showed what process was using the connections.  All were Microsoft.rpc.clientaccess.service.exe.

Acbrown2010 provided the statement and link pointing to the RPC Dynamic Range.
0

Featured Post

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Question has a verified solution.

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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

895 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

15 Experts available now in Live!

Get 1:1 Help Now