John Buttery wrote:
> > I have procmail encrypt all mail that is sent to me if it is not
> > already encrypted.
>
> Would you mind posting your procmail recipe that you use for the
> automatic encryption? This strikes me as something I wouldn't
> necessarily use now, but may wish I had asked for in the future...
> :)
The procmail recipe looks like this:
# PGP public key
PGP_PUB_KEY=0x5EAD2778
# Whether to encrypt mail by default (assuming $PGP_PUB_KEY is set)
ENCRYPTMAIL=1
...
# Encrypt the mail if $ENCRYPTMAIL is 1, a PGP public key has been
# set, and the mail is not already encrypted.
:0 fw
* ENCRYPTMAIL ?? 1
* ! PGP_PUB_KEY ?? ^^^^
* !Content-type: multipart/encrypted
| $INCDIR/scripts/gpg_encrypt_mail.pl -r $PGP_PUB_KEY
The gpg_encrypt_mail.pl script is attached.
Steve
Attachment:
gpg_encrypt_mail.pl
Description: Perl program
Attachment:
pgpvHa9PHLE4s.pgp
Description: PGP signature