Sending email is easy with commons-email, and with spring it is even easier. What about receiving incoming email? Are there easy to use APIs that allow to bounce emails, process attachments, etc.
SubEthaSMTP Mail Server allows you to create your own SMTP Server for receiving emails.