Exchange邮箱设置委托账号

什么是委托账号?

委托账号(Delegate Account) 是指被授予权限访问他人邮箱或资源的账户。

如何设置邮箱委托?

打开Exchange Management Shell。

image

1、执行命令

批量给所有UserMailbox 类型账号设置邮箱委托superman@example.com(完全访问权限)

Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox')-and(Alias -ne 'superman@example.com')}|Add-MailboxPermission -User superman@example.com -AccessRights fullaccess -InheritanceType all -AutoMapping $false

命令分为两部分(一起执行):

  1. Get-Mailbox:筛选符合条件的邮箱。

  2. Add-MailboxPermission:为筛选出的邮箱批量添加权限。

说明

建议新建一个或多个账号作为委托账号(如“superman@example.com”),不要使用默认的admin账号。

image.png

2、验证授权

方式1(登录验证)

验证是否授权成功,先登录进委托邮箱里,如本例先登录supermanexchange邮箱,然后打开其他邮箱中搜索被授权访问的其他员工邮箱并登录,如成功进入其邮箱即可。

imageimage

说明

输入时可能非本exchange的联系人也会显示出来,别选错了。如果测试时选错账号,会增加排查时间。image

方式2 (命令行)

{FullAccess}代表授权成功。

验证单个账号

Get-MailboxPermission -Identity "user@example.com" | Where-Object {$_.User -like "superman"} | Format-List -Property Identity, User, AccessRights, IsInherited, AutoMapping

image

验证全部账号

Get-Mailbox -ResultSize Unlimited | Get-MailboxPermission -User superman@example.com | Format-List Identity, User, AccessRights, IsInherited, AutoMapping

image