PowerShell

Monitoring BlackLists with PowerShell module

I've been Exchange Administrator for a longer part of my IT life. As any mail admin (not just Microsoft Exchange) will tell you having your SMTP server on one of the blacklists is not fun. While generally useful DNSBL blacklists for normally functioning SMTP servers are pain. That's why it's advised to proactively monitor your IP addresses and see if/when they are blacklisted so you can react (either by changing your SMTP IP Address or by trying to remove the IP address from the blacklists). While there are many options on out there (my favorite MxToolbox.com included) I needed something more configurable and free. So here it is…

Basic examples for PSBlackListChecker

Basic functionality of this module is ability to quickly verify if given IP address is on any of over 80 defined DNSBL lists. Below code will return results only if IP is on any of the lists.

Import-Module PSBlackListChecker.psm1

Search-BlackList -IP '89.25.253.1' -ReturnAll -SortBy IsListed -SortDescending $true | Format-Table -AutoSize

The results are as below:

Monitoring blacklists (daily, hourly, weekly, monthly)

As mentioned earlier PSBlackListChecker has reporting functionality. You can set it up to send you reports on demand hourly, daily, weekly (this is rather Task Scheduler functionality then the module itself).

For more information, usage examples and details visit dedicated PSBlackListChecker dedicated to this module. 

This post was last modified on 10 czerwca, 2018 13:23

Przemyslaw Klys

System Architect with over 14 years of experience in the IT field. Skilled, among others, in Active Directory, Microsoft Exchange and Office 365. Profoundly interested in PowerShell. Software geek.

Share
Published by
Przemyslaw Klys

Recent Posts

Active Directory Replication Summary to your Email or Microsoft Teams

Active Directory replication is a critical process that ensures the consistent and up-to-date state of…

2 tygodnie ago

Syncing Global Address List (GAL) to personal contacts and between Office 365 tenants with PowerShell

Hey there! Today, I wanted to introduce you to one of the small but excellent…

5 miesięcy ago

Active Directory Health Check using Microsoft Entra Connect Health Service

Active Directory (AD) is crucial in managing identities and resources within an organization. Ensuring its…

7 miesięcy ago

Seamless HTML Report Creation: Harness the Power of Markdown with PSWriteHTML PowerShell Module

In today's digital age, the ability to create compelling and informative HTML reports and documents…

8 miesięcy ago

How to Efficiently Remove Comments from Your PowerShell Script

As part of my daily development, I create lots of code that I subsequently comment…

8 miesięcy ago

Unlocking PowerShell Magic: Different Approach to Creating ‘Empty’ PSCustomObjects

Today I saw an article from Christian Ritter, "PowerShell: Creating an "empty" PSCustomObject" on X…

9 miesięcy ago