This article is on how to get a clear status of the spam you receive on your Exchange Server
Scenario: A user call-in and told that another user from another company can’t contact him. The email got refused.
Task 1: Investigate to be sure it’s at our door we stop him.
-
Check the source email
- Check inside if the answer he got was from us.
- YES: Skip to Task 2 below
- NO:
- Does he use is ISP as a smarthost ?
- YES:
- Does it’s is smarthost that refuse to send the email ?
- That case happen when the smarthost check RBL list to be sure he does not forward from an unsecure source. Most of the time it happen when a site got infected by a malware/virus that mass spam. In that case please check the IP listed in the email. The WAN IP would be blacklisted in RBL. The other company must then ask to be delisted if he eliminated the source of the problem. At this point it’s no longer a problem we can assist with.
- NO:
- Do you use an external antispam service?
- YES:
- Check the log on your management interface.
- NO:
- The DNS from the remote site is properly configured? A bad MX record from the remote DNS server could lead to a mail send error.
Task 2: Get to know the AntiSpam filter rules.
- Check the source email
- Check the error returned.
- If it’s an error you think it was correct to flag, then advise the user that the remote company must correct something. (He’s on RBL, he relay, he got a bad SCL because of a badly wrote email, etc…)
- If you are unsure that it was flagged spam for a good reason, check more deeper. Skip to Task 3
- An example in Exchange 2010;
Task 3: With the rule we check, start to investigate the issue deeper.
- Check your agent log to see the real cause of the rejection:
-
Issue the powershell command; Get-AgentLog |?{ (\$_.p1fromaddress -match "contoso.com" –or \$_.p2fromaddresses -match " contoso.com ") -and \$_.action –eq "RejectMessage"} (I suggest to redirect the output to a text file (with > log.txt))
- In the text file you will log like that in example;
-
- Timestamp : XXXX-XX-XX XX:XX:XX
SessionId : XXXXXXXXXXXXXXXX
IPAddress : X.X.X.X
MessageId :
P1FromAddress : test@contoso.com
P2FromAddresses : {test@contoso.com}
Recipients : {test@contoso.com}
Agent : Sender Id Agent
Event : OnEndOfHeaders
Action : RejectMessage
SmtpResponse : 550 5.7.1 Missing purported responsible address
Reason : MissingPRA
ReasonData : No valid PRA
Diagnostics :
- Timestamp : XXXX-XX-XX XX:XX:XX
- From there diagnose and change your antispam feature if you can.
Task 4: Reporting script.
Get-AntispamFilteringReport.ps1 : Get a general report for what agent block the most.
Get-AntispamSCLHistogram.ps1 : Retrieve a chart with SCL value for spam received.
Get-AntispamTopBlockedSenderDomains.ps1 : Retrive the Top Blocked Sender domains. Don’t forget it can be forged domain. The SenderID antispam feature help us there.
Get-AntispamTopBlockedSenderIPs.ps1 : Retrieve the top IP that send us spam. If you got big number there you can list the IP in a block rule in the antispam feature or block it in the router directly. To prevent a RBL check each time on the IP.
Get-AntispamTopBlockedSenders.ps1 : Retrieve the top sender.
Get-AntispamTopRBLProviders.ps1 : Retrieve what RBL block the most. Use that chart before remove a RBL. Some RBL are too strict sometime, but removing it can cause a lot of spam to actually enter. When a user call, it’s the dilemma to accept one email versus what the RBL block.
Get-AntispamTopRecipients.ps1 : Top users that receive spam.
Apply to
Exchange 2007
Exchange 2010
Exchange 2013
Popular Tags
Archives
-
2026 (23)
- November 2026 (3)
-
October 2026
(15)
- Blog content imported
- Added language; Hindi
- Added more contents for Polish
- App Review: Go Talk Now
- New language added; portuguese
- Website hardened for external link
- New spam for App Developper
- Website maintenance
- Tech Tip: Meraki firewall possible parental control
- New apps release for Android
- Router review - Sophos UTM
- Tech Tip: ASUS parental's control for home router
- Tech Tip: Amazon Fire Tablet Parental's control
- Youtube Restriced Mode
- 100K visit Milestone achieved !
- September 2026 (3)
- August 2026 (2)
- 2024 (4)
-
2023 (19)
- December 2023 (2)
- October 2023 (6)
- September 2023 (2)
- July 2023 (1)
- June 2023 (1)
- May 2023 (2)
- April 2023 (1)
- February 2023 (2)
- January 2023 (2)
-
2022 (26)
- December 2022 (3)
- November 2022 (5)
- October 2022 (4)
- September 2022 (2)
- July 2022 (2)
- May 2022 (1)
- March 2022 (1)
- February 2022 (4)
- January 2022 (4)
-
2021 (15)
- December 2021 (4)
- November 2021 (1)
- October 2021 (2)
- September 2021 (1)
- August 2021 (1)
- May 2021 (1)
- April 2021 (1)
- February 2021 (1)
- January 2021 (3)
-
2020 (18)
- December 2020 (2)
- November 2020 (1)
- October 2020 (2)
- September 2020 (2)
- August 2020 (1)
- July 2020 (1)
- March 2020 (1)
- February 2020 (2)
-
January 2020
(6)
- Windows 10 IoT Terminal Deployment – Part 4 – Apps Publishing (HPDM - HP Device Manager)
- Windows 10 IoT Terminal Deployment - Part 2 - Protect the Hard Disk ? - Deploy Write Filter !
- Office 2019 / 365 Deployment
- Windows 10 IoT Terminal Deployment - Part 1 - Introduction
- Microsoft Team support for CentOS 7 / RedHat
- Prevent Office from saving to OneDrive by default
-
2019 (29)
- December 2019 (3)
- November 2019 (3)
-
October 2019
(8)
- Microsoft Q&A Launch !
- Windows Server 2019 OEM Activation problem (VM)
- StackOverflow moderation
- Microsoft Exchange Information Store Error - EventID 5003 | EventID 3154 - Time error
- Windows 10 - Update Stay at Download Waiting
- Windows Server 2019 Domain Controller - Ready for production ! (KB4516077)
- 0365 - Exchange Online X-Sender Spam Problem
- Active-Directory - Invoke-InternalEnsureADDSComponentInstallState not recognized - DCPromo
- September 2019 (1)
- August 2019 (1)
- July 2019 (2)
- April 2019 (1)
- March 2019 (1)
-
February 2019
(7)
- RDS: HP Thin OS resolution problem in Full Screen mode !
- Unable to rename domain controller: Account already exists
- Windows Update Error 80243004
- Windows 10 and the faulty network adapter
- Windows Server 2019 RDS: Install Error: dismapi_error__failed_to_enable_updates rds-web-access
- Windows Machine Unknown state on ESX
- RDS: Published App + Dell / Wyse ThinOS + Juniper DHCP relay option
- January 2019 (2)
-
2018 (28)
- December 2018 (1)
- November 2018 (6)
- October 2018 (1)
- September 2018 (2)
- August 2018 (4)
- July 2018 (2)
- May 2018 (1)
-
March 2018
(7)
- Windows 7/10 + Terminal + SmartCard Redirection with XenDesktop
- Windows 7/10, vSphere 5.5+, Citrix Desktop Studio Power State Unknown
- Logon Failure: The target account name is incorrect
- DNS Server Service - Error 1717: The interface is unknown
- Migrating files from an Active Directory Domain to another, unblocking the files ?
- Active Directory: Reset the clock on an expired password for an account
- OneDrive on Local Account ?
- February 2018 (2)
- January 2018 (2)
-
2017 (18)
- December 2017 (1)
- October 2017 (1)
- September 2017 (3)
- August 2017 (3)
- July 2017 (3)
- June 2017 (6)
- April 2017 (1)
-
2016 (26)
-
October 2016
(24)
- Windows Server - Prevent users from changing printer preferences for color
- Windows Server 2012 R2 - Firewall Logging for RDP (or any other service!)
- Windows VDA - Script to re-install the Microsoft Update add-on
- Windows VDA / Terminal Server session - Kill for good that Java update Warning !
- The Citrix purge ! part 1
- Windows - Outgoing Fax in the Console
- SQL Server 2014 on a Domain Controller ?
- Windows VDA + Pre Deploy Juniper client / Pulse Secure
- How to add non latin entry in the Windows Host file ? (%SystemRoot%\System32\drivers\etc\hosts)
- Windows Remote Desktop Service - Manually creating a .RDP file
- Microsoft Office 2013 32-bit over 64-bit error
- Windows - How to easily deploy XenApp multiple farm config for a user
- Windows Server 2012 R2 KB3185279 & KB3185331 seem to break Google tip to block Youtube with DNS
- Microsoft Offer some Virtual Machine for testing purpose
- In Windows Server 2012 R2, and error copying file name too long ?
- Windows Server - Stress that spooler ! - The terminal Server session will love you after
- Windows/Linux/BSD - How to check if the memory is functioning in ECC mode
- PowerShell - RDS - XenApp - Force password change for account near passoword expiration date
- Temporary file from UsrClass.dat (sometime associated with NTUSER.dat)
- How to export Event Viewer data to Excel with PowerShell
- Visual Studio 2015 on Windows Server 2012 R2
- Remove any trace of an Antivirus was installed (WMI)
- Windows VDA + Roaming Profile + OTP program
- Windows VDA – KMS problem - Resetting rearm count
- September 2016 (1)
- June 2016 (1)
-
October 2016
(24)
- 2015 (2)
-
2014 (5)
- November 2014 (3)
- March 2014 (1)
- January 2014 (1)
-
2013 (10)
- November 2013 (2)
- October 2013 (1)
- August 2013 (3)
- May 2013 (2)
- February 2013 (2)
- 2012 (2)
-
2011 (7)
-
June 2011
(7)
- The hypervisor was not contactable at the supplied address
- Wyse Xenith FTP bug from old firmware.. (post 1.5.xx)
- Messaging between Desktop in XenDesktop
- Unknown publisher.. small annoyance
- Best Practices for Configuring Provisioning Server on a Network
- Citrix XenDesktop and McAfee EPO script
- How to cold reset an APC ups
-
June 2011
(7)
- 2010 (2)
