默认情况下,Exchange 2013 中的 Outlook Web Access (OWA) 似乎将可疑垃圾邮件移动到垃圾邮件文件夹。这在我的大多数环境中都是不受欢迎的行为,因为我们有梭子鱼垃圾邮件过滤器到位。
我想为 Exchange 2013 环境中所有现有和未来用户全局完成以下设置。实现此目的最轻松的方法是什么?
我以为 Exchange shell 会很神奇,但是运行Get-Mailbox | Set-MailboxJunkEmailConfiguration -Enabled $false
产量……
The Junk Email configuration couldn't be set. The user needs to sign in to Outlook Web App before they can modify
their Safe Senders and Recipients or Blocked Senders lists.
+ CategoryInfo : NotSpecified: (:) [Set-MailboxJunkEmailConfiguration], DataSourceOperationException
+ FullyQualifiedErrorId : [Server=BANANA,RequestId=479f4808-2eda-4175-8503-7b670e46c277,TimeStamp=8/4/2014 4:33:33
PM] [FailureCategory=Cmdlet-DataSourceOperationException] 44FC7257,Microsoft.Exchange.Management.StoreTasks.SetMa
ilboxJunkEmailConfiguration
+ PSComputerName : banana
答案1
我建议您为您的组织创建一个传输规则,将垃圾邮件可信度设置为 -1。在 powerShell 中,它将如下所示:
New-TransportRule -Name“禁用垃圾过滤”-Priority“0”-SetSCL“-1”
答案2
尝试一下(Exchange PowerShell:
$All = Get-Mailbox -RecipientTypeDetails UserMailbox -ResultSize Unlimited
$All | foreach {Set-MailboxJunkEmailConfiguration $_.Name -Enabled $false}