AutoSpamEmailScan

4.1.1

AutoSpamEmailScan.ps1 is used to monitor a specific mailbox that in enterprise users can forward suspicious spam emails to a specific mailbox.
This PowerShell script can monitor the mailbox for any unread emails, grab the URLs and attachments from the emails and submit to virustotal.com, urlscan.io, Google safe browsing and OPSWAT. Script also can extract URLs from a
AutoSpamEmailScan.ps1 is used to monitor a specific mailbox that in enterprise users can forward suspicious spam emails to a specific mailbox.
This PowerShell script can monitor the mailbox for any unread emails, grab the URLs and attachments from the emails and submit to virustotal.com, urlscan.io, Google safe browsing and OPSWAT. Script also can extract URLs from a pdf file.
After the scan finished, script can generate HTML format scan report and auto reply to the senders.
Script can be run once or loop interval, if  in the init.conf is 0 means script will only run one time else the number is the loop interval seconds.

Before you run the script Install the Exchange Web Services Managed API 2.2.
https://www.microsoft.com/en-us/download/details.aspx?id=42951

Visit https://github.com/banhao/AutoSpamEmailScan to get the init.conf and Bytescout.PDF2HTML.dll, this dll file is used to convert PDF to HTML.

Please check the License before you download this script, if you don't agree with the License please don't download and use this script. https://github.com/banhao/AutoSpamEmailScan/blob/master/LICENSE

Update the Bytescout.PDF2HTML.dll to version 10.6.0.3667. It's still a trial version and will expire after 90 days. If you see this error:
 --------------------------------------------------------------------------------------
 "new-object : Exception calling ".ctor" with "0" argument(s): "Trial period expired."
 At H:\MonitorEmailSecurity\MonitorEmailSecurity.ps1:273 char:16
 +         $extractor = new-object Bytescout.PDF2HTML.HTMLExtractor
 --------------------------------------------------------------------------------------
That means the DLL file has been expired.


Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name AutoSpamEmailScan -RequiredVersion 4.1.1

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

FileList

Version History

Version Downloads Last updated
5.2.0 120 11/8/2022
5.1.6 109 9/21/2022
5.1.5 116 9/8/2022
5.1.4 137 8/17/2022
5.1.3 179 6/10/2022
5.1.2 175 5/31/2022
5.1.1 175 5/30/2022
5.1.0 176 5/26/2022
5.0.1 190 5/3/2022
5.0.0 190 4/29/2022
4.6.1 224 9/20/2021
4.6.0 208 7/9/2021
4.5.1 214 5/26/2021
4.5.0 204 5/19/2021
4.4.2 212 4/5/2021
4.4.1 208 3/26/2021
4.4.0 206 3/22/2021
4.3.0 219 11/13/2020
4.2.2 239 4/3/2020
4.2.1 213 4/3/2020
4.2.0 219 3/10/2020
4.1.2 210 2/11/2020
4.1.1 (current version) 209 2/11/2020
4.1.0 214 1/22/2020
4.0.2 220 10/21/2019
4.0.1 207 10/18/2019
4.0 209 10/8/2019
3.62 210 10/3/2019
3.61 223 9/26/2019
3.6 211 9/17/2019
3.5 214 9/5/2019
3.4 212 8/23/2019
3.3 217 8/20/2019
Show less