First things first. Unified messaging and voicemail only messaging are two different type of licensing.
If you are going to do unified messaging, then you cannot install exchange and unity on the same box.
If you are going to do voicemail only, unity and exchange can be on the same server, BUT the exchange server cannot process emails.