GreenMail is an open source suite of lightweight and sand boxed email servers supporting SMTP, POP3 and IMAP.
GreenMail is an open source, intuitive and easy-to-use test suite of email servers for testing purposes.
Typical use cases include mail integration testing or a lightweight sand boxed mail server for development.
- Supports SMTP, POP3 and IMAP including SSL
- Prevents accidental email leaking to real mail servers
- Provides different deployment models, such as a simple standalone JVM process, as a WAR module, as a JBoss GreenMail Service or docker image
- Easily embeddable in JUnit tests for integration testing
- Lightweight with few dependencies
GreenMail is the first and only library that offers a test framework for both receiving and retrieving emails from Java.