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 getting this:

$ sudo netstat -alpv
tcp        0      0 comp.local:35409         ey-in-f16.1e100.n:imaps ESTABLISHED 2782/thunderbird-bi
tcp        0      0 comp.local:52950         ew-in-f16.1e100.n:imaps ESTABLISHED 2782/thunderbird-bi

Why is (or why could be) Thunderbird using such strange ports, if it's configured to use the standard pop3/smpt/imap ports?

share|improve this question

1 Answer 1

up vote 9 down vote accepted

A TCP connection has two sides, one who initiates and one who listens. The listener, or server, must be listening on a well-known destination port, or a destination port known ahead of time.

Ports are required on the initiator or client end as well. It doesn't have to match the destination port, indeed, most operating systems make provision for an initiator to select any available unused port.

What you are looking at is the (random) source port number chosen by Thunderbird client, which is the initiator, and it is connecting to the standard imaps destination port to your email servers, which are the listeners.

share|improve this answer
    
Great, thorough answer. Thank you! –  Tomasz Zieliński Nov 1 '10 at 9:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.