Adding some extra logging

This commit is contained in:
Jonathan Ervine 2020-10-28 21:00:44 +08:00
parent afaca8dfcb
commit 942d51582a

View File

@ -39,6 +39,7 @@ WEBHOOK_URL = 'http://slack2chat.ipa.champion/AAAAcMVs3C4?key=AIzaSyDdI0hCZtE6vy
# implemented LOGIN authentication (non-RFC compliant, works with QNAP-NAS)
# overkill for running locally, but mandatory for remote
class MyServer(Server):
print("[+] Connection made")
authenticated = False
@syntax('AUTH LOGIN')
async def smtp_AUTH(self, arg):
@ -56,6 +57,7 @@ class MyServer(Server):
print("[+] Authenticated")
await self.push('235 2.7.0 Authentication successful')
else:
print("[-] Authentication Failure")
await self.push('535 Invalid credentials')
# requires STARTTLS