Inspired by MailCatcher, based on M3MTA