Community Discussions and Support
How do I use OAUTH2 for Office 365 email

I have successfully implemented using Pegasus v4.80 on W7 for my IMAP gmail account using David's instructions. However I am totally in the dark how to do a similar change for my Office 365 email account (from Namesco) - and it appears time is running out. Can it be done - if so how? I don't want to use gmail for my normal emails - but I don't really want to move them to Thunderbird or Bluemail etc. Pegasus has been my email since 1997.


I have successfully implemented using Pegasus v4.80 on W7 for my IMAP gmail account using David's instructions. However I am totally in the dark how to do a similar change for my Office 365 email account (from Namesco) - and it appears time is running out. Can it be done - if so how? I don't want to use gmail for my normal emails - but I don't really want to move them to Thunderbird or Bluemail etc. Pegasus has been my email since 1997.

Normally it should works similar. Activate the MFA and set an application password but option could be deactivated by the admin.


https://support.microsoft.com/en-us/account-billing/manage-app-passwords-for-two-step-verification-d6dc8c6d-4bf7-4851-ad95-6d07799387e9


https://answers.microsoft.com/en-us/msoffice/forum/all/what-happened-to-app-passwords-in-office-365/a4d7a22c-8e3b-4873-885e-feda635fba5f


https://answers.microsoft.com/en-us/msoffice/forum/all/office-365-admin-create-app-password-for-a-user/1e0013d3-1409-4669-83fb-5ecb47e3640e


Normally it should works similar. Activate the MFA and set an application password but option could be deactivated by the admin. [https://support.microsoft.com/en-us/account-billing/manage-app-passwords-for-two-step-verification-d6dc8c6d-4bf7-4851-ad95-6d07799387e9](https://support.microsoft.com/en-us/account-billing/manage-app-passwords-for-two-step-verification-d6dc8c6d-4bf7-4851-ad95-6d07799387e9 "https://support.microsoft.com/en-us/account-billing/manage-app-passwords-for-two-step-verification-d6dc8c6d-4bf7-4851-ad95-6d07799387e9") [https://answers.microsoft.com/en-us/msoffice/forum/all/what-happened-to-app-passwords-in-office-365/a4d7a22c-8e3b-4873-885e-feda635fba5f](https://answers.microsoft.com/en-us/msoffice/forum/all/what-happened-to-app-passwords-in-office-365/a4d7a22c-8e3b-4873-885e-feda635fba5f "https://answers.microsoft.com/en-us/msoffice/forum/all/what-happened-to-app-passwords-in-office-365/a4d7a22c-8e3b-4873-885e-feda635fba5f") [https://answers.microsoft.com/en-us/msoffice/forum/all/office-365-admin-create-app-password-for-a-user/1e0013d3-1409-4669-83fb-5ecb47e3640e](https://answers.microsoft.com/en-us/msoffice/forum/all/office-365-admin-create-app-password-for-a-user/1e0013d3-1409-4669-83fb-5ecb47e3640e "https://answers.microsoft.com/en-us/msoffice/forum/all/office-365-admin-create-app-password-for-a-user/1e0013d3-1409-4669-83fb-5ecb47e3640e")

Pegasus v4.81 Beta

edited Sep 20 '22 at 6:00 am

Pegasus worked perfectly - once I had persuaded Office 365 to offer me the App Password login option. I can't be sure exactly which part of the 365 druidic ritual was the magic setting.


Much head-banging and clicking various Office 365 admin offered links for Azure directory and 2FA to let user set their own password.


Still could not get an "App Password" option in the user's login options.


Finally in desperation: in my 365 admin it showed 2FA was "Enforced" for the user. Selected that drop down box's options and went for "change" and ticked the box for the user to re-enter their contact details.


Went back to the user login. Prompted to enter my details - and finally the method drop down box included "App Password".


Phone text 2FA had been set in the various stages above - so was then presented with the password (which I named Pegasus Mail) to copy to clipboard and save in NotePad. Changed my Pegasus IMAP password to the app one - and success! The same password was also used simultaneously in both my laptop and desktop.


I suspect I need to change my Pegasus POP3 and SMTP password entries as well - but I didn't push my luck. Apparently the old-style SMTP login still works as a provision for dumb printers that can't be upgraded.


A word of warning if you use Web access (OWA) for Office 365 email. Any aliases for incoming mails are still accepted - but you don't know which alias they used without digging into the raw headers. However - the Outlook design only allows outgoing emails to be FROM the default email address - no way to set an alias in the FROM. Fortunately Pegasus IMAP works perfectly with the 365 configured aliases for both send and receive.


Heartfelt thanks to David for v4.80


Pegasus worked perfectly - once I had persuaded Office 365 to offer me the App Password login option. I can't be sure exactly which part of the 365 druidic ritual was the magic setting. Much head-banging and clicking various Office 365 admin offered links for Azure directory and 2FA to let user set their own password. Still could not get an "App Password" option in the user's login options. Finally in desperation: in my 365 admin it showed 2FA was "Enforced" for the user. Selected that drop down box's options and went for "change" and ticked the box for the user to re-enter their contact details. Went back to the user login. Prompted to enter my details - and finally the method drop down box included "App Password". Phone text 2FA had been set in the various stages above - so was then presented with the password (which I named Pegasus Mail) to copy to clipboard and save in NotePad. Changed my Pegasus IMAP password to the app one - and success! The same password was also used simultaneously in both my laptop and desktop. I suspect I need to change my Pegasus POP3 and SMTP password entries as well - but I didn't push my luck. Apparently the old-style SMTP login still works as a provision for dumb printers that can't be upgraded. A word of warning if you use Web access (OWA) for Office 365 email. Any aliases for incoming mails are still accepted - but you don't know which alias they used without digging into the raw headers. However - the Outlook design only allows outgoing emails to be FROM the default email address - no way to set an alias in the FROM. Fortunately Pegasus IMAP works perfectly with the 365 configured aliases for both send and receive. Heartfelt thanks to David for v4.80
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft