#!/bin/csh -f # # pgp-send # # This lets you set up mail addresses like "vac+eric" so you # can send encrypted mail without any extra work. To use this add # lines like the following to your .maildelivery file: # # Addr vac+eric pipe ? /usr/vac/pgp/pgp-send eric@foo.bar.baz # # The "vac+eric" is my alias for this person. The eric@foo.bar.baz # is both the mailing address and what PGP uses to find the key. # /usr/vac/pgp/pgp-send is the full pathname for this script. # # I could also use my mailer to make an alias of "eric" that # expanded into "vac+eric" - you probably can too. # # This script assumes PGPPATH is set and pgp is on your PATH. # If not, either fix that, or add a "cd" to that directory. # # Note that the unecrypted mail will be on your machine a little # longer this way, so this is a bit less secure than encrypting the # mail by hand. However, this is a short period, and if your # machine's security is broken they could have read your mail as you # wrote it. # # With this, someone would need to do some "breaking and entering" # to get at your mail. # # This file is http://www.offshore.com.ai/security/pgp-send # See also pgp-receive # # Vince Cate # vac@cs.cmu.edu # # cd /usr/vac/pgp set TO = $1 cat | pgp -fe $TO | /usr/ucb/mail -s "encrypted mail" $TO