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)
|
# implemented LOGIN authentication (non-RFC compliant, works with QNAP-NAS)
|
||||||
# overkill for running locally, but mandatory for remote
|
# overkill for running locally, but mandatory for remote
|
||||||
class MyServer(Server):
|
class MyServer(Server):
|
||||||
|
print("[+] Connection made")
|
||||||
authenticated = False
|
authenticated = False
|
||||||
@syntax('AUTH LOGIN')
|
@syntax('AUTH LOGIN')
|
||||||
async def smtp_AUTH(self, arg):
|
async def smtp_AUTH(self, arg):
|
||||||
@ -56,6 +57,7 @@ class MyServer(Server):
|
|||||||
print("[+] Authenticated")
|
print("[+] Authenticated")
|
||||||
await self.push('235 2.7.0 Authentication successful')
|
await self.push('235 2.7.0 Authentication successful')
|
||||||
else:
|
else:
|
||||||
|
print("[-] Authentication Failure")
|
||||||
await self.push('535 Invalid credentials')
|
await self.push('535 Invalid credentials')
|
||||||
|
|
||||||
# requires STARTTLS
|
# requires STARTTLS
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user