mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Added missing EHLO before auth attempt
This commit is contained in:
@@ -36,6 +36,7 @@ class OAuthBearerEmailBackend(EmailBackend):
|
||||
self.connection.starttls(context=self.ssl_context)
|
||||
if self.username and self.password:
|
||||
token = oauth2.build_oauthbearer_string(self.username, self.password)
|
||||
self.connection.ehlo(DNS_NAME.get_fqdn())
|
||||
self.connection.docmd("AUTH", f"OAUTHBEARER {token.decode('utf-8')}")
|
||||
return True
|
||||
except OSError:
|
||||
|
||||
Reference in New Issue
Block a user