I'm looking for an smtp service that essentially obeys the RFC, except rather than sending mail it simply logs to a file
[date] sent mail to <address>
Or whatever. I can bash this together with the bare minimum of functionality I need in python in about half an hour I reckon but if there's an existing project that works better I'd rather use that.
The reason for needing it is debugging an app that keeps sending 7* the amount of mail it's supposed to.
EDIT: And already asked: https://stackoverflow.com/questions/1006650/dummy-smtp-server-for-testing-apps-that-send-email
If you have python lying around this will write the SMTP conversation to stdout.
http://docs.python.org/library/smtpd.html#debuggingserver-objects
You should have a look at
smtp-sink
which is a part of Postfix. You don't have to run Postfix to make it work. Just install it to have the executable. Everything you need can be configured via command line parameters:http://www.postfix.org/smtp-sink.1.html
There is also a ruby gem called mailcatcher.
You can read the emails directly in your browser through the integrated web interface, there's a screenshot from their homepage below.
We use http://mailtrap.io web service in developement and staging environment. It is platform-independent and doesn't require you to run your own SMTP.
It offers:
smtp4dev has worked well for me. (Windows only)
http://quintanasoft.com/dumbster/
This looks like a it'll probably do the job, for anyone else who stumbles upon this.
Disclaimer: This is a late answer, but I genuinely believe it will help out future viewers. Also note that I worked on this product.
We built Mailosaur in order to solve this exact problem. We've since built it out to add test email addresses as well as SMTP.
FakeSMTP https://nilhcem.github.io/FakeSMTP/ is cross-platform and open-source.
I just fork up just about any smtp service then send the result to a bit bucket!