SOLVED
Home

How to block and allow domain in spam filter

%3CLINGO-SUB%20id%3D%22lingo-sub-333709%22%20slang%3D%22en-US%22%3EHow%20to%20block%20and%20allow%20domain%20in%20spam%20filter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-333709%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20I%20had%20add%20tow%20policy%20in%20spam%20filter%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B1%20.%20Allow%20domain%20and%20some%20sender%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bthis%20policy%20add%20some%20sender%20and%20domain%20in%20allow%20list%20.block%20list%20empty%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B2.%20Block%20domain%20and%20some%20sender%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20this%20policy%20add%20some%20sender%20and%20domain%20in%20block%20list%20.allow%20list%20empty%20.%20in%20this%20policy%20i%20try%20add%20block%20email%20test%40gmail.com%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B--%26gt%3B%20But%20when%20I%20try%20login%20to%20gmail%20with%20user%20test%40gmail.com%20and%20send%20to%20email%20in%20my%20domain%20then%20it%20still%20can%20received%20email%20.I%20think%20it%20must%20block%20all%20email%20from%20this%20email%20address%20(test%40gmail.com)%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bso%20can%20order%20policy%20process%20it%20only%20process%20top%20policy%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bplease%20any%20one%20help%20me%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F72490i2B20300D9D899EA3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-333709%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-339327%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20block%20and%20allow%20domain%20in%20spam%20filter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-339327%22%20slang%3D%22en-US%22%3ENot%20a%20problem.%20Hope%20to%20help%20you%20soon%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F234118%22%20target%3D%22_blank%22%3E%40Tien%20Ngo%20Thanh%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-339323%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20block%20and%20allow%20domain%20in%20spam%20filter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-339323%22%20slang%3D%22en-US%22%3E%3CP%3EFinal%20%2C%20I%20move%20all%20allow%20list%20sender%20and%20domain%20to%20block%20policy%20.Default%20policy%20s%E1%BA%BD%20not%20change%20any%20thing%20and%20see%20it%20work%20as%20required%3C%2FP%3E%3CP%3E%26nbsp%3BThanks%20all%20support%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20949px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F75157i0A1C2F10ABB4D096%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20771px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F75158i59089A089FF0754A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-334872%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20block%20and%20allow%20domain%20in%20spam%20filter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-334872%22%20slang%3D%22en-US%22%3E%3CP%3EI%20will%20try%20test%20and%20let%20you%20know%20result%20.Thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-334320%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20block%20and%20allow%20domain%20in%20spam%20filter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-334320%22%20slang%3D%22en-US%22%3EYes%2C%20this%20is%20the%20final%20recommendation%20if%20multiple%20spam%20policies%20are%20not%20working.%3CBR%20%2F%3E%3CBR%20%2F%3EKeep%20the%20default%20spam%20policy%20to%20send%20to%20junk%20and%20add%20a%20rule%20to%20quarantine%20mail%20from%20the%20explicit%20domains%2Fusers.%3CBR%20%2F%3E%3CBR%20%2F%3ECan%20you%20test%20this%3F%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-334315%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20block%20and%20allow%20domain%20in%20spam%20filter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-334315%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BI%20just%20tracer%20after%20create%20two%20policy%20as%20your%20recommend%20but%20seem%20all%20spam%20to%20quarantine%20%2C%20this%20seem%20it%20only%20process%20one%20policy%20(primary).%20I%20think%20policy%20about%26nbsp%3B%20block%20sender%20to%20quarantine%20should%20create%20rule%20mail%20in%20exchange%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F72621i98E4FEF1C6137D08%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-334137%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20block%20and%20allow%20domain%20in%20spam%20filter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-334137%22%20slang%3D%22en-US%22%3EHmm%2C%20ok%20-%20In%20that%20case%2C%20should%20you%20not%20have%20two%20policies%3F%3CBR%20%2F%3E%3CBR%20%2F%3E1.)%20Block%20Sender%20or%20Domain%20Spam%20(Primary)%3CBR%20%2F%3E2.)%20Default%2C%20Take%20domains%2Faddresses%20in%20'Allow%20Sender%20or%20Domain%20Spam'%20and%20Set%20spam%20and%20bulk%20actions%20as%20Send%20to%20Junk%20(Secondary)%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-334132%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20block%20and%20allow%20domain%20in%20spam%20filter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-334132%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3BBut%20if%20do%20that%20so%20then%20all%20email%20that%20mark%20spam%20will%20to%20quarantine%20%2C%20but%20this%20i%20only%20want%20some%20sender%20to%20quarantine%20not%20all%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-334128%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20block%20and%20allow%20domain%20in%20spam%20filter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-334128%22%20slang%3D%22en-US%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F234118%22%20target%3D%22_blank%22%3E%40Tien%20Ngo%20Thanh%3C%2FA%3E%2C%3CBR%20%2F%3E%3CBR%20%2F%3EOk%2C%20in%20this%20case%20I%20would%20recommend%20merging%20them%20into%20the%20default%20policy%20and%20do%20as%20follows%3CBR%20%2F%3E%3CBR%20%2F%3E1.)%20Take%20domains%2Faddresses%20in%20'Allow%20Sender%20or%20Domain%20Spam'%20and%20add%20them%20to%20the%20Allow%20List%3CBR%20%2F%3E2.)%20Take%20domains%2Faddresses%20in%20'Block%20Sender%20or%20Domain%20Spam'%20and%20add%20them%20the%20Block%20List%3CBR%20%2F%3E3.)%20Set%20Default%20spam%20and%20bulk%20actions%20as%20Quarantine%3CBR%20%2F%3E%3CBR%20%2F%3EThen%20you%20have%20a%20single%20policy%20with%20single%20set%20of%20actions%20as%20opposed%20to%20three%20policies%20which%20may%20conflict%20with%20each%20other.%3CBR%20%2F%3E%3CBR%20%2F%3ECan%20you%20confirm%20whether%20this%20has%20worked%3F%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-334047%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20block%20and%20allow%20domain%20in%20spam%20filter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-334047%22%20slang%3D%22en-US%22%3E%3CP%3EI%20try%20change%20order%20policy%20as%20below%20but%20seem%20it%20not%20process%20allow%20policy%20.Because%20had%20add%20some%20sender%20allow%20not%20spam%20as%20i%20check%20tracer%20mail%20then%20see%20it%20block%20to%20quarantine%20(because%20policy%20block%20check%20if%20spam%20then%20move%20to%20quarantine%20).%20this%20seem%20it%20only%20process%20one%20top%20policy%20and%20not%20all%20order%20policy%20%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20971px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F72581i74647C0CB938A669%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-333754%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20block%20and%20allow%20domain%20in%20spam%20filter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-333754%22%20slang%3D%22en-US%22%3EI%20would%20try%20by%20promoting%20the%20block%20rule%20to%20the%20highest%20priority.%20As%20per%20the%20article%20above%20you%20can%20also%20set%20the%20severity%20of%20the%20rule.%3CBR%20%2F%3E%3CBR%20%2F%3EHope%20that%20answers%20your%20question.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-333735%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20block%20and%20allow%20domain%20in%20spam%20filter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-333735%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BBecause%20Policy%20allow%20i%20want%20move%20to%20junk%20%2C%20policy%20block%20move%20quarantine%20should%20i%20must%20create%20two%20policy%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bissue%20here%20i%20seem%20it%20not%20process%20as%20order%20%2C%20i%20thing%20it%20must%20process%20allow%20policy%20-%26gt%3Bblock%20policy%20-%26gt%3B%20default%20policy%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BI%20want%20configure%20block%20some%20sender%20and%20domain%20and%20move%20it%20to%26nbsp%3Bquarantine%20%2C%20please%20guide%20help%20me%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F72492i6FD1D2AA963B5CA3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F72493i6599D7879FCA6EB3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture1.PNG%22%20title%3D%22Capture1.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-333727%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20block%20and%20allow%20domain%20in%20spam%20filter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-333727%22%20slang%3D%22en-US%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F234118%22%20target%3D%22_blank%22%3E%40Tien%20Ngo%20Thanh%3C%2FA%3E%2C%3CBR%20%2F%3E%3CBR%20%2F%3ESee%20article%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Foffice365%2FSecurityCompliance%2Fconfigure-your-spam-filter-policies%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Foffice365%2FSecurityCompliance%2Fconfigure-your-spam-filter-policies%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20your%20block%20policy%20make%20sure%20that%20the%20spam%20and%20bulk%20email%20actions%20are%20set%20to%20delete%20as%20opposed%20to%20move%20messages%20to%20junk%20email%20folder.%3CBR%20%2F%3E%3CBR%20%2F%3EAlternatively%2C%20you%20can%20set%20up%20a%20transport%20rule%20to%20block%20the%20message%20if%20you%20have%20issues.%3CBR%20%2F%3E%3CBR%20%2F%3EHope%20that%20answers%20your%20question%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3C%2FLINGO-BODY%3E
Highlighted
Regular Contributor

