Code Monkey home page Code Monkey logo

web2py_mailcaptcha's Introduction

MailCaptcha

For e-mail address protection with recaptcha for postfix.

If somebody send an e-mail to a protected address the MailCaptcha defer it with 4xx temporary failure and send an e-mail to the sender with the URL where the sender can solve the captcha and get their e-mail address to the whitelist. After that the mail system is accepting the e-mail address.

There is a

  • whitelist (you can put e-mail address or only domain in it without @)
  • blacklist (you can put e-mail address or only domain in it without @)
  • honeypot e-mail list (you can put e-mail address or only domain in it without @)
  • notification to the mail system administrator
  • sent mail can be signed with x.509 certificate

Requirements

What does this?

  1. somebody send you an email from [email protected]
  2. postfix ask MailCaptcha what to do
  3. if the recipient address is not in the protected list do nothing special
  4. else if the sender is in the blacklist reject the message with 5xx code
  5. else if the recipient address is a honeypot address put the sender in the blacklist and reject the message with 5xx code
  6. else if the sender is in the whitelist do nothing special
  7. else if the sender is in the waiting queue the message get a temporary rejection with 4xx code
  8. else if the sender is not in queue then
    . put the sender address in the waiting queue
    . send a mail to the sender address with the web url where the sender can solve the captcha and so the sender address is going to the whitelist
    . optionally send a mail to mail system admin to notify about a new sender address in the waiting queue so admin can enable the sender address by hand
  9. the sender have to go to the web url and solve the captcha
  10. sender address is going to the whitelist
  11. the next time the sender's mail system (the system that hold the sender's mail) try to deliver the e-mail after temporary failure can deliver the message without problem

Credit

The main idea is from: http://www.kfki.hu/cnc/projekt/postfilter/indexeng.html http://www.kfki.hu/cnc/projekt/postfilter/docs/README.txt

József Kadlecsik

together with the members of "CSI-KO Csillebérci Komputer" Company.

web2py_mailcaptcha's People

Contributors

szimszon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

tazjel gaellalire

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.