mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 23:15:02 -04:00
Add a setting to disable TLS for sending email (#10546)
This is mostly useful in case the server offers TLS, but doesn't present a valid certificate.
This commit is contained in:
parent
f5a368bb48
commit
74d7336686
8 changed files with 138 additions and 50 deletions
|
@ -34,8 +34,6 @@ from typing import (
|
|||
)
|
||||
|
||||
import twisted.internet.tcp
|
||||
from twisted.internet import defer
|
||||
from twisted.mail.smtp import sendmail
|
||||
from twisted.web.iweb import IPolicyForHTTPS
|
||||
from twisted.web.resource import IResource
|
||||
|
||||
|
@ -442,10 +440,6 @@ class HomeServer(metaclass=abc.ABCMeta):
|
|||
def get_room_shutdown_handler(self) -> RoomShutdownHandler:
|
||||
return RoomShutdownHandler(self)
|
||||
|
||||
@cache_in_self
|
||||
def get_sendmail(self) -> Callable[..., defer.Deferred]:
|
||||
return sendmail
|
||||
|
||||
@cache_in_self
|
||||
def get_state_handler(self) -> StateHandler:
|
||||
return StateHandler(self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue