I would create a mail flow rule. Thats much easier to manage and maintain. You can customize the reject message as well.
Disable incoming email to mailbox
Hi,
i need to find a solution how to temporaily disable email delivery (account created by HR should can be inactive for days).
I cannot change PrimarySMTP. I can set MaxReceiveSize to 0, but it will send incorrect NDR. I think i can override it by Custom NDR, but it will also affect messages with exceeded quota as well?
If there is a solution, where emails send to these mailboxes, where MaxReceiveSize = 0 will reply with NDR "user unknown or something" .. but others (16MB email when limit is 15MB) will reply with correct MessageSizeExceeded NDR?
Another way: put these accounts to some AD group and create mailflow rule to reject messages sent to members of this group ...
Whats best practice?
1 additional answer
Sort by: Most helpful
-
Bash 156 Reputation points
2020-07-30T04:54:57.813+00:00 We choose mailflow rule against distributiongroup members .. will see how its goin to work