From 942d51582afe52a6a76851f8b073577e8b0e7590 Mon Sep 17 00:00:00 2001 From: Jonathan Ervine Date: Wed, 28 Oct 2020 21:00:44 +0800 Subject: [PATCH] Adding some extra logging --- smtp2slack4qnap.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smtp2slack4qnap.py b/smtp2slack4qnap.py index f791ed9..57deb8e 100644 --- a/smtp2slack4qnap.py +++ b/smtp2slack4qnap.py @@ -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