I have a VPS with Ubuntu 12.04 on it, and I want to use it for email only.
The configuration is: 4GB of RAM, 300GB HDD.

I have problems with the installation, getting the "cannot create the java virtual machine".
I tried many things, googled whatever crossed my mind, but can't find a working solution...

This is the error:

Code:
Configuring SNMP...done.
Setting up syslog.conf...done.
Starting servers...Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Unable to determine enabled services from ldap.
Enabled services read from cache. Service list may be inaccurate.
sh: zmcontrol.status.B3gTN: Permission denied
sh: zmcontrol.status.B3gTN: Permission denied
sh: zmcontrol.status.B3gTN: Permission denied
sh: zmcontrol.status.B3gTN: Permission denied
sh: zmcontrol.status.B3gTN: Permission denied
sh: zmcontrol.status.B3gTN: Permission denied
sh: zmcontrol.status.B3gTN: Permission denied
sh: zmcontrol.status.B3gTN: Permission denied
sh: zmcontrol.status.B3gTN: Permission denied
sh: zmcontrol.status.B3gTN: Permission denied
sh: zmcontrol.status.B3gTN: Permission denied
done.
sh: line 1: Could: command not found
Installing common zimlets...
        com_zimbra_ymemoticons...failed. This may impact system functionality.
        com_zimbra_attachmail...failed. This may impact system functionality.
        com_zimbra_proxy_config...failed. This may impact system functionality.
        com_zimbra_viewmail...failed. This may impact system functionality.
        com_zimbra_clientuploader...failed. This may impact system functionality.
        com_zimbra_bulkprovision...failed. This may impact system functionality.
        com_zimbra_email...failed. This may impact system functionality.
        com_zimbra_date...failed. This may impact system functionality.
        com_zimbra_webex...failed. This may impact system functionality.
        com_zimbra_url...failed. This may impact system functionality.
        com_zimbra_srchhighlighter...failed. This may impact system functionality.
        com_zimbra_attachcontacts...failed. This may impact system functionality.
        com_zimbra_tooltip...failed. This may impact system functionality.
        com_zimbra_adminversioncheck...failed. This may impact system functionality.
        com_zimbra_phone...failed. This may impact system functionality.
        com_zimbra_cert_manager...failed. This may impact system functionality.
Finished installing common zimlets.
Restarting mailboxd...done.
Creating galsync account for default domain...Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
/opt/zimbra/bin/zmshutil: line 39: Error: command not found
failed.

You have the option of notifying Zimbra of your installation...