Dec 03

 How to add list of email to Zimbra using Zmprov

What is Zimbra ?

Zimbra is open source server and client software for messaging and collaboration – email, group calendaring, contacts, and web document management and authoring

What is Zmprov ?

Zmprov is a Zimbra tool performs all provisioning tasks in Zimbra LDAP, including creating accounts, aliases, domains, distribution lists, and calendar resources. Each operation is invoked through command-line options, each of which has a long name and a short name.

To use zmprov you must login as zimbra user first from the shell first

# su zimbra

you can create one account with a password that is assigned to the default COS.

$ zmprov ca name@domain.com password

  • Ca= Create Account

You can also add a bunch of email account using this steps :

1. The Zmprov command will accept commands from a file (or stdin) as input. Create a text file ("commands.zmp" for example) with the zmprov subcommands each on a line.

$ vim commands.zmp

and enter this format :

CreateDomain (Domain Name)
createAccount (Email Namel) (Password) displayName ‘(Owner name)’ givenName (Front Name) sn (Last Name)

Example :

  createDomain binus.ac.id
  createAccount andy@binus.ac.id test321 displayName 'Andy Anderson' givenName Andy sn Anderson
  createAccount adit@binus.ac.id test321 displayName 'Adit Pramono' givenName Adit sn Pramono
  createAccount betty@domain.com bety567 displayName 'Betty Brown' givenName Betty sn Brown

then save it as commands.zmp files

2.Then send the contents of the file to zmprov. By the way You can use zimbra or root user to execute it.

As Zimbra:

 $ zmprov < commands.zmp

As Root:

 # cat commands.zmp | su - zimbra -c zmprov
 

Now you can checked the account using this command :

$ zmprov gaa binus.ac.id
andy@binus.ac.id
adit@binus.ac.id
betty@binus.ac.id

You can also use zmprov da to delete an email account

$zmprov da user@domain.com

 

How to reset client mail account password

To reset the administrative password:

$su zimbra
$zmprov sp <admin email address> <new password>

To get a list of all administrators:

$su zimbra
$zmprov gaaa

How to changes Zimbra Logon picture

Just put your custom logo .mg files on /opt/zimbra/jetty-6.1.5/webapps/zimbra/skins/_base/logos/LoginBanner.png , don’t forget to changes the files owner to zimbra:zimbra

 if you want to edit logo url or page you can edit the skin.properties go to
/opt/zimbra/jetty-6.1.5/webapps/zimbra/skins/_base/base/skin.properties

edit this line :
LogoImgDir        = /zimbra/skins/@SkinName@/logos
LogoURL            = http://www.yourcompany.com
 

You can also changes the other modifcation on the login pages on /opt/zimbra/jetty-6.1.5/webapps/zimbra/WEB-INF/classes/messages/ZmMsg.properties

How to changes all account mail quota

you can go to

here

 

Referer : http://wiki.zimbra.com/index.php?title=Zmprov

 

Leave a Reply