Skip to content

Instantly share code, notes, and snippets.

@LuisCardenasSolis
Last active June 4, 2020 05:37
Show Gist options
  • Save LuisCardenasSolis/c2098d16a3ac90a89c0ad6bdca6cf211 to your computer and use it in GitHub Desktop.
Save LuisCardenasSolis/c2098d16a3ac90a89c0ad6bdca6cf211 to your computer and use it in GitHub Desktop.
Create and deployment custom zimlets - Zimbra

Create zimlet zip

First verify that the js code is compiled to es5 [You can use buildES5 script]

/opt/zimbra/bin/zmzimletctl createZip zimlet_prod

Deploy zimlet zip

Enable zimlet in COS

/opt/zimbra/bin/zmzimletctl deploy zimlet_prod.zip
/opt/zimbra/libexec/zmfixperms

Verify deploy

/opt/zimbra/bin/zmzimletctl listZimlets

Undeploy zimlet zip

/opt/zimbra/bin/zmzimletctl undeploy zimlet_prod
/opt/zimbra/bin/zmprov fc zimlet

Enable compilation of JSP files

su - zimbra
zmprov mcf zimbraZimletJspEnabled TRUE
zmmailboxdctl restart

Directory of external libraries(jars) of the zimlets with java backend

/opt/zimbra/jetty_base/webapps/zimlet/WEB-INF/lib/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment