https://techcommunity.microsoft.com/t5/exchange-team-blog/email-stuck-in-exchange-on-premises-transport-queues/ba-p/3049447
https://social.microsoft.com/Forums/zh-CN/7d89cff5-7189-497e-8606-d81018acea0e/exchange214573686520869370963703820214349872534636215?forum=exchangeserverzhchs
2022年1月1日发现用户无法发送接收邮件(邮件全部卡在提交队列),故障原因如下图
1月1日临时解决办法:
使用命令行管理程序在特定 Exchange 服务器上临时绕过恶意软件筛选:
若要临时绕过恶意软件筛选,请运行如下命令:Set-MalwareFilteringServer -identity kz-psex01 -BypassFiltering $true
Set-MalwareFilteringServer -identity kz-psex01 -BypassFiltering $true
然后重启传输服务后,邮件收发正常
使用命令行管理程序在特定 Exchange 服务器上禁用恶意软件筛选:
若要禁用恶意软件筛选,请运行如下命令:& $env:ExchangeInstallPath\Scripts\Disable-Antimalwarescanning.ps1
服务器
若要从新启用恶意软件筛选,请使用 Enable-Antimalwarescanning.ps1
若要验证是否禁用了恶意软件筛选,请运行如下命令并确认它是否返回值 False:Get-TransportAgent “Malware Agent”
ide
使用命令行管理程序在特定 Exchange 服务器上临时绕过恶意软件筛选:
若要临时绕过恶意软件筛选,请运行如下命令:Set-MalwareFilteringServer -BypassFiltering $true
若要还原恶意软件筛选,请运行如下命令:Set-MalwareFilteringServer -BypassFiltering $false
若要验证是否绕过了恶意软件筛选,请运行如下命令并确认它是否返回值 True:Get-MalwareFilteringServer | Format-List BypassFiltering
命令行
1月4号上班后发现微软发布了脚本解决办法如下: (下载脚本,运行脚本)
Using the Automated Solution
- Download the script here: https://aka.ms/ResetScanEngineVersion
- Before running the script, change the execution policy for PowerShell scripts by running Set-ExecutionPolicy -ExecutionPolicy RemoteSigned.
- Run the script on each Exchange mailbox server that downloads antimalware updates in your organization (use elevated Exchange Management Shell).
Set-MalwareFilteringServer -identity kz-psex01 -BypassFiltering $false
Set-MalwareFilteringServer -identity kz-psex01 -BypassFiltering $false
然后重启传输服务