imaplib unexpected error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • KeefTM

    imaplib unexpected error

    Hello, I am getting an odd error when trying to establish an IMAP
    connection:

    File "/Library/Frameworks/Python.framewor k/Versions/2.4//lib/python2.4/
    imaplib.py", line 904, in _get_response
    raise self.abort("une xpected response: '%s'" % resp)
    imaplib.abort: unexpected response: '220 libertydistribu tion.com ESMTP
    CommuniGate Pro 5.0.9 is glad to see you!'

    I thought 220 was the correct response, so I don't understand why I am
    getting the error. Thanks!

  • KeefTM

    #2
    Re: imaplib unexpected error

    Nevermind. It always seems I figure out what I did wrong right after I
    post. Turns out I was using the wrong port.



    On Nov 12, 12:51 pm, KeefTM <kee...@gmail.c omwrote:
    Hello, I am getting an odd error when trying to establish an IMAP
    connection:
    >
    File "/Library/Frameworks/Python.framewor k/Versions/2.4//lib/python2.4/
    imaplib.py", line 904, in _get_response
    raise self.abort("une xpected response: '%s'" % resp)
    imaplib.abort: unexpected response: '220 libertydistribu tion.com ESMTP
    CommuniGate Pro 5.0.9 is glad to see you!'
    >
    I thought 220 was the correct response, so I don't understand why I am
    getting the error. Thanks!

    Comment

    • Laszlo Nagy

      #3
      Re: imaplib unexpected error

      KeefTM wrote:
      Hello, I am getting an odd error when trying to establish an IMAP
      connection:
      >
      File "/Library/Frameworks/Python.framewor k/Versions/2.4//lib/python2.4/
      imaplib.py", line 904, in _get_response
      raise self.abort("une xpected response: '%s'" % resp)
      imaplib.abort: unexpected response: '220 libertydistribu tion.com ESMTP
      CommuniGate Pro 5.0.9 is glad to see you!'
      >
      I thought 220 was the correct response, so I don't understand why I am
      getting the error. Thanks!
      >
      >
      You are connecting to an SMTP server. :-) Maybe it is using the IMAP
      port? More likely you tried to connect to port 25 which is - usually -
      reserved for SMTP.

      Regards,

      Laszlo

      Comment

      • KeefTM

        #4
        Re: imaplib unexpected error

        On Nov 12, 1:46 pm, Laszlo Nagy <gand...@shopze us.comwrote:
        KeefTM wrote:
        Hello, I am getting an odd error when trying to establish an IMAP
        connection:
        >
        File "/Library/Frameworks/Python.framewor k/Versions/2.4//lib/python2.4/
        imaplib.py", line 904, in _get_response
        raise self.abort("une xpected response: '%s'" % resp)
        imaplib.abort: unexpected response: '220 libertydistribu tion.com ESMTP
        CommuniGate Pro 5.0.9 is glad to see you!'
        >
        I thought 220 was the correct response, so I don't understand why I am
        getting the error. Thanks!
        >
        You are connecting to an SMTP server. :-) Maybe it is using the IMAP
        port? More likely you tried to connect to port 25 which is - usually -
        reserved for SMTP.
        >
        Regards,
        >
        Laszlo
        That's what it was. I put the wrong port number in :) Thanks!

        Comment

        Working...