473,399 Members | 3,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

smtplib bug with Windows XP

I'm having problem with a script that used to work under Win2k but is
now broken after an install of WinXP Pro. I can no longer connect to a
local mail server. Has anyone else seen this? If so, were you able to
work around it? Here's the traceback (below). Interestingly, if I
change ports to the POP port 110, I get a different error, but one that
lets me know that I can reach the server.

trying to connect on the SMTP port 25:
s = smtplib.SMTP('10.50.200.6',25) Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "C:\Programs\Python24\Lib\smtplib.py", line 241, in __init__
(code, msg) = self.connect(host, port)
File "C:\Programs\Python24\Lib\smtplib.py", line 303, in connect
raise socket.error, msg
socket.error: (10053, 'Software caused connection abort')

trying to connect on POP port 110:
s = smtplib.SMTP('10.50.200.6',110)

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "C:\Programs\Python24\Lib\smtplib.py", line 243, in __init__
raise SMTPConnectError(code, msg)
smtplib.SMTPConnectError: (-1, 'Microsoft Exchange 2000 POP3 server
version 6.0.
6249.0 (11exg01.es.int) ready.')

All clues gratefully accepted!
S

Jul 18 '05 #1
6 2309
st***************@gmail.com wrote:
I'm having problem with a script that used to work under Win2k but is
now broken after an install of WinXP Pro. I can no longer connect to a
local mail server. Has anyone else seen this? If so, were you able to
work around it? Here's the traceback (below).
The usual first step to troubleshooting such a problem is to
use Telnet to connect manually. Type this "telnet 10.50.200.6 25"
and see what you get. If it appears correct (it helps to know
some of the SMTP protocol: you should get a "220" response here
plus the host's name), type "helo blech.org" or something like
that to see the response. "Help" is usually a valid command
at this point. If you can't do this manually, then smtplib
certainly cannot either.
Interestingly, if I
change ports to the POP port 110, I get a different error, but one that
lets me know that I can reach the server.


"ping" would let you know you can reach the server as well,
but using SMTP to connect to a POP3 server is perhaps a
somewhat more complicated and hopeless, but interesting
way to do the same thing. <wink>
s = smtplib.SMTP('10.50.200.6',25)


Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "C:\Programs\Python24\Lib\smtplib.py", line 241, in __init__
(code, msg) = self.connect(host, port)
File "C:\Programs\Python24\Lib\smtplib.py", line 303, in connect
raise socket.error, msg
socket.error: (10053, 'Software caused connection abort')


Try manually, but think about these options: a firewall that
has suddenly been enabled, an SMTP server that now requires
authentication, some kind of proxy like what virus scanners
use (though why they would intercept outgoing mail I don't
know)...

-Peter
Jul 18 '05 #2
Try manually, but think about these options: a firewall that
has suddenly been enabled, an SMTP server that now requires
authentication, some kind of proxy like what virus scanners
use (though why they would intercept outgoing mail I don't
know)...

-Peter


I bet it was the firewall on XP.

Jul 18 '05 #3
thank Peter, elbert, for the suggestions. I hadn't thought of using
telnet to try to connect to the SMTP server. and when I do try, telnet
can't connect either, at least on port 25. On port 110, it has no
problem. So, perhaps the IT people have made some configuration
changes; I'll have a chat with them. I'm relieved that it's not a
Python problem, though.

Jul 18 '05 #4
In article <11**********************@f14g2000cwb.googlegroups .com>, st***************@gmail.com wrote:
thank Peter, elbert, for the suggestions. I hadn't thought of using
telnet to try to connect to the SMTP server. and when I do try, telnet
can't connect either, at least on port 25. On port 110, it has no
problem. So, perhaps the IT people have made some configuration
changes; I'll have a chat with them. I'm relieved that it's not a
Python problem, though.


We had similar issues when our systems were upgraded to McAfee VirusScan
8.0. If you're running that locally (on the system trying to connect to
the SMTP server), try disabling the rule in the Access Control dialog
that's labeled 'Prevent mass mailing worms from sending email'
-Steve
Jul 18 '05 #5
Steve Christensen wrote:
In article <11**********************@f14g2000cwb.googlegroups .com>, st***************@gmail.com wrote:
thank Peter, elbert, for the suggestions. I hadn't thought of using
telnet to try to connect to the SMTP server. and when I do try, telnet
can't connect either, at least on port 25. On port 110, it has no
problem. So, perhaps the IT people have made some configuration
changes; I'll have a chat with them. I'm relieved that it's not a
Python problem, though.


We had similar issues when our systems were upgraded to McAfee VirusScan
8.0. If you're running that locally (on the system trying to connect to
the SMTP server), try disabling the rule in the Access Control dialog
that's labeled 'Prevent mass mailing worms from sending email'


How do such tools still allow the sending of valid emails?

-Peter
Jul 18 '05 #6
it works! you da man!

At the same time as my desktop was upgraded to Windows XP, the IT
people switched virus checker products to McAfee Enterprise. And
indeed, as soon as I disabled that 'mass worm sending' option, my
Python scripts is once again able to send mail.
thanks so much for this tip! 247 karma points for you.

S

Jul 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Bill | last post by:
I am trying to have the capability to email attachments. Specifically I want to be able to email a specific attachment that I name that may be a PDF document, text doc, etc. I already have a...
2
by: Copelandia Cyanescens | last post by:
Python Python 2.3.4, Windows, "clean" install, using the example code given in the documentation, I get this... Traceback (most recent call last): File "C:\projects\email\email.py", line 24, in...
0
by: Tim Williams | last post by:
I have a working SMTP client that I need to add TLS capability to, I absolutely need the client to timeout within a specified time, but when I use the sock.timeout() line it freezes the reading...
8
by: Jon Hewer | last post by:
hi having a few problems sending an email with smtplib. i do have an smtp server running on port 25 of my local machine here's the relevant code (taken from python docs): s =...
3
by: Van_Gogh | last post by:
Hi, I am learning how to use the smtplib module, but am having some very early problems, maybe because I don't understand it. So, am I correct that by following the example in the Python: >>>...
0
by: Roger | last post by:
I am having a problem sending email through smtp.gmail.com using smtplib. Everything works and the mail is sent and received, except quit. The following shows the problem (without bothering to...
3
by: Evan | last post by:
Hello - I'm new with Python, I try to do a mail problem, the code likes below: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ import smtplib import mimetypes from...
5
by: zxo102 | last post by:
Hi, I am trying to use python module smtplib to send my email out on window xp (localhost). import smtplib server = smtplib.SMTP('localhost') but I got the error information as follows: ...
1
by: Hunter | last post by:
I am writing a script that needs to send some emails. And I've used smtplib in the past and it is pretty easy. But I thought, gee it would be easier if I could just call it as a function, passing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.