Adding some extra logging
This commit is contained in:
parent
942d51582a
commit
a4ddcd31ec
@ -64,6 +64,7 @@ class MyServer(Server):
|
||||
# again, overkill for running locally, but mandatory for remote
|
||||
class MyController(Controller):
|
||||
def factory(self):
|
||||
print("[+} Starting TLS SMTP service")
|
||||
context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
|
||||
context.load_cert_chain('cert.pem', 'key.pem')
|
||||
return MyServer(self.handler, tls_context=context, require_starttls=True)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user