Results 1 to 8 of 8

Thread: Mail Replication with imapsync

  1. #1
    Join Date
    Mar 2006
    Posts
    80
    Rep Power
    9

    Default Mail Replication with imapsync

    I cobbled together some hardware in our office and installed Zimbra on a second machine. I'd like to use imapsync to replicate email each night. The only hurdle I can't overcome is the fact I need each account's password to auth to the primary server.

    Other than having each user give me their password, is there any other way to authenticate? Can I pull the hashed password out of LDAP and authenticate with that? Can I temporarily reset their password, then restore it to their original password later? I'm pretty handy with perl/bash so I'm not afraid to code up a script or two to accomplish this.

    Thanks!

  2. #2
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default Auth Plain

    AUTH PLAIN should allow you to use the admin login on the Zimbra server to access any of the user accounts. See this thread (especially posts 18 and 20) for details of how to use AUTH PLAIN with imapsync.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Join Date
    Mar 2006
    Posts
    80
    Rep Power
    9

    Default

    Thanks for the reply. I took note of those postings and gave it a shot myself. It doesn't appear that port 7993 is open on either my source or destination Zimbra servers. What do I have to change to open those ports, or should I use a different port?

    Thanks!

  4. #4
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default That's for SSL

    You don't need port 7993 -- that's just if you want to use IMAPs instead of non-SSL IMAP. Use your normal IMAP port instead and don't force SSL.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  5. #5
    Join Date
    Mar 2006
    Posts
    80
    Rep Power
    9

    Default

    Got it working!

    For everyone else, here was my command to do a Zimbra -> Zimbra email replication using imapsync and AUTH PLAIN so I can connect as the admin user without needing to know each users password:

    imapsync --host1 source.server.com --user1 username --authuser1 adminusername --password1 adminpassword --ssl1 --port1 993 --host2 destination.server.com --user2 username --password2 password --authmech2 PLAIN --ssl2 --port2 993 --syncinternaldates --subscribe --subscribed

    In this scenario, source.server.com is my live server with all the email I want replicated, and destination.server.com is my backup server. I have all the accounts replicated on destination.server.com, but all the passwords are set to abc123.

  6. #6
    Join Date
    Mar 2007
    Location
    Regina, Sask.
    Posts
    215
    Rep Power
    8

    Default

    I think we need a new "related topic" section for peoples imapsync recipes

  7. #7
    Join Date
    Dec 2006
    Location
    Minneapolis MN
    Posts
    777
    Rep Power
    10

    Default

    Or some imapsync user-content on the wiki, too

  8. #8
    Join Date
    Mar 2007
    Location
    Regina, Sask.
    Posts
    215
    Rep Power
    8

    Wink Good Point

    I'll start something up there early in the week maybe and collect what I can find around the forums

Similar Threads

  1. Problems with port 25
    By yogiman in forum Installation
    Replies: 57
    Last Post: 06-13-2011, 02:55 PM
  2. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  3. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 09:09 AM
  4. DynDNS and Zimbra
    By afterwego in forum Installation
    Replies: 30
    Last Post: 04-01-2007, 04:34 PM
  5. Mail not getting to mail boxes
    By ehults in forum Installation
    Replies: 5
    Last Post: 10-31-2005, 09:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •