Mémo commandes Zimbra

Afficher la configuration d'un domaine

sudo -u zimbra /opt/zimbra/bin/zmprov gd fws.fr

Configurer l'adresse de l'interface d'admin pour un domaine

sudo -u zimbra /opt/zimbra/bin/zmprov md fws.fr zimbraWebClientAdminReference https://zma.fws.fr/

Configurer le provisionning AD / LDAP

sudo -u zimbra /opt/zimbra/bin/zmprov md fws.fr zimbraAutoProvAccountNameMap "samAccountName" sudo -u zimbra /opt/zimbra/bin/zmprov md fws.fr +zimbraAutoProvAttrMap description=description sudo -u zimbra /opt/zimbra/bin/zmprov md fws.fr +zimbraAutoProvAttrMap displayName=displayName sudo -u zimbra /opt/zimbra/bin/zmprov md fws.fr +zimbraAutoProvAttrMap givenName=givenName sudo -u zimbra /opt/zimbra/bin/zmprov md fws.fr +zimbraAutoProvAttrMap cn=cn sudo -u zimbra /opt/zimbra/bin/zmprov md fws.fr +zimbraAutoProvAttrMap sn=sn sudo -u zimbra /opt/zimbra/bin/zmprov md fws.fr zimbraAutoProvAuthMech LDAP sudo -u zimbra /opt/zimbra/bin/zmprov md fws.fr zimbraAutoProvBatchSize 50 sudo -u zimbra /opt/zimbra/bin/zmprov md fws.fr zimbraAutoProvLdapAdminBindDn "CN=Zimbra,OU=Apps,DC=fws,DC=fr" sudo -u zimbra /opt/zimbra/bin/zmprov md fws.fr zimbraAutoProvLdapAdminBindPassword "Sup3rSecrETP4ssPhr@se" sudo -u zimbra /opt/zimbra/bin/zmprov md fws.fr zimbraAutoProvLdapBindDn "zimbra@fws.fr" sudo -u zimbra /opt/zimbra/bin/zmprov md fws.fr zimbraAutoProvLdapSearchBase "OU=People,DC=fws,DC=fr" sudo -u zimbra /opt/zimbra/bin/zmprov md fws.fr zimbraAutoProvLdapSearchFilter "(&(cn=%u)(objectClass=user)(memberOf:1.2.840.113556.1.4.1941:=CN=Role_Mail,OU=Roles,DC=fws,DC=fr)(mail=*))" sudo -u zimbra /opt/zimbra/bin/zmprov md fws.fr zimbraAutoProvLdapURL "ldap://dc.fws.fr:389" sudo -u zimbra /opt/zimbra/bin/zmprov md fws.fr zimbraAutoProvLdapStartTlsEnabled TRUE sudo -u zimbra /opt/zimbra/bin/zmprov md fws.fr zimbraAutoProvMode EAGER sudo -u zimbra /opt/zimbra/bin/zmprov ms zimbra.fws.fr zimbraAutoProvPollingInterval "10m" sudo -u zimbra /opt/zimbra/bin/zmprov ms zimbra.fws.fr +zimbraAutoProvScheduledDomains "fws.fr"