Get the App
SLTechnology News&Howtos  ›  Servers  › 

Delete message queues for a specific hop domain

Shulou Source: shulou.com Published: 2022-06-02 19:01:40 10月04日 Update

Some servers, especially in cases of careless protection, are easily used as relay servers for spam, often causing queue congestion

Others are due to bounce, and some messages that do not deliver reports will be blocked in the queue. If you need to delete these spam messages, you can use the following command to specify the domain name for queue deletion.

Get-TransportServer | Get-Queue-Filter {NextHopDomain-eq "Contoso.com"} | Remove-Message-WithNDR $False

Tags: Mail queue spam server service inadvertently can be passed command domain name situation report this is relay protection Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Docker NVidia Huawei macOS