You may encounter various situations in the management of your messaging system that require you to control the sending and receiving of messages. For example, a user can only receive mail from a particular user, or a user or group of people may not be able to send mail to a particular mailbox, or you might want to restrict the messages that are sent by users who are not in the failures mail system from receiving messages outside the organization. Such problems can be resolved by restricting the delivery of mailbox settings very well.
In Exchange online, to implement restrictions on message delivery, you need to configure the recipient's user mailbox properties through the Exchange Admin Center or use PowerShell to connect to Exchange online via Set-mailbox to operate.
I. Configuring delivery restrictions through the Exchange Admin Center
In the Exchange Admin Center window, click "to" in the navigation bar, select "Mailbox" in the right window navigation bar, select the user's mailbox to restrict incoming mail, and click the "Edit" button.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/07/wKioL1WQHKrCEV7tAAH3w1IlFXs950.jpg "title=" 01.png "alt=" Wkiol1wqhkrcev7taah3w1ilfxs950.jpg "/>
In the user mailbox Properties page that opens, select the mailbox features item. Scroll to the bottom right of the dropdown and click the "View Details" button on the "Message delivery restrictions".
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/0B/wKiom1WQGvyRjsriAAJODiuBApQ189.jpg "title=" 02.png "alt=" Wkiom1wqgvyrjsriaajodiubapq189.jpg "/>
Opens the Message Delivery Restrictions dialog box, with the default value of receiving all sender messages. If you want to receive messages from only one or some senders, you can change the default selected from "All senders" to "only senders in the following list" in "Messages from:" And then edit the lists.
If you need to limit only the messages sent from mailboxes in that organization, you only need to tick "require all senders to authenticate" to receive messages from all senders by default, including those sent by other organizations or mail systems.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/07/wKioL1WQHNOzEUiqAAGMrv7sMPY746.jpg "title=" 03.png "alt=" Wkiol1wqhnozeuiqaagmrv7smpy746.jpg "/>
Click "+" to open the "Select Members" dialog box. In the list, select the email address you want to work with. Click "Add" and "OK".
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/0B/wKiom1WQGyXSLWCpAAGWN68OyrQ273.jpg "title=" 04.png "alt=" Wkiom1wqgyxslwcpaagwn68oyrq273.jpg "/>
Note: If you need to constrain or manipulate the sender of the external messaging system, you will need to add the e-mail address of the external sender to the current Exchange online subscription in advance as a "mail address user" or "contact".
If you only want to reject messages sent to the mailbox by one or several senders, you can change the rejected senders by changing the "no Senders" selected by default in "Reject messages from" to "senders in the list below" and then editing the lists.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/07/wKioL1WQHPjAPHodAAFlj3fwxSg466.jpg "title=" 05.png "alt=" Wkiol1wqhpjaphodaaflj3fwxsg466.jpg "/>
What you need to avoid is that the same sender exists both in the Accept list and there is a deny list. This creates a conflict, and if you do so, Exchange online will fail to complete the setup when you finally save the user's mailbox configuration.
If you need to quickly and easily restrict bulk users to send mail to specific users, you can use the method of distribution groups to achieve. Create a distribution group for those users who need the action, and then add it as needed in the EAC to the Allow or reject list for the user's mailbox.
Ii. Managing Exchange Online User mailbox delivery restrictions with PowerShell
If you need to verify that a user's mailbox is set with delivery restrictions, you can easily get it through get-mailbox .
Get-mailbox Zhangsan | Flacceptmessagesonlyfrom,acceptmessagesonlyfromdlmembers,rejectmessagesfrom,rejectmessagesfromdlmembers, Requiresenderauthenticationenabled
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/0B/wKiom1WQG1HgxrCgAAHNAqnq0pA973.jpg "title=" 06.png "alt=" Wkiom1wqg1hgxrcgaahnaqnq0pa973.jpg "/>
which
Acceptmessagesonlyfrom Indicates which users are allowed to receive messages from
acceptmessagesonlyfromdlmembers Indicates which distribution groups are allowed to receive messages from
Rejectmessagesfrom Indicates which users are denied receiving messages from
ejectmessagesfromdlmembers Indicates which distribution groups are denied receiving messages from
requiresenderauthenticationenabled Indicates whether sender authentication is enabled
If the requiresenderauthenticationenabled value of True indicates that sender authentication is enabled, False indicates that the option is disabled.
1 , configure the Accept Senders List
Set the Allow Senders list for mailbox users to allow messages to be received from multiple users and all users included in a distribution group.
set-mailbox zhangsan-acceptmessagesonlyfrom wangwu,zhaoliu-acceptmessagesonlyfromdlmembers " Sales Department "
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/08/wKioL1WQHSeRpFuAAAKGfIRwkRM888.jpg "title=" 07.png "alt=" Wkiol1wqhserpfuaaakgfirwkrm888.jpg "/>
Note that the operation is not appended to the existing list, but overrides the existing list directly. If you need to append the sender to the list, you need to use the "add" parameter to implement it.
Set-mailbox zhangsan-acceptmessagesonlyfrom @{add= "Lisi"}
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/0B/wKiom1WQG4PTCNZBAAKWEpplRs0129.jpg "title=" 08.png "alt=" Wkiom1wqg4ptcnzbaakwepplrs0129.jpg "/>
Then you need to remove the sender from the existing list to use the "remove" parameter.
Set-mailbox zhangsan-acceptmessagesonlyfrom @{remove= "Wangwu"}
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/0B/wKiom1WQHfTSLkZQAAKVSVonKrM845.jpg "title=" 09.png "alt=" Wkiom1wqhftslkzqaakvsvonkrm845.jpg "/>
Similarly if you need to add or remove a distribution group in the Allow list, you also need to use "add" or "remove" to implement it.
set-mailbox zhangsan-acceptmessagesonlyfromdlmembers @{remove= " Sales Department"}
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/08/wKioL1WQIAWjmaRDAAJ52-NLZew919.jpg "title=" 15.png "alt=" Wkiol1wqiawjmardaaj52-nlzew919.jpg "/>
2 , configure enable check for user authentication
Enable check for user authentication for mailbox users, which is allowed to be received by authenticated sender users.
Set-mailbox zhangsan-requiresenderauthenticationenabled $true
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/0B/wKiom1WQHlmyD88UAAIs4i25oNo978.jpg "title=" 11.png "alt=" Wkiom1wqhlmyd88uaais4i25ono978.jpg "/>
Set requiresenderauthenticationenabled The value of the parameter is "$false" Disable this option.
Set-mailbox zhangsan-requiresenderauthenticationenabled $false
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/08/wKioL1WQIDmz7cguAAJNqNT1KYw721.jpg "title=" 12.png "alt=" Wkiol1wqidmz7cguaajnqnt1kyw721.jpg "/>
3 , configure the Reject Senders list
The action and allow lists are the same for the Reject list rejectmessagesfrom and rejectmessagesfromdlmembers . You can set it up in a way that overrides the entire list or adds and removes specific senders.
set-mailbox zhangsan-acceptmessagesonlyfrom$null-rejectmessagesfrom wangwu-rejectmessagesfromdlmembers " Sales Department "
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/0B/wKiom1WQHofyf_LEAAJ24rsCyMQ613.jpg "title=" 13.png "alt=" Wkiom1wqhofyf_leaaj24rscymq613.jpg "/>
The same action is still to overwrite the existing reject list, and if you only want to append to the existing list, you still need to use the "add" parameter to implement it.
Set-mailbox zhangsan-rejectmessagesfrom @{add= "Sunba"}
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/08/wKioL1WQIE-yKluCAAJT8rszbMM772.jpg "title=" 14.png "alt=" Wkiol1wqie-yklucaajt8rszbmm772.jpg "/>
This article is from the "Fat Brother Technology Hall" blog, please be sure to keep this source http://liulike.blog.51cto.com/1355103/1668893
EEEKB article--Go to the Exchange Online service in Office 365 How to configure Message delivery restrictions in Exchange online