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

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 12-26-2011, 12:58 PM
Starter Member
 
Posts: 1
Default Squirrelmail to Zimbra Address Books

Here is a pair of scripts that I created to batch convert addressbook information from squirrelmail to zimbra.

I have only tested this on my versions
squirrelmail 1.4.19 squirrelmail
zimbra 7.1.3_GA_3346

Hopefully this will be of some use for other people and probably for other migrations with some adaptations. The email itself we imported with imap-to-imap

On the squirrelmail side, theres a php script that connects to the squirrelmail database, it creates a csv file for every address book.

Then on the zimbra side, there is a bash script which loops this directory and executes the appropriate import command, which at this version is
"zmmailbox -z -m me@mine.com pru /Contacts mycsv.csv"
The bash script must be executed as 'zimbra' user : do
'su - zimbra'
first
Attached Files
File Type: zip squirrelmail-to-zimbra-contacts.zip (2.0 KB, 17 views)
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.