SolutionGuidance / psm

Welcome to the Medicare/Medicaid Provider Enrollment Screening Portal
http://projectpsm.org/
Other
26 stars 18 forks source link

investigate Mailcatcher replacement #113

Closed brainwane closed 7 years ago

brainwane commented 7 years ago

Right now our install documentation includes installing Mailcatcher as a test mail server. This is suboptimal because people get stuck on its installation, and because it'd be nice to reuse the Java ecosystem instead of making people deal with another language's package management & dependencies for this one thing.

So I am taking a few minutes this afternoon to look around for a Java replacement, hopefully just another app that WildFly can deploy, and that has the nice "view the emails being sent through a web dashboard" feature that Mailcatcher has (even nicer: also put them in a directory ondisk, for testability). A Python replacement would be less awesome but still good since most target servers already have Python 2.7 installed, more than have Ruby and its accoutrements installed.

brainwane commented 7 years ago

GreenMail doesn't let you easily view the sent messages.

FakeSMTP doesn't seem to work on my machine.

brainwane commented 7 years ago

SubEthaSMTP doesn't easily let you view the sent messages.

Dumbster makes you telnet in to view the sent messages.

I'm going to go with

$ python -m smtpd -n -c DebuggingServer localhost:1025

per this helpful blog post, even though it makes the user open up another terminal and leave it running, and even though it doesn't spit out the emails to the web (it spits them to stdout in the terminal).