Forum Discussion
ankilo2011
Jun 26, 2023Copper Contributor
Rule Creation in Exchange error?
Hello everyone,
i am facing a very strange issue, in exchange online. First of all, the scenario is that i want to create a rule that reject mails from a user/s or group and a reject message will be sent to the sender.
My issue is that when i going to Exchange Online Admin Center-> Mail Flow-> Rules-> Add a rule and creating the rule with the settings:
Apply this rule if;
The recipient -- is member of this group or is this person
Do the following:
Block the message -- reject the message with explanation
Save
When the action is completed i see that a parameter was added automatically.
also in Edit rule Conditions you can see it more clearly.
Is it correct to automatically add this option to my rule? is not something that i want to
Status 5.7.1 is the proper status code for actively rejected NDRs, and to inform the sender delivery is not allowed. You can change the 5.7.1 to anything other in the reserved range for custom status codes 5.7.900-5.7.999. Removing would violate protocol, as a server capable of replying with status codes, must prepend the text part of the response with a code.
- ankilo2011Copper ContributorThank you for your reply, it was very confusing but now its clear.
- That's the expected behavior. The NDR "code" for this action will always be set to 5.7.1, as detailed in the documentation: https://learn.microsoft.com/en-us/exchange/security-and-compliance/mail-flow-rules/mail-flow-rule-actions
You can specify a custom code between 5.7.900-5.7.999, if needed.