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

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 03-04-2010, 01:28 PM
Member
 
Posts: 10
Default Exporting Users Accounts

Hello everybody!

Using 64-bit and Fedora 11 Release 6.0.4_GA_2038.F11_64_20091214174340 F11_64 FOSS edition, but I want to migrate all accounts with their passwords to a server with postfix and dovecot, this because my boss does not like Zimbra: (

There are some methods to export the accounts?

Greetings.
Reply With Quote
  #2 (permalink)  
Old 03-04-2010, 04:42 PM
Advanced Member
 
Posts: 192
Default

Copy the usernames, the SSHA hashed passwords, aliases etc to whatever backend you're using to store it.
Code:
zmprov ga <accountname>
This will get you all attributes and their values.

BTW: does your boss know zimbra is running postfix and imap? Or does he just like to see you do double work
Reply With Quote
  #3 (permalink)  
Old 03-05-2010, 05:26 AM
Member
 
Posts: 10
Default

Thanks, but the password attribute dont't visible

This is the result:

Quote:
[zimbra@mail ~]$ zmprov ga sysadmin@mem.gob.ni
# name sysadmin@mem.gob.ni
cn: Administrador Sistemas
displayName: Administrador Sistemas
givenName: Administrador
mail: sysadmin@domain.com
objectClass: organizationalPerson
objectClass: zimbraAccount
objectClass: amavisAccount
sn: Sistemas
uid: sysadmin
userPassword: VALUE-BLOCKED
zimbraAccountStatus: active
zimbraAdminAuthTokenLifetime: 12h
zimbraAllowAnyFromAddress: FALSE
zimbraArchiveAccountDateTemplate: yyyyMMdd
zimbraArchiveAccountNameTemplate: ${USER}-${DATE}@${DOMAIN}.archive
zimbraAttachmentsBlocked: FALSE
zimbraAttachmentsIndexingEnabled: TRUE
zimbraAttachmentsViewInHtmlOnly: FALSE
zimbraAuthTokenLifetime: 2d
zimbraAuthTokenValidityValue: 1
zimbraBatchedIndexingSize: 20
zimbraCalendarCalDavSharedFolderCacheDuration: 1m
zimbraCalendarMaxRevisions: 1
zimbraContactAutoCompleteEmailFields: email,email2,email3
zimbraContactAutoCompleteMaxResults: 20
zimbraContactMaxNumEntries: 10000
Exist any way to know it ??
Reply With Quote
  #4 (permalink)  
Old 03-07-2010, 09:25 AM
Advanced Member
 
Posts: 192
Default

Apparently zmprov copies the behaviour of ldapsearch and doesnt't show the attribute userPassword without authentication (for good reasons).

Easieest way to get it anyway is to use ldapsearch from the cli:
Code:
ldapsearch -H ldap://hostname:389 -x -w <yourldappassword> -D "uid=zimbra,cn=admins,cn=zimbra" uid=<domainuser> | grep userPassword
Get your ldappassword by running:
Code:
zmlocalconfig -s | grep zimbra_ldap_password
Run all commands as user Zimbra.
Reply With Quote
  #5 (permalink)  
Old 03-08-2010, 06:12 AM
Member
 
Posts: 10
Default

Thanks Hivos,

Any way to export all mail received to this accounts and export it too to new server ??
Reply With Quote
  #6 (permalink)  
Old 03-08-2010, 06:57 AM
Special Member
 
Posts: 139
Default

In pref , there is an option to export & Import.Although my experience is that export works & import is required to be done from command prompt.
Reply With Quote
  #7 (permalink)  
Old 03-08-2010, 08:39 AM
Member
 
Posts: 10
Default

How can i do that althrough command prompt ?

Thanks for answer.
Reply With Quote
  #8 (permalink)  
Old 03-09-2010, 01:49 AM
Advanced Member
 
Posts: 192
Default

If I understand correctly you wish to migrate from Zimbra to Dovecot. Since both support IMAP, imapsync is the way to go. The import/export option in Zimbra only works for moving mailboxes between zimbra servers. Plenty of examples of imapsync on the zimbra wiki.
Reply With Quote
  #9 (permalink)  
Old 03-09-2010, 04:38 AM
Special Member
 
Posts: 139
Default

Quote:
Originally Posted by wilbertjoserojasochoa View Post
How can i do that althrough command prompt ?

Thanks for answer.
zmmailbox -z -m mailid@domain.com postRestURL "//?fmt=tgz&resolv=rest" /mnt/disk/mailid.tgz
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.