On Friday, May 25, 2012 12:54:42 AM UTC+2, Ricardo Pedroso wrote: > > On Thu, May 24, 2012 at 11:00 PM, szimszon <[email protected]> wrote: > > > > MailCaptcha > > =========== > > > > For e-mail address protection with recaptcha for postfix. > > I'm not understand how this works, but I feel that is an interesting idea. >
Can you specify a use case? > 1. somebody send you an email from [email protected] 2. postfix ask MailCaptcha what to do - if the recipient address is not in the protected list do nothing special - else if the sender is in the whitelist do nothing special - else if the sender is in the blacklist reject the message with 5xx code - else if the sender is in the waiting queue the message get a temporary rejection with 4xx code - 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 3. the sender have to go to the web url and solve the captcha 4. sender address is going to the whitelist 5. 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 > Why and how is tied to postfix? > > It's a postfix policy daemon. Here is the doc: http://www.postfix.org/SMTPD_POLICY_README.html It receives over tcp message envelope header parameter and based the recipient and sender parameter ask postfix to do accept, tem. reject, reject... > > > 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 > > * blacklist > > Are these lists defined in postfix side or web2py side? It's in web2py's side. > > By the way, I was trying to browse the code via github but you are using > tabs for indentation, making a litter bit harder to follow the code. > Sorry for that I'm used to make code indention with tabs. :-o > > Ricardo > The main idea is from: http://www.kfki.hu/cnc/projekt/postfilter/indexeng.html http://www.kfki.hu/cnc/projekt/postfilter/docs/README.txt

