Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #22514 > unrolled thread
| Started by | Julien <jphalip@gmail.com> |
|---|---|
| First post | 2012-03-30 22:39 -0700 |
| Last post | 2012-04-02 21:57 -0400 |
| Articles | 4 — 2 participants |
Back to article view | Back to comp.lang.python
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
| From | Julien <jphalip@gmail.com> |
|---|---|
| Date | 2012-03-30 22:39 -0700 |
| Subject | Problem connecting to SMTP/IMAP server using SSL |
| Message-ID | <722270ac-367f-4058-84ed-92ba10f4516a@ur9g2000pbc.googlegroups.com> |
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
[toc] | [next] | [standalone]
| From | Michael Hrivnak <mhrivnak@hrivnak.org> |
|---|---|
| Date | 2012-04-02 18:10 -0400 |
| Message-ID | <mailman.1240.1333404619.3037.python-list@python.org> |
| In reply to | #22514 |
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
[toc] | [prev] | [next] | [standalone]
| From | Julien <jphalip@gmail.com> |
|---|---|
| Date | 2012-04-02 15:25 -0700 |
| Message-ID | <cfb7d262-98ce-4e1c-93a8-9cd7379d2f1b@lf20g2000pbb.googlegroups.com> |
| In reply to | #22548 |
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
[toc] | [prev] | [next] | [standalone]
| From | Michael Hrivnak <mhrivnak@hrivnak.org> |
|---|---|
| Date | 2012-04-02 21:57 -0400 |
| Message-ID | <mailman.1252.1333418260.3037.python-list@python.org> |
| In reply to | #22551 |
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 <jphalip@gmail.com> 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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web