Skip to content
SubEtha SMTP is a Java library for receiving SMTP mail
Branch: master
Clone or download
lookfirst Merge pull request #85 from erikvanoosten/patch-1
Article for configuring SSL/TLS moved
Latest commit 13fee16 Sep 20, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib JMockit upgrade May 7, 2013
.project Migrating wiki contents from Google Code Mar 30, 2015
LICENSE.txt Migrating wiki contents from Google Code Mar 30, 2015 Old ProjectHome is new README Mar 30, 2015 Article for configuring SSL/TLS moved Feb 8, 2017 Migrating wiki contents from Google Code Mar 30, 2015

SubEtha SMTP is a Java library which allows your application to receive SMTP mail with a simple, easy-to-understand API.

This component can be used in almost any kind of email processing application. Hypothetical (and not-so hypothetical) uses include:

  • A mailing list manager (see SubEthaMail)
  • A mail server that delivers mail to user inboxes
  • A mail archiver like The Mail Archive
  • An email test harness (see Wiser)
  • An email2fax system
  • SMTPseudo A filtering forwarding server
  • Baton SMTP proxy for one or more backends (rules based on sender/envelope)
  • Mireka - Mail server and SMTP proxy with detailed logging, statistics and built-in, fail-fast filters

SubEthaSMTP's simple, low-level API is suitable for writing almost any kind of mail-receiving application. Read more in UsingSubEthaSMTP or join our MailingList.

A Little History

SubEthaSMTP was split out of the SubEthaMail mailing list manager because it is a useful standalone component. When we wrote SubEtha, the last thing we wanted to do was write our own SMTP server. In our search for a modular Java SMTP component, we examined:

Since you're reading this page you probably already know what we found: Seven different SMTP implementations without the slightest thought given to reusability. Even Jstmpd, which purports to be a "A Modular Java SMTP Daemon", isn't. Even though JBoss Mail/Meldware Mail is in active development, the team was unintersted in componentization of the SMTP processing portion of their server. GreenMail, which is based on the JAMES code base is best summarized with this blog posting.

During the development of SubEtha's testing harness, we tried out the Dumbster software and found that not only was the API difficult to use, it did it not work properly, the developer has not done any development on it in about a year and it does not work reliably on Mac OS X. With two simple classes we re-implemented it as an included project called Wiser.

We hate reinventing wheels. This should be the LAST FREAKING JAVA SMTP IMPLEMENTATION.

Project Authors

Ian McFarland contributed the first codebase to SubEtha Mail. Then, Jon Stevens and Jeff Schnitzer re-wrote most of Ian's code into what we have today. Edouard De Oliveira and Scott Hernandez have also made significant contributions.


If you have any bug reports, questions or comments about SubEtha SMTP, it's best that you bring these issues up on the Mailing Lists. Please do not email the authors directly.

Spec Compliance

For now, we have just focused on implementing just the minimal required aspects of We also return SMTP status responses that mimic what Postfix returns.

Thanks to a contribution from Mike Wildpaner, we support the StartTLS specification.

Thanks to a contribution from Marco Trevisan, we support the SMTP AUTH specification.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.