Hello Stephen! Sorry, late and tired.. But..
Stephen Isard wrote in <[email protected]>: |A university mail server that I use was outsourced to microsoft. I have I truly hate that outsourcing everywhere. A few years back a university of Vienna/Austria outsourced to GMail i think, then i stopped complaining, but now that you come in. aaeehh. It is likely the easy integration of calendars and mail and anything. We had that Univention Corporate Server thing in Germany, but hey this is a business, sorry for mentioning it. It drives some public schools anyhow. Sifh. |been connecting to this server in s-nail using "plain" authentication, |i.e., a password. Now microsoft is about to stop supporting plain |authentication |https://docs.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange\ |-online/deprecation-of-basic-authentication-exchange-online |and it will be necessary to use xoauth2. I have read the s-nail man |page section "But, how about XOAUTH2 / OAUTHBEARER?" and can copy the |oauth2.py stuff, but I don't know the microsoft equivalents to the gmail |instructions for getting and storing the “client ID” and “client secret” |given in |https://github.com/google/gmail-oauth2-tools/wiki/OAuth2DotPyRunThrough. For Google use [1], that works instead. Aka [2], which i plan to somehow integrate into s-nail v14.10, whenever that happens (christmas). (I have not looked in [2] yet, i read more in detail over the 2020-11-03 version. It seems to be a 1518 line diff.) [1] http://mmogilvi.users.sourceforge.net/software/oauthbearer.html [2] http://mmogilvi.users.sourceforge.net/downloads/oauthbearerScripts-2022-07-10.tar.bz2 |Has anyone been connecting to an outlook account using xoauth2 with |s-nail? Steffen, did you try to use xoauth2 with your fozzi-baer |account? Oh i have even forgotten i have this account. Hmm, login works for me still. s-nail: >>> SERVER: * OK The Microsoft Exchange IMAP4 service is ready. .. s-nail: >>> T8 CAPABILITY s-nail: >>> SERVER: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+ s-nail: >>> SERVER: T8 OK CAPABILITY completed. s-nail: >>> T9 LOGIN "[email protected]" "..." s-nail: >>> SERVER: T9 OK LOGIN completed. But regarding your question, in the mutt(1) MUA repository there is contrib/mutt_oauth2.py*, and it reads -- How to create a Microsoft registration -- Go to portal.azure.com, log in with a Microsoft account (get a free one at outlook.com), then search for "app registration", and add a new registration. On the initial form that appears, put a name like "Mutt", allow any type of account, and put "http://localhost/" as the redirect URI, then more carefully go through each screen: Branding - Leave fields blank or put in reasonable values - For official registration, verify your choice of publisher domain Authentication: - Platform "Mobile and desktop" - Redirect URI "http://localhost/" - Any kind of account - Enable public client (allow device code flow) API permissions: - Microsoft Graph, Delegated, "offline_access" - Microsoft Graph, Delegated, "IMAP.AccessAsUser.All" - Microsoft Graph, Delegated, "POP.AccessAsUser.All" - Microsoft Graph, Delegated, "SMTP.Send" - Microsoft Graph, Delegated, "User.Read" Overview: - Take note of the Application ID (a.k.a. Client ID), you'll need it shortly End users who aren't able to get to the app registration screen within portal.azure.com for their work/school account can temporarily use an incognito browser window to create a free outlook.com account and use that to create the app registration. Edit the client_id (and client_secret if there is one) into the mutt_oauth2.py script. And use the above script instead. I tried to use mutt_oauth2.py with Microsoft, but failed. That was in June 2021 however. Well i did that a year ago, but could not get SMTP to work if i recall correctly, and then they blocked my account because i said "Microsoft, please" in a test message, which was against their policy. Ozzy Osbourne wants to leave, saying "This is not America no more" or something in that spirit. Impossible to imagine that in America Bianca Jagger was sitting on a horse, and the guy with the big penis (Hugo?!) was naked. 2.5.1977. Hmm. Well i can SMTP LOGIN as fozzi-baer, but can no longer send a message as [email protected] 554 5.2.252 SendAsDenied; [email protected] not allowed to send as [email protected]; STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message [BeginDiagnosticData]Cannot submit message. I am too tired to look into this now. Poor Stephen that has to use Microsoft. But the above hopefully helps, and the script is really good and easy to use. Please report back on problems, Stephen! A nice Sunday i wish! --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)
