View Single Post
  #5 (permalink)  
Old 03-09-2007, 08:04 AM
SpEnTBoY SpEnTBoY is offline
Advanced Member
 
Posts: 215
Default

Quote:
Originally Posted by sickdm View Post
Additionally, some servers don't like plaintext connections, so --ssl1 and --ssl2 flags can be handy:

./imapsync --nosyncacls --syncinternaldates --ssl1 --ssl2 --host1 servername1 --user1 username1 --password1 password1 --host2 servername2 --user2 username1 --password2 password2 --authmech1 LOGIN --authmech2 LOGIN
Just to add to the list (although I'm sure people through trial and error would figure it out) here's what I had to run to sync my courier-imap server with Zimbra:

First on my courier IMAP server I needed to edit the imapd file.

Code:
# pwd
/usr/lib/courier-imap/etc
# vi imapd
I had to add an AUTH method as it wasn't there:
Code:
IMAP_CAPABILITY="IMAP4rev1 AUTH=CRAM-MD5 \
AUTH=CRAM-SHA1 CHILDREN NAMESPACE \
THREAD=ORDEREDSUBJECT THREAD=REFERENCES \
SORT QUOTA IDLE"
Then the sync command I used:
Code:
./imapsync --nosyncacls --syncinternaldates \
--host1 old_host --user1 old_user --password1 'my_pass_1' \
--host2 zimba_host --user2 new_user --password2 'my_pass2' \
--ssl2 --authmech2 PLAIN
--
Lonny
Reply With Quote