Transport rule is not working as expected

%3CLINGO-SUB%20id%3D%22lingo-sub-1395690%22%20slang%3D%22en-US%22%3ETransport%20rule%20is%20not%20working%20as%20expected%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1395690%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22RuleDetailsPanel_Description%22%3EHello%20All%2C%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3Ewe%20have%20set%20forwarding%20from%20VIM%40domain.com%26nbsp%3Bto%20VIM%40sapprd.domain.com%26nbsp%3B.%20Now%20we%20have%20requirement%20that%20vim%40sapprd.domain.com%26nbsp%3Bshould%20receive%20only%20email%20with%20PDF%20attachments.%26nbsp%3B%3CBR%20%2F%3ESo%20I%20have%20created%20transport%20rule%20%2C%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3Ercpt%20to%3A%26nbsp%3B%20VIM%40domain.com%26nbsp%3B%3CBR%20%2F%3EAction%3A%26nbsp%3Breject%20the%20message%20and%20include%20the%20explanation%20'Allow%20only%20PDF%20attach%20email.'%20with%20the%20status%20code%3A%20'5.7.1'%3CBR%20%2F%3EExcept%20if...%3CBR%20%2F%3EHas%20an%20attachment%20with%20a%20file%20extension%20that%20matches%20one%20of%20these%20values%3A%20'pdf'%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3Ewhen%20I%20send%20email%20to%26nbsp%3BVIM%40domain.com%26nbsp%3B%20%2C%20i%20got%20the%20NDR%20with%20message%20%22Allow%20only%20PDF%20attach%20email.'%20with%20the%20status%20code%3A%20'5.7.1'%22%26nbsp%3B%3CBR%20%2F%3EBut%20at%20the%20same%20time%20email%20also%20get%20forwarded%26nbsp%3BVIM%40sapprd.domain.com%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3EI%20also%20created%20new%20transport%20rule%20as%20below%2C%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22RuleDetailsPanel_Description%22%3E%3CBR%20%2F%3Ercpt%20to%3A%26nbsp%3BVIM%40sapprd.domain.com%3CBR%20%2F%3EAction%3A%26nbsp%3BDelete%20the%20message%20without%20notifying%20the%20recipient%20or%20sender%3CBR%20%2F%3EExcept%20if%20%3A%3CBR%20%2F%3Ehas%20an%20attachment%20with%20a%20file%20extension%20that%20matches%20one%20of%20these%20values%3A%20'PDF'%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3Estill%20emails%20getting%20forwarded%20to%26nbsp%3BVIM%40sapprd.domain.com%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3EAny%20idea%20how%20to%20resolved%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22RuleDetailsPanel_Description%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22RuleDetailsPanel_Description%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1395690%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1395703%22%20slang%3D%22en-US%22%3ERe%3A%20Transport%20rule%20is%20not%20working%20as%20expected%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1395703%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F309764%22%20target%3D%22_blank%22%3E%40sandipk%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%20please%20can%20you%20explain%20where%20you%20are%20setting%20the%20attachment%20action%3F%20%26nbsp%3BWhen%20I%20check%20the%20available%20actions%20for%20attachments%2C%20%26nbsp%3BI%20see%20the%20following%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202020-05-16%20at%2018.21.30.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F192302iBAE4BF31D62355BB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Screenshot%202020-05-16%20at%2018.21.30.png%22%20alt%3D%22Screenshot%202020-05-16%20at%2018.21.30.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWas%20it%20one%20of%20these%20options%20that%20you%20chose%20please%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1395823%22%20slang%3D%22en-US%22%3ERe%3A%20Transport%20rule%20is%20not%20working%20as%20expected%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1395823%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F616707%22%20target%3D%22_blank%22%3E%40PeterRising%3C%2FA%3E%26nbsp%3B%20%26nbsp%3B%20i%20have%20used%20below%20option%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sandipk_0-1589655051635.png%22%20style%3D%22width%3A%20405px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F192309i8660BF3FD60B676C%2Fimage-dimensions%2F405x255%3Fv%3D1.0%22%20width%3D%22405%22%20height%3D%22255%22%20title%3D%22sandipk_0-1589655051635.png%22%20alt%3D%22sandipk_0-1589655051635.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1395862%22%20slang%3D%22en-US%22%3ERe%3A%20Transport%20rule%20is%20not%20working%20as%20expected%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1395862%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F309764%22%20target%3D%22_blank%22%3E%40sandipk%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOK%2C%20I%20have%20reproduced%20the%20rule%2C%20and%20for%20me%20it%20works%20just%20fine.%20I%20noticed%20that%20your%20second%20transport%20rule%20is%20setup%20slightly%20different%20to%20the%20first.%20%26nbsp%3BWhat%20happens%20if%20you%20match%20the%20settings%20to%20be%20the%20same%20as%20the%20first%20transport%20rule%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20what%20is%20the%20reason%20for%20the%20forwarding%3F%20%26nbsp%3BAre%20the%20messages%20kept%20in%20both%20mailboxes%20or%20old%20forwarded%20to%20the%20other%20one%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1397117%22%20slang%3D%22en-US%22%3ERe%3A%20Transport%20rule%20is%20not%20working%20as%20expected%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1397117%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F616707%22%20target%3D%22_blank%22%3E%40PeterRising%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20update.%20can%20you%20please%20use%20only%20first%20transport%20rule%20and%20check%20if%20the%20email%20are%20getting%20forwarded%20to%20forwarding%20address.%26nbsp%3B%3C%2FP%3E%3CP%3EIdeally%20using%20first%20transport%20rule%20%2C%20it%20should%20not%20allow%20forwarding%20of%20emails%20as%20well.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20keeping%20the%20copy%20in%20mailbox%20%3CA%20href%3D%22mailto%3AVIm%40domain.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EVIm%40domain.com%3C%2FA%3E%26nbsp%3B%20and%20forwarding%20the%20emails%20to%20%3CA%20href%3D%22mailto%3Avim%40sapprd.domain.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Evim%40sapprd.domain.com%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1398433%22%20slang%3D%22en-US%22%3ERe%3A%20Transport%20rule%20is%20not%20working%20as%20expected%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1398433%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F309764%22%20target%3D%22_blank%22%3E%40sandipk%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20reproduced%20both%20of%20your%20rules%20as%20follows%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ERule%201%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202020-05-18%20at%2008.05.17.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F192481iD02E769C68DDA4B2%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Screenshot%202020-05-18%20at%2008.05.17.png%22%20alt%3D%22Screenshot%202020-05-18%20at%2008.05.17.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ERule%202%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202020-05-18%20at%2008.05.32.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F192480i98121775EA87556F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Screenshot%202020-05-18%20at%2008.05.32.png%22%20alt%3D%22Screenshot%202020-05-18%20at%2008.05.32.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20mailbox%20in%20rule%201%20has%20forwarding%20enabled%20to%20the%20mailbox%20in%20rule%202%2C%20but%20also%20keeps%20a%20copy%20in%20both%20mailboxes.%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ETesting%20results%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20send%20any%20email%20to%20the%20mailbox%20in%20rule%201%2C%20I%20get%20an%20NDR%20as%20expected.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20send%20an%20email%20to%20the%20mailbox%20in%20rule%201%2C%20with%20a%20PDF%20attached%2C%20the%20email%20is%20received%20in%20both%20mailboxes%20as%20expected%20due%20to%20the%20forwarding.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20send%20any%20email%20directly%20to%20the%20the%20mailbox%20in%20rule%202%2C%20nothing%20happens.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20send%20an%20email%20to%20the%20mailbox%20in%20rule%202%2C%20with%20a%20PDF%20attached%2C%20%26nbsp%3Bthe%20email%20is%20received%20in%20the%20mailbox%20from%20rule%202%20only.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20this%20the%20behaviour%20you%20are%20hoping%20for%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1398477%22%20slang%3D%22en-US%22%3ERe%3A%20Transport%20rule%20is%20not%20working%20as%20expected%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1398477%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F616707%22%20target%3D%22_blank%22%3E%40PeterRising%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20update.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EWhen%20you%26nbsp%3B%20send%20any%20email%20(non%20PDF%20attach)%20to%20the%20mailbox%20in%20rule%201%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3Byou%20get%20an%20NDR%20as%20expected.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Ebut%20the%20the%20same%20time%20email%20getting%20forwarded%26nbsp%3Bto%20the%20mailbox%20in%20Rule%202.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThis%20should%20not%20happen%20as%20per%20the%20rule%20.%20can%20you%20please%20confirm%20the%20behavior%26nbsp%3B%26nbsp%3B%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%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1398500%22%20slang%3D%22en-US%22%3ERe%3A%20Transport%20rule%20is%20not%20working%20as%20expected%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1398500%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F309764%22%20target%3D%22_blank%22%3E%40sandipk%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20confirm%20that%20when%20I%26nbsp%3B%3CSPAN%3Esend%20any%20email%20(non%20PDF%20attach)%20to%20the%20mailbox%20in%20rule%201%2C%20I%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3Bget%20an%20NDR%20as%20expected.%20%26nbsp%3BAlso%2C%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3Bthe%20same%20email%20is%20%3CSTRONG%3Enot%3C%2FSTRONG%3E%26nbsp%3Bgetting%20forwarded%26nbsp%3Bto%20the%20mailbox%20in%20Rule%202.%20%26nbsp%3B%20So%20for%20me%2C%20it%20is%20working%20as%20I%20think%26nbsp%3Byou%20wish%20it%20to%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1398546%22%20slang%3D%22en-US%22%3ERe%3A%20Transport%20rule%20is%20not%20working%20as%20expected%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1398546%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F616707%22%20target%3D%22_blank%22%3E%40PeterRising%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20Peter.%26nbsp%3B%3C%2FP%3E%3CP%3Eunfortunately%20%2C%20its%20not%20working%20for%20me%26nbsp%3B%3C%2FP%3E%3CP%3EWhenever%20users%20send%20non%20pdf%20attach%20email%20to%20user%20in%20Rule%201%20%2C%20i%20get%20NDR%20%2C%20but%20at%20the%20same%20time%20email%20getting%20forwarded%20to%20forwarding%20address.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sandipk_0-1589790969419.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F192494i75B03E0A1A2DA3A2%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22sandipk_0-1589790969419.png%22%20alt%3D%22sandipk_0-1589790969419.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAm%20i%20missing%20anything%20here%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1398562%22%20slang%3D%22en-US%22%3ERe%3A%20Transport%20rule%20is%20not%20working%20as%20expected%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1398562%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F309764%22%20target%3D%22_blank%22%3E%40sandipk%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20only%20other%20thing%20I%20can%20think%20of%20is%20the%20order%20of%20processing%20for%20the%20transport%20rules.%20%26nbsp%3BDo%20you%20have%20rule%201%20set%20with%20lower%20priority%20than%20rule%202%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1398626%22%20slang%3D%22en-US%22%3ERe%3A%20Transport%20rule%20is%20not%20working%20as%20expected%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1398626%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F616707%22%20target%3D%22_blank%22%3E%40PeterRising%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehello%20Peter%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20created%20rule%202%20because%20Rule1%20was%20not%20working%20as%20expected.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1398675%22%20slang%3D%22en-US%22%3ERe%3A%20Transport%20rule%20is%20not%20working%20as%20expected%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1398675%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F309764%22%20target%3D%22_blank%22%3E%40sandipk%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDon't%20think%20I%20explained%20myself%20very%20well%20there.%20%26nbsp%3BWhat%20I%20mean%20is%2C%20the%20order%20that%20the%20rules%20are%20processed%20in%20Exchange%20Online%20is%20important.%20%26nbsp%3BAs%20in%20my%20example%20below%2C%20rule%201%20gets%20triggered%20before%20rule%202%2C%20as%20rule%201%20has%20a%20priority%20of%200%2C%20and%20rule%202%20a%20priority%20of%201%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202020-05-18%20at%2010.35.59.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F192505i836B06E5523ED4AE%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Screenshot%202020-05-18%20at%2010.35.59.png%22%20alt%3D%22Screenshot%202020-05-18%20at%2010.35.59.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIf%20your%20rule%202%20has%20a%20lower%20priority%20number%20than%20rule%201%2C%20%26nbsp%3Bthen%20rule%202%20would%20be%20triggered%20first%20and%20potentially%20ignore%20rule%201.%20%26nbsp%3BMake%20sense%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor
Hello All,
 
