Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Problem connecting to SMTP/IMAP server using SSL

Reply
Thread Tools

Problem connecting to SMTP/IMAP server using SSL

 
 
Julien
Guest
Posts: n/a
 
      03-31-2012
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
 
Reply With Quote
 
 
 
 
Michael Hrivnak
Guest
Posts: n/a
 
      04-02-2012
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 <> 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

 
Reply With Quote
 
 
 
 
Julien
Guest
Posts: n/a
 
      04-02-2012
Hi Michael,

Thanks for your reply. I did try port 993. I know that port generally
works for me, as I can access the Gmail IMAP/SMTP server using SSL. It
also works for that other Exchange server but only when the VPN is
turned on.

Somehow my iPhone works fine without a VPN, as long as it uses SSL. So
I'm really unsure why I can't achieve the same thing from my laptop
using imaplib.IMAP4_SSL() without the VPN turned on.

Thank you,

Julien

On Apr 2, 3:10*pm, Michael Hrivnak <mhriv...@hrivnak.org> wrote:
> 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 <jpha...@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


 
Reply With Quote
 
Michael Hrivnak
Guest
Posts: n/a
 
      04-03-2012
Your phone may be using TLS on the normal IMAP port (143). Or, are
you sure your phone is using IMAP and not active sync?

Michael

On Mon, Apr 2, 2012 at 6:25 PM, Julien <> wrote:
> Hi Michael,
>
> Thanks for your reply. I did try port 993. I know that port generally
> works for me, as I can access the Gmail IMAP/SMTP server using SSL. It
> also works for that other Exchange server but only when the VPN is
> turned on.
>
> Somehow my iPhone works fine without a VPN, as long as it uses SSL. So
> I'm really unsure why I can't achieve the same thing from my laptop
> using imaplib.IMAP4_SSL() without the VPN turned on.
>
> Thank you,
>
> Julien
>
> On Apr 2, 3:10*pm, Michael Hrivnak <mhriv...@hrivnak.org> wrote:
>> 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 <jpha...@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

>
> --
> http://mail.python.org/mailman/listinfo/python-list

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Failed set trust point in ssl context" when using SSL communication emukang Java 0 12-20-2005 04:54 PM
unknown protocol error when connecting to an server via ssl christian_stengel Python 0 01-26-2005 04:29 PM
Problem with SSL (Newbie with SSL) Matti Kiviharju HTML 0 01-14-2005 08:44 PM
How to imbed non-SSL links within SSL pages without using code CW ASP .Net 2 05-02-2004 01:40 PM
Python SSL Socket Client to Java SSL Server. HELP me PLEASE. Krzysztof Paź Python 1 09-26-2003 08:36 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57