Dear all,

I am obviously doing something wrong but can't find out what...

I configured mutt to PGP-sign/encrypt (~/.muttrc and ~/.gpg.rc). When sending 
out an email interactively, everything works fine: emails get signed and 
encrypted by mutt.

But if I am sending a mail via the command line, mutt doesn't bother about PGP 
at all: The email is sent out, but without any PGP. Does anybody know what's 
going wrong?

I am using Mutt 1.5.21 on Ubuntu 14.04 LTS (64bit).

Command line:

$ echo "Body Text" | mutt -s "Subject Text" -F /home/me/.muttrc -d 5 
recei...@my-domain.de

.muttrc:

$ cat .muttrc

set from = "sen...@my-domain.de"
set realname = "Sender"
set smtp_url = "smtp://sen...@my-domain.de@smtp.my-domain.de:25/"
set smtp_pass = "xxxxxxxxxxxx"
set smtp_authenticators = "plain:cram-md5"
set ssl_force_tls = no
set ssl_starttls = no
source /home/me/.gpg.rc
set pgp_use_gpg_agent=yes
set pgp_autosign=yes
set pgp_autoencrypt=yes
set pgp_auto_decode=yes
set pgp_replysign=yes
set pgp_replysignencrypted=yes
set pgp_replyencrypt=yes
set pgp_verify_sig=yes
set pgp_sign_as=F5216DFA
set pgp_timeout=3600
set crypt_autosign
set crypt_replyencrypt
set crypt_replysign
set crypt_autoencrypt=yes
set crypt_replyencrypt=yes
set crypt_replysignencrypted=yes
set crypt_verify_sig=yes

Debug output:

$ cat .muttdebug0

