Re: How to send PGP-encrypted mail non-interactively?
* Rene Tschirley <tschirley@xxxxxxxxxxx> [11-22-06 11:58]:
> I'd like to have a script which sends eMail Cron-triggered on a daily
> basis. So far no problem for mutt, but it has to be PGP-encrypted
> with gnupg.
>
> The private key does not contain a passphrase, the machine which has
> the key and shall send the eMail is well secured. The mail content is
> created by a script, default PGP encryption is activated:
>
> set pgp_use_gpg_agent=yes
> set pgp_autosign=yes
> set pgp_autoencrypt=yes
> set crypt_autopgp=yes
> set crypt_autosign=yes
> set crypt_autoencrypt=yes
>
> I tried
>
> mutt -s "Test" -a <attachment> -i <body> <to_addr>
>
> but Mutt started interactively and wanted me to acknowledge every single
> process. I tried
>
> mutt -s "Test" -a <attachment> -i <body> <to_addr> < /dev/null
>
> and
>
> mutt -x <to_addr>-s "Test" -a <attachment> < <body>
>
> but Mutt sends the eMail unsigned and uncrypted.
encrypt the attachment prior to feeding it to mutt.
--
Patrick Shanahan Registered Linux User #207535
http://wahoo.no-ip.org @ http://counter.li.org
HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2