# 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…

blog

29 Apr 2018 pl

![Monitoring BlackLists with PowerShell module](/wp-content/uploads/2018/04/img_5ae624e384d2c.png)

[Zobacz obrazy (2)](#pf-content-image-1-0)

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.

```powershell
Import-Module PSBlackListChecker.psm1

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

The results are as below:

[!\[Wynik Search-BlackList w PowerShell pokazujący listę DNSBL dla adresu IP wraz ze statusem IsListed, odpowiedzią i FQDN.\](/wp-content/uploads/2018/04/img_5ae61b3ba2c75.png)](/wp-content/uploads/2018/04/img_5ae61b3ba2c75.png)

### 💡 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).

[!\[Raport blacklist e-mail pokazujący monitorowane adresy IP oraz tabelę serwerów sprawdzonych przeciwko listom DNSBL.\](/wp-content/uploads/2018/04/img_5ae624e384d2c.png)](/wp-content/uploads/2018/04/img_5ae624e384d2c.png)

For **more information**, **usage example**s and **details** visit dedicated [PSBlackListChecker](https://evotec.xyz/hub/scripts/psblacklistchecker/) dedicated to this module.

## Powiązane projekty

Projekty powiązane z tagami, kategoriami i treścią tego wpisu.

[Wszystkie projekty](/projekty/)

Trwa dopasowywanie projektów...

[Powrót do bloga](/blog/)

## Powiązane wpisy

- [Check an API write after a PowerShell timeout](/blog/verify-uncertain-api-outcomes-powershell/)
- [Inspect and convert mixed Office archives with PSWriteOffice](/blog/inspect-and-convert-mixed-office-archives-pswriteoffice/)
- [Compose PDF reports and automate page workflows with PSWriteOffice](/blog/automate-pdf-reports-and-page-workflows-pswriteoffice/)

<!-- PowerForge markdown artifact sha256:503B6F078D26594832BAF756A6A0EC2378A8D2B721D76CC7AE6BF06ECECEC386 -->