Hello

    I had add tow policy in spam filter 

     1 . Allow domain and some sender

             this policy add some sender and domain in allow list .block list empty

     2. Block domain and some sender

            this policy add some sender and domain in block list .allow list empty . in this policy i try add block email test@gmail.com 

     --> But when I try login to gmail with user test@gmail.com and send to email in my domain then it still can received email .I think it must block all email from this email address (test@gmail.com)

           so can order policy process it only process top policy ?

           please any one help me

     Capture.PNG

12 Replies
Highlighted
Hi @Tien Ngo Thanh,

See article

https://docs.microsoft.com/en-gb/office365/SecurityCompliance/configure-your-spam-filter-policies

In your block policy make sure that the spam and bulk email actions are set to delete as opposed to move messages to junk email folder.

Alternatively, you can set up a transport rule to block the message if you have issues.

Hope that answers your question

Best, Chris
Highlighted

Hello

     Because Policy allow i want move to junk , policy block move quarantine should i must create two policy

     issue here i seem it not process as order , i thing it must process allow policy ->block policy -> default policy 

     I want configure block some sender and domain and move it to quarantine , please guide help meCapture.PNGCapture1.PNG

Highlighted
I would try by promoting the block rule to the highest priority. As per the article above you can also set the severity of the rule.

Hope that answers your question.

