Coder Social home page Coder Social logo

buanzo / spamtrap Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 13 KB

Simple spamtrap script that integrates imap/pop3 downloading, and smtp sending for reporting to cisco, etc.

Python 100.00%
spamtrap python3 imap-client pop3-client smtp-client spamassassin spam-protection

spamtrap's Introduction

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]

spamtrap's People

Contributors

buanzo avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.