Results 1 to 9 of 9

Thread: Exporting Users Accounts

  1. #1
    Join Date
    Feb 2010
    Posts
    10
    Rep Power
    5

    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.

  2. #2
    Join Date
    Aug 2009
    Location
    The Hague -- The Netherlands
    Posts
    214
    Rep Power
    6

    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

  3. #3
    Join Date
    Feb 2010
    Posts
    10
    Rep Power
    5

    Default

    Thanks, but the password attribute dont't visible

    This is the result:

    [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 ??

  4. #4
    Join Date
    Aug 2009
    Location
    The Hague -- The Netherlands
    Posts
    214
    Rep Power
    6

    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.

  5. #5
    Join Date
    Feb 2010
    Posts
    10
    Rep Power
    5

    Default

    Thanks Hivos,

    Any way to export all mail received to this accounts and export it too to new server ??

  6. #6
    Join Date
    Jan 2008
    Posts
    223
    Rep Power
    7

    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.

  7. #7
    Join Date
    Feb 2010
    Posts
    10
    Rep Power
    5

    Default

    How can i do that althrough command prompt ?

    Thanks for answer.

  8. #8
    Join Date
    Aug 2009
    Location
    The Hague -- The Netherlands
    Posts
    214
    Rep Power
    6

    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.

  9. #9
    Join Date
    Jan 2008
    Posts
    223
    Rep Power
    7

    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

Similar Threads

  1. Provisioning postfix users zimbra+Samba
    By mickier in forum Administrators
    Replies: 1
    Last Post: 12-06-2009, 01:31 AM
  2. Common mailbox (or mail account) for some users
    By santiago78 in forum Administrators
    Replies: 6
    Last Post: 10-27-2008, 03:32 PM
  3. Replies: 3
    Last Post: 08-08-2008, 09:59 AM
  4. Replies: 6
    Last Post: 07-04-2008, 01:11 AM
  5. Set Zimbra to Automatically Download from POP3 Accounts
    By dbachman in forum Administrators
    Replies: 1
    Last Post: 08-29-2007, 09:05 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
  •