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 09-14-2011, 09:08 AM
Junior Member
 
Posts: 5
Default Set alias as primary address from cli

Hi,

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
Reply With Quote
  #2 (permalink)  
Old 09-14-2011, 12:50 PM
Senior Member
 
Posts: 50
Default

Hi Stefaan,

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

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

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

Code:
zmprov ca fistname.lastname@domain "" zimbraAuthLdapExternalDn lastnamefirstname@AdDomain
Have a nice day.
__________________
Cine - Community Manager - ZeXtras
www.zextras.com
Reply With Quote
  #3 (permalink)  
Old 09-16-2011, 06:34 AM
Junior Member
 
Posts: 5
Default

Hi!

Thank you, works great!

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

Regards, Stefan
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.