June 14, 20251 yr Hello,just doing my first steps with unraid and so far really impressed with the ease of use. While playing around with different features and containers, I was wondering if there is a docker container that serves as an oauth proxy to connect my old scanner and multi functional printer to Microsoft Exchange 365. Unfortunately most of these devices do not support modern forms of authentication and Microsoft will soon remove classic smtp auth. Did anyone ever stumble over this?kind regards,Klayman Edited June 19, 20251 yr by Klayman
June 19, 20251 yr Author Solution Answer to self: Yes, there is. It's called email-OAuth2-proxy and can be found here: blacktirion/email-oauth2-proxy-docker: Dockerized Version of simonrob/email-oauth2-proxyIt allows to connect printers and scanners via smtp to services like Exchange365 which only allow OAuth V2 auhentication. Important aspect: The proxy will present an URL through which to authenticate. To do so, the following steps are necessary as the original proxy is not designed to run as a container:Create emailproxy.config and start containerOpen container consoleKill running process: ps aux | grep emailproxy.py kill -9 7Run interactive: python emailproxy.py --no-gui --config-file /config/emailproxy.config --debug --external-authRun SMTP request against container IP and portComplete login to provided link and provide interactive mode with localhost redirect link(for me the first of the 2 links showed worked. Also maximizing the console seems to solve some issues with line breaks in the link)Paste the redirect link with the authorization code from your browser back into the console, the proxy will create a token etc and write it to the config fileRestart container.For Microsoft365: When you edit the config file, make sure you replace the word "common" in permission_url and token_url contain with your Microsoft/Azure tenant id. Best,Klayman Edited June 19, 20251 yr by Klayman
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.