On Fri, Oct 17, 2025 at 08:35:03PM +0800, W. D. Sadeep wrote:
Hello,
I'm trying to send a PGP-encrypted email using the mail command. The
problem is my mail client (mutt) doesn't recognize it as a PGP-encrypted
email.
I am a bit confused, I have no issues with mutt and gpg.
Are you encrypting it before trying to send it via mutt ?
Try sending it as a attachment, or use mutt's own gpg
settings.
In my ~/.muttrc I have these which allows mutt to encrypt
then send my email, I can encrypt or not encrypt using key 'p'.
set crypt_use_gpgme=yes
set crypt_autosign=yes
set crypt_verify_sig=yes
set crypt_replysign=yes
set crypt_replyencrypt=yes
set crypt_replysignencrypted=yes
set pgp_sign_as=0x????????
Adjust as needed. Note, on 7.7 I use package:
mutt-2.2.15v3-gpgme-sasl
I'm sending the email like so:
echo "encrypted msg" | gpg -e -f key | mail -s "test" [email protected]
I think it's because the content-type is not set. Is there a way to do
this?
--
W. D. Sadeep
PGP: 103BF9E3E750BF7E
--
[t]csh(1) - "An elegant shell, for a more... civilized age."
- Paraphrasing Star Wars