Results 1 to 3 of 3

Thread: Set alias as primary address from cli

  1. #1
    stefaan is offline Junior Member
    Join Date
    Dec 2008
    Rep Power

    Default Set alias as primary address from cli


    is there a way to set an alias address als primary address from cli?
    We authenticate our users through active directory, user ids are like lastnamefirstname. For adding new users to zimbra, I use a python script I found somewhere on the internet, that works great.
    Our mail addresses should look like firstname.lastname, no problem to create this alias using the python script. But is there a way to set this alias as the primary address when adding a new user by cli?

    Thank you!

    Regads, Stefan

  2. #2
    Cine.ZxCommunity's Avatar
    Cine.ZxCommunity is offline Senior Member
    Join Date
    Jul 2011
    Rep Power


    Hi Stefaan,

    you can add your users from cli with zmprov command, directly in the form fistname.lastname@domain without password:

    zmprov ca fistname.lastname@domain ""
    and for autentication purpouse you can set the ldap-bind user by setting the zimbraAuthLdapExternalDn attribute:

    zmprov ma fistname.lastname@domain zimbraAuthLdapExternalDn lastnamefirstname@AdDomain
    Obviously, these commands can be merged on only one command:

    zmprov ca fistname.lastname@domain "" zimbraAuthLdapExternalDn lastnamefirstname@AdDomain
    Have a nice day.
    Cine - Community Manager - ZeXtras

  3. #3
    stefaan is offline Junior Member
    Join Date
    Dec 2008
    Rep Power



    Thank you, works great!

    So we have about 700 new Zimbra users (migrated from Cyrus/Squirrelmail).

    Regards, Stefan

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 07-14-2011, 08:16 PM
  2. Replies: 4
    Last Post: 03-31-2008, 11:35 PM
  3. Address Book GAL and alias
    By cedbl in forum Administrators
    Replies: 0
    Last Post: 11-07-2007, 05:20 AM
  4. Update Received Date in Folder-Listing
    By Oswald-Kolle in forum Installation
    Replies: 25
    Last Post: 08-21-2007, 04:21 PM
  5. Replies: 1
    Last Post: 09-10-2005, 09:47 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