https://github.com/buanzo/spamtrap
Simple spamtrap script that integrates imap/pop3 downloading, and smtp sending for reporting to cisco, etc.
https://github.com/buanzo/spamtrap
imap-client pop3-client python3 smtp-client spam-protection spamassassin spamtrap
Last synced: 6 months ago
JSON representation
Simple spamtrap script that integrates imap/pop3 downloading, and smtp sending for reporting to cisco, etc.
- Host: GitHub
- URL: https://github.com/buanzo/spamtrap
- Owner: buanzo
- Created: 2018-12-10T15:23:29.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-19T20:45:52.000Z (almost 2 years ago)
- Last Synced: 2025-02-26T09:41:48.146Z (8 months ago)
- Topics: imap-client, pop3-client, python3, smtp-client, spam-protection, spamassassin, spamtrap
- Language: Python
- Size: 12.7 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spamtrap
Simple spamtrap script that integrates imap/pop3 downloading, and smtp sending for reporting to cisco, etc.## Introduction
A spamtrap is an email address that has NO reasons to receive ANY email
whatsoever. Thus, any email it receives, is most definitely UNWANTED.That is the definition of spamtrap: https://en.wikipedia.org/wiki/Spamtrap
This python3 application can help you implement your own spamtrap system at
your organization.## Features
* IMAP to download unwanted email from spamtrap-account
* SMTP to forward unwanted emails to a third party service (RFC822 attach)
* Cisco IronPort integration (updates a dictionary on any number of SSH-authenticated IronPort servers, for blacklisting purposes)
* SpamAssassin integration (not really used, but the python3 module is quite useful so I just upload it here!)## How to use
1. Configure
2. Execute via cron or else
3. ????
4. Profit!## IMPORTANT
Spamtraps have vulnerabilities. If you rely on this tool for fully automated spamtrapping, YOU WILL SUFFER. Your organization will suffer, etc, etc, etc. This *needs* human intervention.
## TODO - If you want to help:
* CRITICAL: implement RFC 2047 decoding and better sender address determination
* Implement POP3 (well, yes, this is an inhouse solution and we use imap!)
* Fix and implement all that is documented in-code
* implement config file
* self-domain detection [good when an account gets taken]