Robert Withrow <[EMAIL PROTECTED]> writes:

> I want to use TMDA to cryptographically tag outgoing email I send
> to myself, but I don't want to use a dated From address or a
> keyword From address, because I want the From to always be my
> external email address.
>
> Is there a way to achieve this?

OK, I see what you mean now.  Yes.

> To insert a cryptographically secure header that wouldn't be used
> by anything else, and then have an incoming rule accept them.
> But it doesn't seem possible (from the documentation) to
> construct _either_ a incomming or outgoing filter to do this.

Look at the FINGERPRINT setting in Defaults.py.  You'll have to
keep a log of your outgoing hashes so when you get a message with
X-TMDA-Fingerprint: (and From: [EMAIL PROTECTED]) you can check that
hash with the list of valid ones.

since TMDA doesn't handle the actual use of the FINGERPRINT, you'll
have to do something like (untested):

,----[ snip from incoming filter ]
| from [EMAIL PROTECTED] deliver=|./bin/from_me
`----

,----[ ~/bin/from_me ]
| #!/bin/sh
| 
| time=`date +%H%M`
| tmpfile=/tmp/msg.$$.$time
| 
| cat > $tmpfile
| 
| fingerprint=`822field x-tmda-fingerprint < $tmpfile`
| 
| if ( grep $fingerprint list_of_fingerprints ) > /dev/null; then
|    maildrop < $tmpfile
| fi
`----

822field is from djb's mess822 package, and maildrop is any MDA you
choose.

-Drew

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to