You are not logged in.

#1 2007-10-07 04:31:52

kandrews
Member
Registered: 2007-04-21
Posts: 119

getting offlineimap working

I'm trying figure out offlineimap but I'm having trouble getting offlineimap working in the first place.  Here is my .offlineimaprc:

[general]
accounts = gmail
ui = Curses.Blinkenlights  

[Account gmail]
localrepository = mylocal  
remoterepository = myremote
autorefresh = 5

[Repository mylocal]
type = Maildir 
localfolders = ~/Mail 

[Repository myremote]
type = IMAP 
remotehost = imap.gmail.com 
ssl = yes
remoteport = 465
remoteuser = <my gmail account> 
remotepass = <my gmail password>

Here is the error I'm getting:

Thread 'Account sync gmail' terminated with exception:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/offlineimap/threadutil.py", line 153, in run
    Thread.run(self)
  File "/usr/lib/python2.5/threading.py", line 440, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.5/site-packages/offlineimap/accounts.py", line 118, in syncrunner
    self.sync()
  File "/usr/lib/python2.5/site-packages/offlineimap/accounts.py", line 133, in sync
    remoterepos.syncfoldersto(localrepos)
  File "/usr/lib/python2.5/site-packages/offlineimap/repository/Base.py", line 130, in syncfoldersto
    srcfolders = src.getfolders()
  File "/usr/lib/python2.5/site-packages/offlineimap/repository/IMAP.py", line 170, in getfolders
    imapobj = self.imapserver.acquireconnection()
  File "/usr/lib/python2.5/site-packages/offlineimap/imapserver.py", line 180, in acquireconnection
    imapobj = UsefulIMAP4_SSL(self.hostname, self.port)
  File "/usr/lib/python2.5/imaplib.py", line 1128, in __init__
    IMAP4.__init__(self, host, port)
  File "/usr/lib/python2.5/imaplib.py", line 184, in __init__
    self.welcome = self._get_response()
  File "/usr/lib/python2.5/imaplib.py", line 931, in _get_response
    raise self.abort("unexpected response: '%s'" % resp)
abort: unexpected response: '220 mx.google.com ESMTP c12sm7800019nzc'


Last 1 debug messages logged for Account sync gmail prior to exception:
maildir: MaildirRepository initialized, sep is '.'

Thanks for any help you can give me in figuring this out. smile

Offline

#2 2007-10-07 19:23:26

briest
Member
From: Katowice, PL
Registered: 2006-05-04
Posts: 468

Re: getting offlineimap working

kandrews wrote:

remoteport = 465

Well...

kandrews wrote:

File "/usr/lib/python2.5/imaplib.py", line 931, in _get_response
    raise self.abort("unexpected response: '%s'" % resp)
abort: unexpected response: '220 mx.google.com ESMTP c12sm7800019nzc'

...port 465 is for SMTP over SSL and has little to do with IMAP. Try 993 instead.

Offline

Board footer

Powered by FluxBB