Home

Restrict email access to Exchange Online

%3CLINGO-SUB%20id%3D%22lingo-sub-35777%22%20slang%3D%22en-US%22%3ERestrict%20email%20access%20to%20Exchange%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-35777%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20situation%20of%20a%20customer%20without%20an%20on-prem%20Active%20Directory%2C%20only%20using%20some%20cloud%20apps%2C%20like%20Office%20365.%3CBR%20%2F%3EThey%20want%20to%20block%20access%20to%20(in%20first%20place)%20e-mail%20on%20non%20managed%20devices.%20I%20know%20I%20can%20use%20Conditional%20Access%20policies%20to%20set%20this%20up%20for%20mobile%20devices%20(the%20new%20Intune%20MAM)%20policies%2C%20but%20how%20can%20I%20block%20access%20to%20Exchange%20Online%20by%20using%20Outlook%20on%20non-managed%20devices%3F%20I%60ve%20been%20reading%20articles%20about%20this%2C%20but%20that%20always%20ends%20up%20using%20ADFS%20and%20that%20is%20not%20possible%20for%20this%20customer.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20customer%20is%20running%20Windows%207%20and%2010%2C%20but%20t%20is%20ok%20if%20this%20solution%20is%20only%20going%20to%20work%20with%20Win10%20(Azure%20AD%20joined%2F%20Intune%20enrolled)%2C%20than%20we%20upgrade%20al%20devices.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EIs%20there%20anybody%20to%20advice%20me%20how%20to%20set%20this%20up%2C%20or%20point%20me%20in%20the%20right%20direction%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you!%3CBR%20%2F%3E%3CBR%20%2F%3ERegards%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPeter%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-43774%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20email%20access%20to%20Exchange%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-43774%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20CA%20policies%20get%20you%20most%20of%20the%20way%20there%20-%20but%20I%20beleive%20you%20still%20need%20to%20set%20the%20ADFS%20claims%20rule%20to%20block%20the%20down-level%20clients.%26nbsp%3B%20We%20found%20you%20still%20need%20basic%20to%20ensure%20mobile%20clients%20using%20EAS%20can%20connect%20and%20retireve%20content.%26nbsp%3B%20Of%20course%2C%20if%20you%20are%20using%20Outloof%20for%20iOS%2FAndroid%20only%2C%20which%20no%20longer%20relies%20on%20the%20EAS%20channel%2C%20you%20could%20implement%20MAM%2BCA%20in%20this%20case.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-41105%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20email%20access%20to%20Exchange%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-41105%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F12983%22%20target%3D%22_blank%22%3E%40Chris%20Eckel%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20an%20cloud%20only%20customer.%20So%20part%20of%20my%20solution%20for%20this%20was%20blocking%20basic%20auth%20for%20Exchange%20Online.%20In%20this%20situaton%20that%20was%20no%20problem%2C%20customer%20is%20running%20only%20Outlook%202013%2F%202016.%20Till%20now%20it%20is%20not%20yet%20implemented%20to%20the%20customer%20his%20tenant%2C%20was%20just%20running%20this%20in%20a%20lab.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EBut%20in%20your%20situation%2C%20with%20an%20On-prem%20AD%2C%20if%20you%20don%60t%20want%20to%20use%20ADFS%2C%20have%20a%20look%20at%20the%20New%20Azure%20Portal.%20Below%20Azure%20Active%20Directory%20you%20find%20Conditional%20Access.%20You%20can%20create%20an%20policy%20to%20just%20allow%20Exchange%20Online%20access%20to%20Domain%20Joined%20devices%2C%20filter%20it%20on%20Windows%20devices%20and%20you%20can%20setup%20another%20solution%20for%20your%20mobile%20devices.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-40824%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20email%20access%20to%20Exchange%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-40824%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20Peter%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20trying%20to%20accomplish%20the%20same%20thing%20but%20from%20what%20we%20found%20you%20need%20ADFS.%20%26nbsp%3BThe%20problem%20with%20Conditional%20Access%20is%20it%20blocks%20clients%20that%20use%20Modern%20Auth.%20%26nbsp%3BIf%20the%20client%20tries%20using%20basic%20auth%20(Outlook%202010%20and%20older%20only%20use%20basic%20and%20Outlook%202013%20%2F%202016%20can%20use%20modern%20or%20basic)%20it%20will%20get%20through.%20%26nbsp%3BWe%20are%20working%20on%20blocking%20basic%20auth%20w%2FADFS%20externally%20to%20shore%20up%20this%20loop%20hole.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-36049%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20email%20access%20to%20Exchange%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-36049%22%20slang%3D%22en-US%22%3E%3CP%3EIdeally%20you%20should%20not%20test%20it%20on%20the%20same%20machine%20by%20clearing%20creds%20-%20but%20nonethelless%20will%20test%20and%20let%20you%20know.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-36016%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20email%20access%20to%20Exchange%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-36016%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F24559%22%20target%3D%22_blank%22%3E%40Jasjit%20Chopra%3C%2FA%3E%20Yes%20it%20sounds%20very%20strange.%20Was%20happy%20Outlook%20was%20blocked%20at%20an%20Win10%20device%20which%20is%20not%20domain%20joined.%20But%20than%20I%20cleared%20all%20the%20credentials%20on%20the%20domain%20joined%20machine%20and%26nbsp%3B%20setup%20Outlook%20again%20and%20it%20is%20now%20blocked%20as%20well.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20time%20testing%20this%20setup!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eregards%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPeter%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-35989%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20email%20access%20to%20Exchange%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-35989%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3194%22%20target%3D%22_blank%22%3E%40Peter%20Klapwijk%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELet%20me%20try%20that%20in%20my%20lab%20setup%20-%20that%20kinda%20sounds%20strange%20and%20I%20would%20think%20MS%20would%20have%20thought%20of%20this%20scenario%20you%20are%20trying%20to%20achieve%20-%20which%20is%20a%20common%20ask%20from%20other%20customers%20too%20I%20presume.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20will%20get%20back%20to%20you%20and%20let%20you%20know.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EJasjit%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-35977%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20email%20access%20to%20Exchange%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-35977%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20enabled%20modern%20authentication%20for%20Exchange%20Online.%3CBR%20%2F%3EIt%20now%20shows%20me%20a%20message%20access%20is%20blocked%20when%20I%20try%20to%20connect%20using%20Outlook%2C%20but%20is%20does%20that%20on%20domain%20joined%20Win10%20devices%20as%20well.%3CBR%20%2F%3EI%60m%20using%20Conditional%20Access%20from%20the%20new%20Azure%20Portal%20(%3CA%20href%3D%22https%3A%2F%2Fblogs.technet.microsoft.com%2Fenterprisemobility%2F2016%2F12%2F15%2Fconditional-access-now-in-the-new-azure-portal%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.technet.microsoft.com%2Fenterprisemobility%2F2016%2F12%2F15%2Fconditional-access-now-in-the-new-azure-portal%2F%3C%2FA%3E).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-35969%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20email%20access%20to%20Exchange%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-35969%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Jasjit%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20reply.%3CBR%20%2F%3EYes%20tried%20that%20policy%20before%2C%20blocks%20OWA%20access%20and%20the%20use%20of%20the%20buildin%20mail%20app%20on%20Windows%2010%2C%20but%20it%20still%20gives%20me%20access%20to%20Exchange%20Online%20by%20using%20Outlook%202016.%3CBR%20%2F%3EAlso%20tried%20Conditional%20Access%20from%20the%20new%20Azure%20portal%20under%20Aure%20AD%20(in%20preview)%2C%20same%20situation%3B%20blocking%20OWA%20and%20the%20buildin%20app%2C%20but%20still%20allows%20access%20via%20Outlook.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-35815%22%20slang%3D%22en-US%22%3ERe%3A%20Restrict%20email%20access%20to%20Exchange%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-35815%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Peter%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20you%20tried%20this%20setting%20within%20Intune%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F9367i26172351F9326FCA%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22Capture.JPG%22%20title%3D%22Capture.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3BIf%20you%20do%20not%20want%20to%20cover%20all%20platforms%20with%20generic%20policy%20you%20can%20also%20select%20specific%20platforms%20like%20below%3A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F9368i57C25C5104907494%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22Capture.JPG%22%20title%3D%22Capture.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3BYou%20also%20get%20a%20way%20to%20block%20OWA%20and%20ActiveSyn%20clients%3A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F9369iF5A2AB719D98434B%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22Capture.JPG%22%20title%3D%22Capture.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20will%20cover%20non-domain%20joined%20windows%207%20also.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELet%20me%20know%20if%20this%20helps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EJasjit%3C%2FP%3E%3C%2FLINGO-BODY%3E
Peter Klapwijk
Regular Contributor

