Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #22548

Re: Problem connecting to SMTP/IMAP server using SSL

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <mhrivnak@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; '>>>>': 0.09; 'cc:addr:python-list': 0.10; 'sender:addr:gmail.com': 0.13; 'sat,': 0.14; 'fine.': 0.16; 'hangs': 0.16; 'subject:Problem': 0.16; 'subject:SSL': 0.16; 'subject:using': 0.16; 'vpn,': 0.16; 'ssl': 0.17; 'wrote:': 0.19; 'import': 0.20; '31,': 0.21; 'header :In-Reply-To:1': 0.22; 'connected': 0.24; 'message- id:@mail.gmail.com': 0.24; 'cc:2**0': 0.26; 'subject:/': 0.27; 'cc:no real name:2**0': 0.27; 'cc:addr:python.org': 0.28; 'url:mailman': 0.29; 'hi,': 0.29; "i'm": 0.29; 'url:python': 0.32; 'received:209.85': 0.32; 'expect': 0.32; 'received:google.com': 0.32; 'received:209.85.214': 0.33; 'method': 0.33; 'url:listinfo': 0.33; 'server': 0.33; 'uses': 0.34; 'am,': 0.34; 'smtp': 0.34; 'received:209': 0.35; 'thanks': 0.35; 'url:org': 0.35; 'why': 0.37; 'michael': 0.37; 'subject:: ': 0.37; 'header:Received:5': 0.40; 'url:mail': 0.40; "won't": 0.40; 'exchange': 0.61; '2012': 0.62; 'times': 0.62; 'lot,': 0.95
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=hK0ROgSOai23eGMRqCTfNDCF179Q6Au9LqT6ASYsLiY=; b=teDZP0NkWfUIjOLPWNeKnQNIuizO50stSuuollRfum3hmi8Ydd11Yu8nXGFiunz7V7 z2fBeoYK3eYA8JQIdqmqFLxfKiBybS2yK9jo/nro9plRZXGznPduN0zKCIEJTZcI1zlg vs+6PlpIm6u+A8fIVf/S7PkmJVU1pSQYLQIbpuaRlFsmt9ZhaAQuT0DPSkonqMdpw9SW a1Ofj3fFUNnq95IYOO8cXE7YBYTE/t3UcunMYZEez5dtur0aAiYCD9klO2D7x+pPTddQ 2a1lKCuq7PtdPPHdGbgNh8MYyMV0TIuyWz1tzox1px5Oh9gMI4YIWqsqSUGDvf6eWIlo Vetg==
MIME-Version 1.0
Sender mhrivnak@gmail.com
In-Reply-To <722270ac-367f-4058-84ed-92ba10f4516a@ur9g2000pbc.googlegroups.com>
References <722270ac-367f-4058-84ed-92ba10f4516a@ur9g2000pbc.googlegroups.com>
Date Mon, 2 Apr 2012 18:10:18 -0400
X-Google-Sender-Auth uWvCXEcso4OvzPL1yGNuPHwTnNA
Subject Re: Problem connecting to SMTP/IMAP server using SSL
From Michael Hrivnak <mhrivnak@hrivnak.org>
To Julien <jphalip@gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1240.1333404619.3037.python-list@python.org> (permalink)
Lines 30
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1333404619 news.xs4all.nl 6844 [2001:888:2000:d::a6]:43644
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:22548

Show key headers only | View raw


That method uses the default port 993.  Can you connect to that port
at all from your computer?  For example, try using a telnet client.

Michael



On Sat, Mar 31, 2012 at 1:39 AM, Julien <jphalip@gmail.com> wrote:
> Hi,
>
> I'm able to connect to an Exchange server via SMTP and IMAP from my
> iPhone using SSL and without using a VPN. So I would expect to be able
> to do the same from my computer using Python.
>
> However, the following hangs and times out on my computer when I'm not
> connected to the VPN:
>
>>>> import imaplib
>>>> imap = imaplib.IMAP4_SSL("my.server.address")
>
> If I am connected to the VPN, then it works fine.
>
> Do you know why it won't work with SSL and without the VPN? Am I
> missing something?
>
> Thanks a lot,
>
> Julien
> --
> http://mail.python.org/mailman/listinfo/python-list

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Problem connecting to SMTP/IMAP server using SSL Julien <jphalip@gmail.com> - 2012-03-30 22:39 -0700
  Re: Problem connecting to SMTP/IMAP server using SSL Michael Hrivnak <mhrivnak@hrivnak.org> - 2012-04-02 18:10 -0400
    Re: Problem connecting to SMTP/IMAP server using SSL Julien <jphalip@gmail.com> - 2012-04-02 15:25 -0700
      Re: Problem connecting to SMTP/IMAP server using SSL Michael Hrivnak <mhrivnak@hrivnak.org> - 2012-04-02 21:57 -0400

csiph-web