المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : الاوتلوك Outlook365 شرح تفعيل Office 365 enable IMAP



Rise Company
13-02-2024, 22:35
الاوتلوك Outlook شرح تفعيل Office 365 enable IMAP
How to enable IMAP access for your Office 365 account
How to enable or disable POP3 or IMAP for a user in Office 365?
Office 365 enable IMAP/POP3 and SMTP access
How do I setup O365 to allow IMAP?

https://www.rise.company/forum/images/imported/2024/02/2.png

Step 1: Sign into Office admin portal via http://portal.office.com
Step 2: From the Microsoft 365 admin center dashboard, go to Admin > Exchange.
Step 3: Navigate to Recipients > Mailboxes.
Step 4: Select the user for which you want to enable or disable POP3 or IMAP, and then click Edit icon.
Step 5: In the User Mailbox dialog box, in the console tree, click Mailbox Features.
Step 6: Under Email Connectivity, enable or disable POP3 or IMAP.
Step 7: Click Save.

--------------------------

Office 365 enable IMAP/POP3 and SMTP access

First log in to Microsoft 365 admin portal at https://admin.microsoft.com/ as an administrator, go to Org settings screen and find Modern authentication entry:
https://www.rise.company/forum/images/imported/2024/02/3.pnghttps://www.rise.company/forum/images/imported/2024/02/4.png

Check ‘Turn on modern authentication…‘ for OAuth flows.
Check IMAP, POP3 and SMTP for App passwords flows.
https://www.rise.company/forum/images/imported/2024/02/5.png

Then go to Users screen:
https://www.rise.company/forum/images/imported/2024/02/6.pngSelect an user and on the Mail tab click Manage email apps
https://www.rise.company/forum/images/imported/2024/02/7.png

Check IMAP, Pop and Authenticated SMTP to turn on the protocols for this account
https://www.rise.company/forum/images/imported/2024/02/8.png

Have in mind it takes 20-30 minutes for the changes to take effect.

AD configuration

In your Active Directory, make sure Enable Security defaults is set to No:
https://www.rise.company/forum/images/imported/2024/02/9.pnghttps://www.rise.company/forum/images/imported/2024/02/10.pngMake sure there are no Conditional Access | Policies defined in your AD:
https://www.rise.company/forum/images/imported/2024/02/11.png

Authentication – Basic Auth [deprecated]

It is no longer possible to re-enable Basic Auth or use App passwords.
To use basic authentication (username/password) you’ll need to
Re-enable Basic Auth for your tenant
For MFA enabled/enforced accounts you must
Create and use App passwords


01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
using (Imap imap = new Imap())
{
imap.ConnectSSL("outlook.office365.com");

imap.UseBestLogin(
"[email protected]",
"password");

imap.SelectInbox();

List<long> uids = imap.Search(Flag.Unseen);

foreach (long uid in uids)
{
IMail email = new MailBuilder()
.CreateFromEml(imap.GetMessageByUID(uid));
string subject = email.Subject;
}

imap.Close();
}





Authentication – OAuth 2.0

Daemons/Services: Password grant (MFA/2FA must be turned off for this account):
https://www.limilabs.com/blog/oauth2-password-grant-office365-exchange-imap-pop3-smtp
Daemons/Services: Client credential flow:
https://www.limilabs.com/blog/oauth2-client-credential-flow-office365-exchange-imap-pop3-smtp
Web apps (requires user interaction):
https://www.limilabs.com/blog/oauth2-web-flow-office365-exchange-imap-pop3-smtp
Standalone devices (requires very little interaction):
https://www.limilabs.com/blog/oauth2-device-flow-office365-exchange-imap-pop3-smtp
Desktop apps (requires user interaction):
https://www.limilabs.com/blog/oauth2-office365-exchange-imap-pop3-smtp


01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
using (Imap imap = new Imap())
{
imap.ConnectSSL("outlook.office365.com");

imap.UseBestLogin(
"[email protected]",
"access-token");

imap.SelectInbox();

List<long> uids = imap.Search(Flag.Unseen);

foreach (long uid in uids)
{
IMail email = new MailBuilder()
.CreateFromEml(imap.GetMessageByUID(uid));
string subject = email.Subject;
}

imap.Close();
}





Exchange administration

You can find the same mailbox/user settings through Exchange administration screens:
https://www.rise.company/forum/images/imported/2024/02/12.pnghttps://www.rise.company/forum/images/imported/2024/02/13.pnghttps://www.rise.company/forum/images/imported/2024/02/14.pnghttps://www.rise.company/forum/images/imported/2024/02/15.pnghttps://www.rise.company/forum/images/imported/2024/02/2.png

المرجع:
https://www.emailparser.com/d/email-sources/how-to-enable-imap-access-for-your-office-365-account
https://www.limilabs.com/blog/office365-enable-imap-pop3-smtp
https://support.microsoft.com/en-us/account-billing/using-app-passwords-with-apps-that-don-t-support-two-step-verification-5896ed9b-4263-e681-128a-a6f2979a7944