First, the application should secure communication with the email servers; and then, the information sent to them should be protected using standard format that are deployable in a cloud application portal.
The mail systems portal should contain a secured user login , client registration, secret key generation, encryption and decryption for pages like login, compose email, inbox, sent mails, conversations(chats) etc.