Hacker News new | ask | show | jobs
by crdoconnor 3949 days ago
I wrote a similar thing to this too: https://github.com/hitchtest/hitchsmtp#bad-smtp-server

It just outputs the mail it receives to stdout as JSON for easy parsing. Sending to specific email addresses "e.g. 451-please-try-again-later@smtperrors.com" will trigger specific SMTP errors.