Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-19-2007, 02:22 PM
Loyal Member
 
Posts: 80
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!
Reply With Quote
  #2 (permalink)  
Old 04-19-2007, 09:47 PM
Zimbra Employee
 
Posts: 1,434
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!
Reply With Quote
  #3 (permalink)  
Old 04-20-2007, 07:48 AM
Loyal Member
 
Posts: 80
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!
Reply With Quote
  #4 (permalink)  
Old 04-20-2007, 11:13 AM
Zimbra Employee
 
Posts: 1,434
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!
Reply With Quote
  #5 (permalink)  
Old 04-20-2007, 12:51 PM
Loyal Member
 
Posts: 80
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.
Reply With Quote
  #6 (permalink)  
Old 04-20-2007, 12:57 PM
Advanced Member
 
Posts: 215
Default

I think we need a new "related topic" section for peoples imapsync recipes
Reply With Quote
  #7 (permalink)  
Old 04-22-2007, 11:48 AM
Outstanding Member
 
Posts: 705
Default

Or some imapsync user-content on the wiki, too
Reply With Quote
  #8 (permalink)  
Old 04-22-2007, 11:51 AM
Advanced Member
 
Posts: 215
Wink Good Point

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.