Testing with mail servers

On several projects I’ve seen that a test and development environment needs a email server. Most of the times it’s not wanted that the emails are really send out. So I started a search on the web and found Dumbster. Dumbster is a Fake Mail Server, it supports the SMTP protocol, written in Java. It’s easy to integrate with unit tests and mocks.

Personally I use it for a support and test environment which has the feature to generate loads of email, I really don’t want to end up in a mailbox. It’s running as SMTP deamon in a stand alone application out of the box. I added code to generate some logging, which can be handy.

Liked what you read? Share this!