[2015-01-06 11:38:41] Mutt/1.5.21 (2010-09-15) debugging at level 5
[2015-01-06 11:38:41] Reading configuration file '/etc/Muttrc'.
[2015-01-06 11:38:41] parse_attach_list: ldata = 0x6ddbe8, *ldata = (nil)
[2015-01-06 11:38:41] parse_attach_list: added */.* [9]
[2015-01-06 11:38:41] parse_attach_list: ldata = 0x6ddbe0, *ldata = (nil)
[2015-01-06 11:38:41] parse_attach_list: added text/x-vcard [7]
[2015-01-06 11:38:41] parse_attach_list: added application/pgp.* [2]
[2015-01-06 11:38:41] parse_attach_list: ldata = 0x6ddbe0, *ldata = 0x1e5e400
[2015-01-06 11:38:41] parse_attach_list: skipping text/x-vcard
[2015-01-06 11:38:41] parse_attach_list: skipping application/pgp.*
[2015-01-06 11:38:41] parse_attach_list: added application/x-pkcs7-.* [2]
[2015-01-06 11:38:41] parse_attach_list: ldata = 0x6ddbd8, *ldata = (nil)
[2015-01-06 11:38:41] parse_attach_list: added text/plain [7]
[2015-01-06 11:38:41] parse_attach_list: ldata = 0x6ddbe0, *ldata = 0x1e5e400
[2015-01-06 11:38:41] parse_attach_list: skipping text/x-vcard
[2015-01-06 11:38:41] parse_attach_list: skipping application/pgp.*
[2015-01-06 11:38:41] parse_attach_list: skipping application/x-pkcs7-.*
[2015-01-06 11:38:41] parse_attach_list: added message/external-body [4]
[2015-01-06 11:38:41] parse_attach_list: ldata = 0x6ddbd0, *ldata = (nil)
[2015-01-06 11:38:41] parse_attach_list: added message/external-body [4]
[2015-01-06 11:38:41] Reading configuration file 
'/usr/lib/mutt/source-muttrc.d|'.
[2015-01-06 11:38:41] Reading configuration file '/etc/Muttrc.d/charset.rc'.
[2015-01-06 11:38:41] Reading configuration file '/etc/Muttrc.d/colors.rc'.
[2015-01-06 11:38:41] Reading configuration file 
'/etc/Muttrc.d/compressed-folders.rc'.
[2015-01-06 11:38:41] Reading configuration file '/etc/Muttrc.d/gpg.rc'.
[2015-01-06 11:38:41] Reading configuration file '/etc/Muttrc.d/smime.rc'.
[2015-01-06 11:38:41] Reading configuration file '/home/me/.muttrc'.
[2015-01-06 11:38:41] Reading configuration file '/home/me/.gpg.rc'.
[2015-01-06 11:38:41] ../send.c:1214: mutt_mktemp returns 
"/tmp/mutt-my-machine-1001-5138-18437527211071003667".
[2015-01-06 11:38:41] ../sendlib.c:2696: mutt_mktemp returns 
"/tmp/mutt-my-machine-1001-5138-287496981775757253".
[2015-01-06 11:38:41] mwoh: buf[Subject: Subject Text] is short enough 
[2015-01-06 11:38:41] ../send.c:988: mutt_mktemp returns 
"/tmp/mutt-my-machine-1001-5138-959755060790486839".
[2015-01-06 11:38:41] mwoh: buf[Subject: Subject Text] is short enough
[2015-01-06 11:38:41] Connected to smtp.my-domain.de:25 on fd=4
[2015-01-06 11:38:41] 4< 220 my-mailserver.de ESMTP Postfix (cust)
[2015-01-06 11:38:41] 4> EHLO my-machine
[2015-01-06 11:38:41] 4< 250-my-mailserver.de
[2015-01-06 11:38:41] 4< 250-PIPELINING
[2015-01-06 11:38:41] 4< 250-SIZE 51200000
[2015-01-06 11:38:41] 4< 250-AUTH LOGIN PLAIN CRAM-MD5
[2015-01-06 11:38:41] 4< 250-AUTH=LOGIN PLAIN CRAM-MD5
[2015-01-06 11:38:41] 4< 250-ENHANCEDSTATUSCODES
[2015-01-06 11:38:41] 4< 250 8BITMIME
[2015-01-06 11:38:41] smtp_authenticate: Trying method plain
[2015-01-06 11:38:41] SASL local ip: my.ip.add.ress;59604, remote 
ip:the.ip.add.ress;25
[2015-01-06 11:38:41] External authentication name: sen...@my-domain.de
[2015-01-06 11:38:41] mutt_sasl_cb_authname: getting authname for 
smtp.my-domain.de:25
[2015-01-06 11:38:41] mutt_sasl_cb_authname: getting user for 
smtp.my-domain.de:25
[2015-01-06 11:38:41] mutt_sasl_cb_pass: getting password for 
sen...@my-domain.de@smtp.my-domain.de:25
[2015-01-06 11:38:41] 4> AUTH PLAIN 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
[2015-01-06 11:38:41] 4< 235 2.7.0 Authentication successful
[2015-01-06 11:38:41] SASL protection strength: 0
[2015-01-06 11:38:41] SASL protection buffer size: 65536
[2015-01-06 11:38:41] 4> MAIL FROM:<sen...@my-domain.de>
[2015-01-06 11:38:41] 4< 250 2.1.0 Ok
[2015-01-06 11:38:41] 4> RCPT TO:<recei...@my-domain.de>
[2015-01-06 11:38:41] 4< 250 2.1.5 Ok
[2015-01-06 11:38:41] 4> DATA
[2015-01-06 11:38:41] 4< 354 End data with <CR><LF>.<CR><LF>
[2015-01-06 11:38:41] 4> Date: Tue, 6 Jan 2015 11:38:41 +0100
[2015-01-06 11:38:41] 4> From: Sender <sen...@my-domain.de>
[2015-01-06 11:38:41] 4> To: recei...@my-domain.de
[2015-01-06 11:38:41] 4> Subject: Subject Text
[2015-01-06 11:38:41] 4> Message-ID: <20150106103841.GA5138@my-machine>
[2015-01-06 11:38:41] 4> MIME-Version: 1.0
[2015-01-06 11:38:41] 4> Content-Type: text/plain; charset=us-ascii
[2015-01-06 11:38:41] 4> Content-Disposition: inline
[2015-01-06 11:38:41] 4> User-Agent: Mutt/1.5.21 (2010-09-15)
[2015-01-06 11:38:41] 4>
[2015-01-06 11:38:41] 4> Body Text
[2015-01-06 11:38:41] 4> .
[2015-01-06 11:38:42] 4< 250 2.0.0 Ok: queued as BE57E5E4E
[2015-01-06 11:38:42] 4> QUIT
[2015-01-06 11:38:42] mutt_free_body: unlinking 
/tmp/mutt-my-machine-1001-5138-18437527211071003667.

Anyone knows why mutt ignores PGP?

Thanks in advance!

Cheers,
Manu

Reply via email to