Install Zimbra as Local Project & IntelliJ Remote Debug

Prepare Your Zimbra Workspace Ready for Debug

Photo by Lance Asper on Unsplash
<dependency org="org.apache.httpcomponents" name="httpclient" rev="4.5.8"/>
<dependency org="org.apache.httpcomponents" name="httpasyncclient" rev="4.1.3"/>
<dependency org="org.apache.httpcomponents" name="httpcore" rev="4.4.11"/>
<dependency org="org.apache.httpcomponents" name="httpcore-nio" rev="4.4.11"/>
<dependency org="org.apache.httpcomponents" name="httpmime" rev="4.5.8"/>
<dependency org="xerces" name="xercesImpl" rev="2.9.1"/>

Remote Debug

cd /opt/zimbra/conf
sudo cp localconfig.xml localconfig_ORIGINAL.xml
sudo -u zimbra /opt/zimbra/bin/zmcontrol stopsudo cp /opt/zimbra/libexec/zmmailboxdmgr /opt/zimbra/libexec/zmmailboxdmgr.ORIGINAL
sudo cp /opt/zimbra/libexec/zmmailboxdmgr.unrestricted /opt/zimbra/libexec/zmmailboxdmgr
cd /opt/zimbra/libexecsudo mv zmmailboxdmgr zmmailboxdmgr.sav
sudo ln -s zmmailboxdmgr.unrestricted zmmailboxdmgr
sudo nano /opt/zimbra/conf/localconfig.xml* search "mailboxd_java_options" and append
sudo -u zimbra /opt/zimbra/bin/zmcontrol start
chown -R zimbra:zimbra /opt/zimbra
/opt/zimbra/libexec/zmfixperms -verbose
sudo -u zimbra /opt/zimbra/bin/zmcontrol start
sudo netstat — tcp — udp — listening — programsudo netstat -tulpn | grep LISTEN

IntelliJ remote debug config:



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nil Seri

I would love to change the world, but they won’t give me the source code | coding 👩🏼‍💻 | coffee ☕️ | jazz 🎷 | anime 🐲 | books 📚 | drawing 🎨