Hello,

mutt 1.5.21 under Centos 7
gpg 2.0.22 under Centos 7

I have been trying to send encrypted messages via mutt in command line.
The email arrives at destination but is never encrypted.
If I send the same thing using mutt interactively, the message arrives
encrypted.

Any idea where I could do something wrong ?

I use the following configuration :

set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch
--output - %f"
set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f"
set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch
--output - %f"
set pgp_sign_command="gpg --no-verbose --batch --output -
--passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --output -
--passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose
--output - --encrypt --textmode --armor --always-trust --encrypt-to
0xMyKey -- -r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 --batch
--quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a?
--armor --always-trust --encrypt-to 0xMyKey -- -r %r -- %f"
set pgp_import_command="gpg --no-verbose --import -v %f"
set pgp_export_command="gpg --no-verbose --export --armor %r"
set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint
--check-sigs %r"

set pgp_use_gpg_agent = yes
set pgp_sign_as = 0xMyKey
set pgp_timeout = 3600
set crypt_autosign = yes
set crypt_replyencrypt = yes
set crypt_autoencrypt=yes

send-hook "~f m...@email.com" set pgp_sign_as=0xMyKey

set from="Me<m...@email.com>"
set smtp_url="smtp://u...@skynet.be@relay.skynet.be:587/"
set smtp_pass="mypasswd"

Any help would be appreciated !

Thank you

Regards,

Alain


Reply via email to