As promised in another thread, a report on using type 1 remailers in
mutt as I see it.

I played around with mixmaster support in mutt, but with little success. 
I decided to go back to the beginning, partly because of my failure with
mixmaster but also because I am not sure I need mixmaster. Just
anonymity rather than privacy may be all I need. So I have played with
type I remailers. I use it most for posting to usenet anonymously and I
use Vsevolod Volkov's NNTP patch. The same approach can be used for normal 
mailing. This reports how I am now doing it. It may be of interest to some 
people.

1. Use an alias for the remailer. E.g.

alias anon Anonymous Remailer <[EMAIL PROTECTED]>

2. Use send-hook to incorporate a special sig file if mailing to
remailer. E.g. 

send-hook (remailer) \
        'set signature="~/.mutt/type1.inc" attribution="On %d, %n wrote:"'
send-hook (remailer) 'unset sig_dashes'

Note that you also need:-

send-hook . 'set sig_dashes'

3. I also have various folder hooks for the newsgroups. E.g.

folder-hook comp.mail.mutt 'my_hdr Newsgroups: comp.mail.mutt'
folder-hook sci.chem 'my_hdr Newsgroups: sci.chem'

to add the appropriate "Newsgroups:" header if I post or reply via the
mail2news gateway provided I am in the appropriate group folder.

4. The sig file - type1.inc - looks like:-

::
Anon-To: [EMAIL PROTECTED]

##
Newsgroups: alt.test
Subject: 


-- 
"Add here whatever you want as a true sig".

The system works like this:-

a) The folder-hooks in (3) leave a "Newsgroups:" proper header. Use the
editor to move it down into the text below the alt.test line.
b) Delete the alt.test line.
c) Add the subject to the header in the body of the message.
d) Type in the message before the real sig.
e) If replying, you have to move up the first 5 lines of this type1.inc
file to the top of the message. The message has to start with the "::"
line. You can also move down the "in-Reply-to" header from the proper
headers to the headers in the message. Perhaps other proper headers need
to be moved to.

You can then send the message to the type 1 remailer. This will strip of
the headers and use the headers you had in the message body to send the
message to the final destination as specified in the "Anon-To:" line.


5. Many type 1 remailers require you to encrypt the body of the message
from (4) using pgp and the remailer's public key. The message has then 
to follow the two lines below, looking like:-

::
Encrypted: PGP


-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.0.4 (AIX)
Comment: For info see http://www.gnupg.org

hIwDQxhxASvroMcBA/4scYwhRsuL1Yde1ekq/LPyZ8jUCh15DsWFC2aoIBJ7ofiS
tgqyyx3wxcj6DuDk+VbcsuGdzhGgkg3mhqYfwiQJKDxof+FZGe86qym9KkP7VO+f
GbJqKb+ZWre7PQm+PfwhgbK6Y/+/7Oh80ykIgDrVFcfYSPwGMa8z83LZ1vpL1cmv
DhdczHgvtOo1L6PoroPVWjs5t8Apaf5xrzjTb37PVlMCdObRgzlsUdMwJrE3B+5I
mX6UeuECwXagAezt45b8t7VgpX6HaiA96vna0kGzh1mreu3rt4pForrr4U/X82VR
dYPSBECh97Y0Tloi3Q0ffEBqMCWAxy610IvwMVNmXu7U5uQdq8CyJTz6yeLL7YYw
tWVlxDx7m6miIlemmnwHUUxSMQZr+t+bepBBBilk6A==
=8hJD
-----END PGP MESSAGE-----

I do this with a macro for filter-entry in the compose menu:-

macro  compose \Cp "<filter-entry>pgp-remailer-filter<enter>y<send-message>"

You compose the message as in (4) and exit the editor saving the
message. Hitting ^p then does the necessary filtering to give the
encrypted message and the PGP header and sends the message to the
remailer. Here it is decrypted and the message sent on to the final
destination. The filter pgp-remailer-filter looks like:-

cat <<END 
::
Encrypted: PGP

END
gpg --always-trust --encrypt --armor --recipient 2BEBA0C7 2>/dev/null

The "2>/dev/null" removes a warning message that I do not have secure
memory. I can not get over this problem with my system as I do not have
mlock. You might want to remove this until you are sure all works or
even remove it for good. The --always-trust option will not be necessary
if the remailer public key is trusted. Obviously if you are using pgp 6
it will be a different command.


This works pretty well except for the "reply" problem of having to move
up the line from the "sig" to the top of the message. I am thinking of a
different solution using vim, but I can not think of a generic mutt
solution that does not depend on the editor you are using.

I welcome comments on this approach to using type 1 remailers. Is there
a better way.

Cheers, Brian.

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702.     Fax 08-89466847.     http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html

Reply via email to