Can't connect to MS Exchange (SMTP) from WinXP

Miki Tebeka miki.tebeka at zoran.com
Sun Oct 3 05:35:14 EDT 2004


Hello All,

I can't connect to our Excahnge server using smtplib from a WinXP box.
Connection to the same server from a Linux box works.

The code:
from smtplib import SMTP
s = SMTP("our-mail-server")

Works fine on Linux but gives the following error in WinXP:
raceback (most recent call last):
  File "C:\cygwin\tmp\smtpchk", line 5, in ?
    s = SMTP("our-mail-server")
  File "C:\apps\Python23\lib\smtplib.py", line 240, in __init__
    (code, msg) = self.connect(host, port)
  File "C:\apps\Python23\lib\smtplib.py", line 302, in connect
    raise socket.error, msg
socket.error: (10053, 'Software caused connection abort')

Any ideas?

Thanks.
--
------------------------------------------------------------------------
Miki Tebeka <miki.tebeka at zoran.com>
http://tebeka.spymac.net
The only difference between children and adults is the price of the toys



More information about the Python-list mailing list