How to setup a fake SMTP server to catch all mails?

Posted by Richo on Server Fault See other posts from Server Fault or by Richo
Published on 2010-11-30T22:32:17Z Indexed on 2011/11/22 10:00 UTC
Read the original article Hit count: 175

Filed under:
|

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.

Slightly offtopic, but if there isn't already such a project, and I write it, is this something other people would use? If I publish the source will it get used?

EDIT: And already asked: http://stackoverflow.com/questions/1006650/dummy-smtp-server-for-testing-apps-that-send-email

© Server Fault or respective owner

Related posts about smtp

Related posts about debugging