offlineimap to FirstClass and Zimbra
Val Genova
val at email.com.ph
Thu Jun 3 13:36:15 BST 2010
Hi,
I previously posted a question regarding zimbra and firstclass
migration using offlineimap. And here posting it again revising
my question supported with some trial and errors I made.
First test, to offlineimap zimbra server to a localdirectory,
Below is the config I made, I was able to sync my zimbra mail
to my ~/.offlineimap-zimbra
Second test, the remote server is the firstclass server,
with ssl = yes, again to my localdirectory, it didnt even
prompt for a password, when I removed the ssl settings
it prompt for a password but just stays there or hang.
Below is the errors I got:
(see complete error below)
Last 1 debug messages logged for Account sync Test prior to exception:
maildir: MaildirRepository initialized, sep is '.'
I tried using imapsync to see what type of authentication the firsclass
server
uses and it uses CRAM-MD5, in imapsync I was able to sync zimbra and
FirstClass, but imapsync is only one way, unlike offlineimap which sync
both ways.
My question is Does anybody here have used offlineimap to zimbra and
Firstclass
Second is how do I use CRAM-MD5 for authentication.
thanks in advance
val
####################################
zimbra to local settings
# suit to get started fast.
[general]
accounts = Test
ui = TTY.TTYUI
[Account Test]
localrepository = Local
remoterepository = Remote
[Repository Local]
type = Maildir
localfolders = ~/.offlineimap-zimbra
sep = .
restoreatime = no
[Repository Remote]
type = IMAP
remotehost = remotezimbra.server
remoteuser = my.user at remotezimbra.server
ssl = yes
==============
##############################################
#fcserver to localdirectory
# Sample minimal config file. Copy this to ~/.offlineimaprc and edit to
# suit to get started fast.
[general]
accounts = Test
ui = TTY.TTYUI
[Account Test]
localrepository = Local
remoterepository = Remote
[Repository Local]
type = Maildir
localfolders = ~/.offlineimap-fc
#sep = .
restoreatime = no
[Repository Remote]
type = IMAP
remotehost = my.firstclass.server
remoteuser = uploader
ssl = yes
nametrans = lambda foldername: re.sub('^INBOX\.', '.', foldername)
###########################################################3
Here is the debug
***** Processing account Test
Account sync Test:
Copying folder structure from IMAP to Maildir
Account sync Test:
Establishing connection to 203.119.4.43:993.
Thread 'Account sync Test' terminated with exception:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/offlineimap/threadutil.py", line
149, in run
Thread.run(self)
File "/usr/lib64/python2.4/threading.py", line 422, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.4/site-packages/offlineimap/accounts.py", line
108, in syncrunner
self.sync()
File "/usr/lib/python2.4/site-packages/offlineimap/accounts.py", line
142, in sync
remoterepos.syncfoldersto(localrepos, [statusrepos])
File "/usr/lib/python2.4/site-packages/offlineimap/repository/Base.py",
line 135, in syncfoldersto
srcfolders = src.getfolders()
File "/usr/lib/python2.4/site-packages/offlineimap/repository/IMAP.py",
line 194, in getfolders
imapobj = self.imapserver.acquireconnection()
File "/usr/lib/python2.4/site-packages/offlineimap/imapserver.py", line
224, in acquireconnection
self.sslclientkey, self.sslclientcert)
File "/usr/lib64/python2.4/imaplib.py", line 1101, in __init__
IMAP4.__init__(self, host, port)
File "/usr/lib64/python2.4/imaplib.py", line 160, in __init__
self.open(host, port)
File "/usr/lib/python2.4/site-packages/offlineimap/imapserver.py", line
65, in open
imaplibutil.new_open_ssl(self, host, port)
File "/usr/lib/python2.4/site-packages/offlineimap/imaplibutil.py", line
168, in new_open_ssl
raise socket.error(last_error)
error: 111
Last 1 debug messages logged for Account sync Test prior to exception:
maildir: MaildirRepository initialized, sep is '.'
More information about the OfflineIMAP-project
mailing list