gen_imap is an erlang application that will run as an imap server daemon.
erlang imap server application