Best, Chris
Highlighted

I try change order policy as below but seem it not process allow policy .Because had add some sender allow not spam as i check tracer mail then see it block to quarantine (because policy block check if spam then move to quarantine ). this seem it only process one top policy and not all order policy ?

Capture.PNG

Highlighted
Hi @Tien Ngo Thanh,

Ok, in this case I would recommend merging them into the default policy and do as follows

1.) Take domains/addresses in 'Allow Sender or Domain Spam' and add them to the Allow List
2.) Take domains/addresses in 'Block Sender or Domain Spam' and add them the Block List
3.) Set Default spam and bulk actions as Quarantine

Then you have a single policy with single set of actions as opposed to three policies which may conflict with each other.

Can you confirm whether this has worked?

Best, Chris
Highlighted

Hello

   But if do that so then all email that mark spam will to quarantine , but this i only want some sender to quarantine not all

Best regards,

Thanks

Highlighted
Hmm, ok - In that case, should you not have two policies?

1.) Block Sender or Domain Spam (Primary)
2.) Default, Take domains/addresses in 'Allow Sender or Domain Spam' and Set spam and bulk actions as Send to Junk (Secondary)

Best, Chris
Highlighted

Hello

     I just tracer after create two policy as your recommend but seem all spam to quarantine , this seem it only process one policy (primary). I think policy about  block sender to quarantine should create rule mail in exchange

   Capture.PNG

Highlighted
Solution
Yes, this is the final recommendation if multiple spam policies are not working.

Keep the default spam policy to send to junk and add a rule to quarantine mail from the explicit domains/users.

Can you test this?

Best, Chris
Highlighted

I will try test and let you know result .Thanks

Highlighted

Final , I move all allow list sender and domain to block policy .Default policy sẽ not change any thing and see it work as required

 Thanks all support

Capture.PNG

Capture.PNG

Highlighted
Not a problem. Hope to help you soon @Tien Ngo Thanh
Related Conversations
Is it possible to control DNS client on Win 10
Petri X in Windows 10 security on
0 Replies
Office365 groups spam emails
rav-i-den in Office 365 on
3 Replies
[Solved] Google is blocking Edge from using google drive
HotCakeX in Discussions on
14 Replies
Filter UI shows ID SharePoint
Mell_i in SharePoint on
0 Replies