JustMail
An unfinished attempt at creating a fully integrated mail server supporting SMTP and IMAP in Java.
Building
You can compile the mail server using Maven.
The compilation process outputs the build artifact target/JustMail.jar which contains all dependencies.
The mail server can be started in the command line.
Implementation Status
Take a look at the project's issues to see which parts of the relevant mail standards are implemented.