Detour is a utility for writing tests against a real SMTP server.
Rather than mocking/stubbing your SMTP client Detour allows you to send all email to an in-memory relay. Detour provides assertions that can be used to until test the deliverability of your emails.
Detour was inspired by Bypass. Kudos to that team.