Courier-imap

Links
http://gentoo-wiki.com/HOWTO_Small_Email_Server_with_Postfix_with_POP3_(TLS)

http://www.courier-mta.org/

Mail server
I suggest Postfix.

Configuration
Configuration for pop3-ssl only.

To prevent dictionary attacs
Using o fail2ban: