zulip/puppet/zulip
K.Kanakhin e3e52e7284 email-mirror: Move postfix email mirror integration to separate script.
This fixes a performance problem where we were previously starting up
a full Django process (~0.7s even on a fast machine) every time a new
email came in, potentially allowing users to accidentally DoS a Zulip
server.  Now, we just post over HTTPS, allowing the existing thread
pool support to do its job.

- Add script wrapper to communicate postfix pipe with django web server
  over HTTP(S). It uses shared_secret authentication mode.
- Add django view to process messages from email mirror server.
- Clean management command `email-mirror`. Left just functional
  for cron email processing.
- Add routes for new tornado view.
- Change pipe script in master process postfix config template
  based on updated script.
- Add tests.

Tweaked by tabbott to adjust the directory and set better defaults.

Fixes #2421.
2017-04-24 21:24:23 -07:00
..
files email-mirror: Move postfix email mirror integration to separate script. 2017-04-24 21:24:23 -07:00
lib/puppet puppet: Move Apache sites files to correct paths. 2016-10-25 23:44:28 -07:00
manifests missed-emails-sending: Move email sending to separate queue worker. 2017-03-07 20:08:40 -08:00
templates uwsgi: Add master mode to the main uwsgi process. 2017-03-07 21:35:51 -08:00