Use the STARTTLS command to upgrade SMTP connections where possible.
authorMatt Molyneaux <moggers87+git@moggers87.co.uk>
Mon, 24 Mar 2014 15:00:19 +0000 (15:00 +0000)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 2 Aug 2014 21:23:22 +0000 (16:23 -0500)
commit2d4d24f51eb1a7a187dbfd9f077c864a309b3171
treefdd3ec1f8d331d9be0f9bb4e4b15b5202975239b
parent19df85773489255fdefbd1ed4ede033048c3588f
Use the STARTTLS command to upgrade SMTP connections where possible.

Adds the option `email_smtp_force_tls` which will cause `send_email` to error
if it is unable to use the `STARTTLS` command (e.g. where the user knows the
SMTPd supports `STARTTLS` and wishes to protect themselves against a downgrade
attack)

Setting both `email_smtp_user_ssl` and `email_smtp_force_tls` may result in
undefined behaviour if the SMTPd has not been correctly configured.

TODO: Unit tests?
TODO: Documentation?
mediagoblin/config_spec.ini
mediagoblin/tools/mail.py