we have set forwarding from VIM@domain.com to VIM@sapprd.domain.com . Now we have requirement that vim@sapprd.domain.com should receive only email with PDF attachments. 
So I have created transport rule , 
 
rcpt to:  VIM@domain.com 
Action: reject the message and include the explanation 'Allow only PDF attach email.' with the status code: '5.7.1'
Except if...
Has an attachment with a file extension that matches one of these values: 'pdf'
 
when I send email to VIM@domain.com  , i got the NDR with message "Allow only PDF attach email.' with the status code: '5.7.1'" 
But at the same time email also get forwarded VIM@sapprd.domain.com 
 
I also created new transport rule as below, 

rcpt to: VIM@sapprd.domain.com
Action: Delete the message without notifying the recipient or sender
Except if :
has an attachment with a file extension that matches one of these values: 'PDF'
 
still emails getting forwarded to VIM@sapprd.domain.com 
 
 
Any idea how to resolved 
 
 
11 Replies

@sandipk 

 

Hi, please can you explain where you are setting the attachment action?  When I check the available actions for attachments,  I see the following;

 

Screenshot 2020-05-16 at 18.21.30.png

 

Was it one of these options that you chose please?

@PeterRising    i have used below option

 

sandipk_0-1589655051635.png

 

@sandipk 

 

