[CentOS] Microsoft deprecation of basic authentication centos 7

Mon Oct 17 19:19:52 UTC 2022
Jerry Geis <jerry.geis at gmail.com>

> Consider looking at a generic proxy like
https://github.com/simonrob/email-oauth2-proxy

this is very interesting...
I did the following:
yum install python3
downloaded teh above
yum install python3-pip
pip-3 install --upgrade pip
ran the requirements - it install crypto and stuff.
change the config file to be for my office 365 account

run python3 emailproxy.py -no-gui   (also tried --debug --debug)

And nothing really happens - prints a couple lines - about starting IMAP
POP SMTP but nothing about
trying to connect - no errors - no nothing.

My config has:

[IMAP-1993]
local_address = localhost
server_address = outlook.office365.com
server_port = 993

[POP-1995]
server_address = outlook.office365.com
server_port = 995

[SMTP-1587]
server_address = smtp.office365.com
server_port = 587
starttls = True


[xyz at abc]
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.office365.com/IMAP.AccessAsUser.All
https://outlook.office365.com/POP.AccessAsUser.All
https://outlook.office365.com/SMTP.Send offline_access
redirect_uri = http://localhost
client_id = xyz at abc
client_secret = old_secret

The @abc is not office365.com its the email address hosted by office365.

What did I miss?

jerry