Another relatively painless way to set up a mail server on your own box is http://www.iredmail.org. ( + http://z-push.sourceforge.net/soswp/ for ActiveSync push mail) So far I am fairly happy with it.
Also note that Z-Push is AGPLv3 software. Unless you can get it under another license from Zarafa, you have to release your product with an AGPL-compatible license.
[0] http://www.microsoft.com/en-us/legal/intellectualproperty/IP...