OK, I have reproduced the rule, and for me it works just fine. I noticed that your second transport rule is setup slightly different to the first.  What happens if you match the settings to be the same as the first transport rule?

 

Also, what is the reason for the forwarding?  Are the messages kept in both mailboxes or old forwarded to the other one?

@PeterRising 

 

Thanks for the update. can you please use only first transport rule and check if the email are getting forwarded to forwarding address. 

Ideally using first transport rule , it should not allow forwarding of emails as well. 

 

We are keeping the copy in mailbox VIm@domain.com  and forwarding the emails to vim@sapprd.domain.com 

 

 

@sandipk 

 

I have reproduced both of your rules as follows;

 

Rule 1;

 

Screenshot 2020-05-18 at 08.05.17.png

 

Rule 2;

 

Screenshot 2020-05-18 at 08.05.32.png

 

The mailbox in rule 1 has forwarding enabled to the mailbox in rule 2, but also keeps a copy in both mailboxes.  

 

Testing results

 

When I send any email to the mailbox in rule 1, I get an NDR as expected.

 

When I send an email to the mailbox in rule 1, with a PDF attached, the email is received in both mailboxes as expected due to the forwarding.

 

When I send any email directly to the the mailbox in rule 2, nothing happens.

 

When I send an email to the mailbox in rule 2, with a PDF attached,  the email is received in the mailbox from rule 2 only.

 

