diff --git a/emailproxy.config b/emailproxy.config index 56318e0..15c1504 100644 --- a/emailproxy.config +++ b/emailproxy.config @@ -74,7 +74,7 @@ server_port = 995 local_address = 127.0.0.1 [SMTP-1587] -server_address = smtp.office365.com +server_address = smtp-mail.outlook.com server_port = 587 server_starttls = True local_address = 127.0.0.1 @@ -233,6 +233,14 @@ redirect_uri = http://localhost client_id = *** your client id here *** client_secret = *** your client secret here *** +[your.email@outlook.com] +permission_url = https://login.microsoftonline.com/common/oauth2/v2.0/authorize +token_url = https://login.microsoftonline.com/common/oauth2/v2.0/token +oauth2_scope = https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/POP.AccessAsUser.All https://outlook.office.com/SMTP.Send offline_access +redirect_uri = http://localhost +client_id = *** your client id here *** +client_secret = *** your client secret here *** + [your.email@gmail.com] permission_url = https://accounts.google.com/o/oauth2/auth token_url = https://oauth2.googleapis.com/token diff --git a/emailproxy.py b/emailproxy.py index 9bdc90a..4cee807 100644 --- a/emailproxy.py +++ b/emailproxy.py @@ -6,7 +6,7 @@ __author__ = 'Simon Robinson' __copyright__ = 'Copyright (c) 2024 Simon Robinson' __license__ = 'Apache 2.0' -__version__ = '2024-07-04' # ISO 8601 (YYYY-MM-DD) +__version__ = '2024-07-08' # ISO 8601 (YYYY-MM-DD) __package_version__ = '.'.join([str(int(i)) for i in __version__.split('-')]) # for pyproject.toml usage only import abc @@ -986,7 +986,7 @@ def start_redirection_receiver_server(token_request): Log.format_host_port((parsed_uri.hostname, parsed_port))) class LoggingWSGIRequestHandler(wsgiref.simple_server.WSGIRequestHandler): - # pylint: disable=arguments-differ + # pylint: disable-next=arguments-differ def log_message(self, _format_string, *args): Log.debug('Local server auth mode (%s): received authentication response' % Log.format_host_port( (parsed_uri.hostname, parsed_port)), *args)