So I have a vps and have apache 2 setup with a site and postfix for mail but would like to use something like dovecot so I don't have to ssh to use my mail but whenever I try to set it up everything goes to shit. Just wanted to know if its even possible and if I actually need two sperate servers to do this.
Dovecot can be installed on the same machine as your postfix server. You can usually google a how to for setting up dovecot and adjusting your firewall.
I found this guide pretty handy, it uses courier rather than dovecot though.
http://flurdy.com/docs/postfix/
The question I had was can I have a server run apache2 with a site setup on it alongside with postfix and dovecot. I already knew postfix and dovecot could run together.
Yes you can, that's how my mail/web server is set up.