Hi all,

 

I have a situation of a customer without an on-prem Active Directory, only using some cloud apps, like Office 365.
They want to block access to (in first place) e-mail on non managed devices. I know I can use Conditional Access policies to set this up for mobile devices (the new Intune MAM) policies, but how can I block access to Exchange Online by using Outlook on non-managed devices? I`ve been reading articles about this, but that always ends up using ADFS and that is not possible for this customer.

 

The customer is running Windows 7 and 10, but t is ok if this solution is only going to work with Win10 (Azure AD joined/ Intune enrolled), than we upgrade al devices.


Is there anybody to advice me how to set this up, or point me in the right direction?

 

Thank you!

Regards,

 

Peter

9 Replies
Highlighted

Hi Peter,

 

Have you tried this setting within Intune?

Capture.JPG

 If you do not want to cover all platforms with generic policy you can also select specific platforms like below:Capture.JPG

 You also get a way to block OWA and ActiveSyn clients:Capture.JPG

 

 

 

This will cover non-domain joined windows 7 also.

 

Let me know if this helps.

 

Regards,

Jasjit

Hi Jasjit,

 

Thanks for the reply.
Yes tried that policy before, blocks OWA access and the use of the buildin mail app on Windows 10, but it still gives me access to Exchange Online by using Outlook 2016.
Also tried Conditional Access from the new Azure portal under Aure AD (in preview), same situation; blocking OWA and the buildin app, but still allows access via Outlook.

I have enabled modern authentication for Exchange Online.
It now shows me a message access is blocked when I try to connect using Outlook, but is does that on domain joined Win10 devices as well.
I`m using Conditional Access from the new Azure Portal (https://blogs.technet.microsoft.com/enterprisemobility/2016/12/15/conditional-access-now-in-the-new-...).

Hi @Peter Klapwijk,

 

Let me try that in my lab setup - that kinda sounds strange and I would think MS would have thought of this scenario you are trying to achieve - which is a common ask from other customers too I presume.

 

I will get back to you and let you know.

 

Regards,

Jasjit

Hi @Jasjit Chopra Yes it sounds very strange. Was happy Outlook was blocked at an Win10 device which is not domain joined. But than I cleared all the credentials on the domain joined machine and  setup Outlook again and it is now blocked as well.

 

Thank you for your time testing this setup!

 

regards,

 

Peter

Ideally you should not test it on the same machine by clearing creds - but nonethelless will test and let you know.

Hey Peter,

 

We are trying to accomplish the same thing but from what we found you need ADFS.  The problem with Conditional Access is it blocks clients that use Modern Auth.  If the client tries using basic auth (Outlook 2010 and older only use basic and Outlook 2013 / 2016 can use modern or basic) it will get through.  We are working on blocking basic auth w/ADFS externally to shore up this loop hole.

Hi @Chris Eckel

 

This is an cloud only customer. So part of my solution for this was blocking basic auth for Exchange Online. In this situaton that was no problem, customer is running only Outlook 2013/ 2016. Till now it is not yet implemented to the customer his tenant, was just running this in a lab.


But in your situation, with an On-prem AD, if you don`t want to use ADFS, have a look at the New Azure Portal. Below Azure Active Directory you find Conditional Access. You can create an policy to just allow Exchange Online access to Domain Joined devices, filter it on Windows devices and you can setup another solution for your mobile devices.

 

The CA policies get you most of the way there - but I beleive you still need to set the ADFS claims rule to block the down-level clients.  We found you still need basic to ensure mobile clients using EAS can connect and retireve content.  Of course, if you are using Outloof for iOS/Android only, which no longer relies on the EAS channel, you could implement MAM+CA in this case.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies