Choosing Source Address to Bind Socket to in IMAP Client

Prasad, Ramit ramit.prasad at
Tue Nov 20 22:58:55 CET 2012

brintoul at wrote:
> Hello:
> I have a multihomed machine that I would like to run the Python imaplib's IMAP4 client on.  I would like to be
> able to specify which interface the underlying socket will bind to as its source address.  How could I best do
> this?

One assumes by programming.

> Thanks for any help...

You are quite welcome. :)

On a less flippant note, maybe some links would help you 
get started.


This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at  

More information about the Python-list mailing list