One option is to run in a container (there is a Docker branch and I have also been experimenting with LXC). My current setup involves forwarding imaps/smtps to the container with mailinabox, then setting up lighttpd to proxy to the nginx instance in the container, so I could easily keep the rest of my site up.