To delete all stuck messages in mail queue, that have been deferred in zimbra
Login into zimbra shell and issue this command.
sudo /opt/zimbra/postfix/sbin/postsuper -d ALL deferred
**Java installation **
`sudo add-apt-repository ppa:webupd8team/java`
sudo apt-get update