Replies: 1 comment 3 replies
-
Thanks for this very useful insight! This is something I've never tried myself (I don't use the free version of these services), and based solely on others' reported experiences had always thought that it wasn't supported But it seems like this was a mistaken assumption, and as long as you have a M365 Developer or Azure account this is in fact possible. I just tried this myself with a Hotmail account, and was able to get it working very easily. After clicking the button to create a new app registration from the Entra admin centre, these were the only steps I needed:
The corresponding proxy configuration entry to support IMAP/POP/SMTP is: [[email protected]]
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 from step 2 here *** This was all that was required for me, and it worked first time with no issues. Considering this is so much easier than Google's version of the same process, I'm surprised it has caused as much trouble as it has. I will point to this discussion from the proxy's readme and configuration file, and hopefully this will help others navigate the process a little easier. It's interesting to see Raiden's application. I haven't looked into whether it is just a paid-for wrapper around this proxy or a separate product, but the client setup documentation is perhaps useful nonetheless. |
Beta Was this translation helpful? Give feedback.
-
Hi Simon,
First thanks for writing this proxy server, both my spam filter and pop checker are working.
I just saw your update regarding Hotmail/Free Outlook accounts; I was trying to use the Azure Portal website to set everything up, although everything appeared to be OK, I kept on getting authentication errors.
Just about to give when I came across another proxy server, Raiden Mail Oauth Proxy. On Raidens website it gave instructions on how to setup client_id/client_secret but using the Microsoft Entra website, not the Azure Portal website.
However, this gave me the following error:
A quick Google search and the suggestions were to edit the Manifest and change the "signInAudience" from "PersonalMicrosoftAccount" to "AzureADandPersonalMicrosoftAccount", then everything authenticated successfully:
So instead of trying to use another applications client_id which has the potential to change and cause problems, you can create your own using Microsofts Entra website.
Colin.
Beta Was this translation helpful? Give feedback.
All reactions