[issue15779] socket error [Errno 10013] when creating SMTP object

Antoine Pitrou report at bugs.python.org
Fri Aug 24 23:42:41 CEST 2012


Antoine Pitrou added the comment:

By the way, please check the return value of getaddrinfo() for your SMTP server:

>>> socket.getaddrinfo("www.gmail.com", 25, 0, socket.SOCK_STREAM)
[(2, 1, 6, '', ('74.125.230.213', 25)), (2, 1, 6, '', ('74.125.230.214', 25)), (10, 1, 6, '', ('2a00:1450:4007:802::1016', 25, 0, 0))]

and then try to connect() to each of the addresses. If one of the addresses gives WSAEACCES when connecting, you've got the explanation.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15779>
_______________________________________


More information about the Python-bugs-list mailing list