| Posted by: Lemonde - 07 November 2025 13:42:25 |
|---|
| I would like to add an domain as a 'whiteleisted' domain on exchange server 2019 |
| Posted by: sirclesadmin - 07 November 2025 13:43:20 |
|---|
|
Of course! To "whitelist" a sender domain in Exchange Server 2019 (on-premises), the most effective and common method is to create a Mail Flow Rule (also known as a Transport Rule). This rule will bypass the spam filtering process for email messages originating from the specified domain. Whitelist a Domain using a Mail Flow RuleYou will need to use the Exchange Admin Center (EAC) to create the transport rule.
Best Practice & Security NoteWhile the transport rule method is common, whitelisting entire domains can be a security risk because it bypasses all anti-spam and anti-malware checks, including for sender spoofing. A more secure, though more involved, method is to use the Connection Filter to whitelist the sending IP address of the trusted sender:
This ensures that only mail truly originating from the secure server IP is allowed, making it harder for spammers to spoof the whitelisted domain. You may also find this video helpful: Whitelist a domain in Exchange Online. This video explains how to whitelist a domain using mail flow rules in Exchange Online (Microsoft 365), a similar concept to the on-premises Exchange Server 2019 transport rule. |
| Posted by: Lemonde - 07 November 2025 13:43:35 |
|---|
| Isn't there a way to make it whitelisted in powershell as i have already done this |
| Posted by: sirclesadmin - 07 November 2025 13:43:59 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Absolutely! Since you're already familiar with the concept of a Mail Flow Rule, the equivalent PowerShell method in Exchange Server 2019 uses the This approach is faster for adding multiple domains or for bulk administration. Whitelist a Domain using Exchange Management Shell (PowerShell)The goal is the same as the Exchange Admin Center (EAC) method: create a Transport Rule that sets the Spam Confidence Level (SCL) to -1 for messages originating from the specified domain. An SCL of -1 means the message is considered safe and bypasses spam filtering. 1. Connect to Exchange Management ShellLaunch the Exchange Management Shell (EMS) on your Exchange 2019 server. 2. Create a New Transport Rule (Whitelist Rule)Use the
3. Adding a Domain to an Existing RuleIf you want to add a new domain to a whitelist rule you've already created (either via EAC or PowerShell), you need to retrieve the existing domains first, append the new one, and then update the rule.
4. VerificationTo verify that your rule has been created and configured correctly, run:
You should see the For further security best practices and to understand rule configuration in detail, this video can be helpful: How to set up email flow rules using PowerShell. This video walks through setting up mail flow rules in Exchange Online using PowerShell, which applies similar cmdlet concepts to your Exchange 2019 on-premises environment. |
| Posted by: Lemonde - 07 November 2025 13:44:47 |
|---|
| No i mean add it to a whitelist within the whole spam filtering rather than as a mail flow rule |
| Posted by: sirclesadmin - 07 November 2025 13:45:02 |
|---|
|
That is a much more direct way to bypass the core spam filtering engine. In Exchange Server 2019, the anti-spam component that evaluates the content of a message is the Content Filter agent. You can use the Exchange Management Shell (EMS) to add the domain to the Content Filter's Bypassed Sender Domains list. This is the direct mechanism for whitelisting at the agent level, without relying on a Transport Rule. Whitelist a Domain in Content Filtering via PowerShellThe Content Filter agent maintains a list of senders and domains for which it will bypass content evaluation. You use the 1. Check Current Bypassed DomainsFirst, it's essential to check the list to see what's currently there.
2. Add the New Domain to the ListThe
Replace
3. VerificationTo confirm the new domain has been successfully added, run the
The output for
|
| Posted by: Lemonde - 07 November 2025 13:51:16 |
|---|
| will that stop them being quarantined? |
| Posted by: sirclesadmin - 07 November 2025 13:51:41 |
|---|
|
Yes, it should stop them from being quarantined by the Content Filter agent. Here is the breakdown of why this works in Exchange Server 2019: How Content Filtering and Quarantine Relate
The ResultSince the whitelisted domain's messages are instantly given an SCL of -1, this score is much lower than the typical SCL Quarantine Threshold (e.g., SCL 6 or 7). Therefore, the message will not meet the condition for quarantine and will be delivered to the recipient's Inbox. A Critical Caveat (Non-Spam Filtering)The key thing to remember is that you are only bypassing the Content Filter (spam detection). Messages can still be stopped or quarantined by other agents/rules if they trigger a detection for:
In summary: For messages classified as spam by the Content Filter, adding the domain to |