Adding some extra logging
This commit is contained in:
parent
afaca8dfcb
commit
942d51582a
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user