[hashcash] hashcash integration on MTA level for postfix

  • From: decoder <decoder@xxxxxxxxxxxx>
  • To: hashcash@xxxxxxxxxxxxx
  • Date: Wed, 16 Aug 2006 20:59:53 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello there,

I'm new to hashcash and noticed that there isn't much MTA support for
it. From my point of view, starting this at MUA level is pointless so
I wrote a content_filter for postfix which stamps all outgoing mails.
I've put a first (alpha) version online at

http://users.own-hero.net/~decoder/hashcash/

The script is integrated into the master cf like every other
content_filter, for example with these 2 lines:

smtp      inet  n       -       n       -       -       smtpd
        -o content_filter=hashcash:dummy

hashcash  unix  -       n       n       -       -       pipe
  flags=Rq user=hashcashuser argv=/usr/local/bin/hashcash.pl -f
${sender} -- ${recipient}


It checks if the mail it currently processes is an outgoing mail (from
field contains specified domain(s) and last Received: line contains an
SMTP from a given list), then it stamps it and requeues the mail for
sending.

The only thing that doesn't work yet is Bcc: (All mails are delivered
but every mail contains all hashcash headers). I am currently working
on this, together with a major restructuring as this version is really
ugly (proof of concept only).

Hope someone has use for this :)

Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE42soJQIKXnJyDxURAhkSAJ4uC9yVSQhkHknvduAKASz2PYwtxACfV3Pa
VhlluFs46Mj8EvMsK5Z/FHU=
=DXHZ
-----END PGP SIGNATURE-----


Other related posts: