1

How to serve MailCatcher behind HTTPS and authentication?

view story
linux-howto

http://serverfault.com – I am developing a Ruby on Rails app, and have a staging server. But this staging server isn't sending any emails -- instead, it is discarding them. In order to test our emails being sent, and how those emails looks like (so we can use the staging server for QA), I found MailCatcher. But currently it is focused on development environment, so there isn't support for neither HTTPS or authentication -- and I don't want to expose all MailCatcher emails for everyone. Is there any ways to provide HTTPS and basic authentication through Apache or Nginx? Maybe a reverse proxy? (HowTos)