Is this the behaviour you are hoping for?

@PeterRising 

 

Thanks for the update.

 

When you  send any email (non PDF attach) to the mailbox in rule 1 

 you get an NDR as expected.

but the the same time email getting forwarded to the mailbox in Rule 2. 

 

This should not happen as per the rule . can you please confirm the behavior  

 

 

 

@sandipk 

 

I can confirm that when I send any email (non PDF attach) to the mailbox in rule 1, I get an NDR as expected.  Also, the same email is not getting forwarded to the mailbox in Rule 2.   So for me, it is working as I think you wish it to?

@PeterRising 

Thanks Peter. 

unfortunately , its not working for me 

Whenever users send non pdf attach email to user in Rule 1 , i get NDR , but at the same time email getting forwarded to forwarding address. 

 

sandipk_0-1589790969419.png

Am i missing anything here 

@sandipk 

 

The only other thing I can think of is the order of processing for the transport rules.  Do you have rule 1 set with lower priority than rule 2?

@PeterRising 

hello Peter

 

I created rule 2 because Rule1 was not working as expected. 

 

@sandipk 

 

Don't think I explained myself very well there.  What I mean is, the order that the rules are processed in Exchange Online is important.  As in my example below, rule 1 gets triggered before rule 2, as rule 1 has a priority of 0, and rule 2 a priority of 1

 

Screenshot 2020-05-18 at 10.35.59.png

If your rule 2 has a lower priority number than rule 1,  then rule 2 would be triggered first and potentially ignore rule 1.  Make sense?