Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Exchange 2019 Anti-Spam component enables anti-spam function and sets whitelist\ blacklist

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Step 1: use the command line manager to run the Install-AntispamAgents.ps1 script to run the command

& $env:ExchangeInstallPath\ Scripts\ Install-AntiSpamAgents.ps1

Step 2: restart the Microsoft Exchange transport service using the command line manager

Run the command: Restart-Service MSExchangeTransport

Step 3: specify the internal SMTP server in the organization

Run the following command in the Exchange Management Shell on the Mailbox server: (multiple servers are separated by numbers)

Set-TransportConfig-InternalSMTPServers @ {Add= "192.168.32.51"}

View this step is valid

Get-TransportConfig | Format-List InternalSMTPServers

View the status of the transport agent

Get-TransportAgent

5 to enable sender filtering, run the following command

Set-SenderFilterConfig-Enabled $true

Note verify that the following command was run successfully

Get-SenderFilterConfig | Format-List Enabled

Use the command line manager to enable or disable blocking messages with empty senders

Set-SenderFilterConfig-BlankSenderBlockingEnabled $true

View this step is valid

Get-SenderFilterConfig | Format-List BlankSenderBlockingEnabled

This example will configure the sender filter agent with the following information: (blacklist)

Add chris@contoso.com and michelle@contoso.com to the blocked existing senders list. Removes tailspintoys.com from the list of blocked existing sender domains. Add blueyonderairlines.com to the list of blocked existing sender domains and subdomains.

Set-SenderFilterConfig-BlockedSenders @ {Add= "chris@contoso.com", "michelle@contoso.com"}-BlockedDomains @ {Remove= "tailspintoys.com"}-BlockedDomainsAndSubdomains @ {Add= "blueyonderairlines.com"}

View this step is valid

Get-SenderFilterConfig | Format-List BlockedSenders,BlockedDomains,BlockedDomainsAndSubdomains

Exchange Anti-Spam component sets whitelist

Add whitelist on the existing basis (Remove/Add delete and add)

Set-ContentFilterConfig-BypassedSenders @ {Add= "ceshi@xxxx.cn"}

Set-ContentFilterConfig-BypassedSenderDomains @ {Add= "xxxx.cn"}

Query the set whitelist: (BypassedSenders refers to a sender and BypassedSenderDomains refers to a sender domain)

Get-ContentFilterConfig | Format-List BypassedSenders,BypassedSenderDomains

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report