summary refs log tree commit diff
path: root/synapse/config/emailconfig.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add config linting script that checks for bool casing (#6203)Andrew Morgan2019-10-231-2/+2
| | | | | Add a linting script that enforces all boolean values in the default config be lowercase. This has annoyed me for a while so I decided to fix it.
* Refactor HomeserverConfig so it can be typechecked (#6137)Amber Brown2019-10-101-0/+2
|
* Allow HS to send emails when adding an email to the HS (#6042)Andrew Morgan2019-09-201-0/+36
|
* Allow Synapse to send registration emails + choose Synapse or an external ↵Andrew Morgan2019-09-061-28/+94
| | | | | | | | | | | | | | | | server to handle 3pid validation (#5987) This is a combination of a few different PRs, finally all being merged into `develop`: * #5875 * #5876 * #5868 (This one added the `/versions` flag but the flag itself was actually [backed out](https://github.com/matrix-org/synapse/commit/891afb57cbdf9867f2848341b29c75d6f35eef5a#diff-e591d42d30690ffb79f63bb726200891) in #5969. What's left is just giving /versions access to the config file, which could be useful in the future) * #5835 * #5969 * #5940 Clients should not actually use the new registration functionality until https://github.com/matrix-org/synapse/pull/5972 is merged. UPGRADE.rst, changelog entries and config file changes should all be reviewed closely before this PR is merged.
* public_base_url is actually public_baseurlAaron Raimist2019-08-261-1/+1
| | | | Signed-off-by: Aaron Raimist <aaron@raim.ist>
* Fix up password reset template config names (#5863)Andrew Morgan2019-08-151-8/+8
| | | | | Fixes #5833 The emailconfig code was attempting to pull incorrect config file names. This corrects that, while also marking a difference between a config file variable that's a filepath versus a str containing HTML.
* Make errors about email password resets much clearer (#5616)Andrew Morgan2019-07-051-11/+8
| | | The runtime errors that dealt with local email password resets talked about config options that users may not even have in their config file yet (if upgrading). Instead, the cryptic errors are now replaced with hopefully much more helpful ones.
* Make it clearer that the template dir is relative to synapse's root dir (#5543)Andrew Morgan2019-06-271-1/+9
| | | Helps address #5444
* Don't load the generated config as the default.Richard van der Hoff2019-06-241-1/+1
| | | | It's too confusing.
* Pass config_dir_path and data_dir_path into Config.read_config. (#5522)Richard van der Hoff2019-06-241-1/+1
| | | | | | * Pull config_dir_path and data_dir_path calculation out of read_config_files * Pass config_dir_path and data_dir_path into read_config
* Run Black. (#5482)Amber Brown2019-06-201-39/+32
|
* Don't warn user about password reset disabling through config code (#5387)Andrew Morgan2019-06-111-6/+5
| | | | | | | Moves the warning about password resets being disabled to the point where a user actually tries to reset their password. Is this an appropriate place for it to happen? Also removed the disabling of msisdn password resets when you don't have an email config, as that just doesn't make sense. Also change the error a user receives upon disabled passwords to specify that only email-based password reset is disabled.
* Add ability to perform password reset via email without trusting the ↵Andrew Morgan2019-06-061-15/+138
| | | | | | | | | | | | identity server (#5377) Sends password reset emails from the homeserver instead of proxying to the identity server. This is now the default behaviour for security reasons. If you wish to continue proxying password reset requests to the identity server you must now enable the email.trust_identity_server_for_password_resets option. This PR is a culmination of 3 smaller PRs which have each been separately reviewed: * #5308 * #5345 * #5368
* Only parse from email if providedBrendan Abolivier2019-06-041-4/+5
|
* LintBrendan Abolivier2019-06-041-1/+0
|
* Make account validity renewal emails work when email notifs are disabledBrendan Abolivier2019-06-041-42/+57
|
* Don't crash on lack of expiry templatesBrendan Abolivier2019-04-181-2/+6
|
* Send out emails with links to extend an account's validity periodBrendan Abolivier2019-04-171-1/+6
|
* Calculate absolute path for email templatesRichard van der Hoff2018-10-191-22/+18
|
* Put the warning blob at the top of the fileRichard van der Hoff2018-10-171-6/+9
|
* Ship the email templates as package_dataRichard van der Hoff2018-10-171-3/+30
| | | | | | | | | | move the example email templates into the synapse package so that they can be used as package data, which should mean that all of the packaging mechanisms (pip, docker, debian, arch, etc) should now come with the example templates. In order to grandfather in people who relied on the templates being in the old place, check for that situation and fall back to using the defaults if the templates directory does not exist.
* Support authenticated SMTPDaniel Dent2017-04-051-0/+16
| | | | | | Closes (SYN-714) #1385 Signed-off-by: Daniel Dent <matrixcontrib@contactdaniel.net>
* Allow configuring the Riot URL used in notification emailsAdrian Perez de Castro2017-01-131-0/+7
| | | | | | | | | | The URLs used for notification emails were hardcoded to use either matrix.to or vector.im; but for self-hosted setups where Riot is also self-hosted it may be desirable to allow configuring an alternative Riot URL. Fixes #1809. Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
* brand the email from headerMatthew Hodgson2016-06-021-1/+1
|
* More consistent config namingDavid Baker2016-05-101-1/+1
|
* Add config option to not send email notifs for new usersDavid Baker2016-05-101-0/+4
|
* fix layout; handle app naming in synapse, not jinjaMatthew Hodgson2016-05-051-0/+5
|
* fix assorted typos in default configMatthew Hodgson2016-05-041-3/+3
|
* Try imports in configDavid Baker2016-04-291-0/+7
|
* Default enable email notifs to FalseDavid Baker2016-04-291-1/+1
|
* Nicer get() shorthandDavid Baker2016-04-291-3/+2
|
* Remove redundant docstringDavid Baker2016-04-291-4/+0
|
* Correct default template and add text templateDavid Baker2016-04-291-1/+2
|
* Send mail notifs with a plaintext part tooDavid Baker2016-04-291-0/+2
|
* pep8David Baker2016-04-281-1/+1
|
* Hopefully all remaining bits for email notifsDavid Baker2016-04-271-1/+8
| | | | Add public facing base url to the server so synapse knows what URL to use when converting mxc to http urls for use in emails
* Generate mails from a templateDavid Baker2016-04-201-10/+25
|
* Send a rather basic email notifDavid Baker2016-04-201-0/+62
Also pep8 fixes