# Ciphermail-VM as IMAP server: PGP encrypted emails don't get decrypted

**URL:** <https://community.ciphermail.com/t/ciphermail-vm-as-imap-server-pgp-encrypted-emails-dont-get-decrypted/385>\
**Category:** Gateway\
**Created:** [August 14, 2014, 11:19am UTC](https://community.ciphermail.com/t/ciphermail-vm-as-imap-server-pgp-encrypted-emails-dont-get-decrypted/385 "2014-08-14T11:19:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_Gunther](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@Stefan\_Gunther](https://community.ciphermail.com/u/Stefan_Gunther)\
**Post date:** [August 14, 2014, 11:19am UTC](https://community.ciphermail.com/t/ciphermail-vm-as-imap-server-pgp-encrypted-emails-dont-get-decrypted/385/1 "2014-08-14T11:19:06Z")

</div>

it doesn' t make a difference, whether I choose INLINE or MIME.

Kind regards,

Stefan

> **···**
>
> -----Ursprüngliche Nachricht-----  
> Von: Martijn Brinkers \<martijn(a)djigzo.com\>  
> Gesendet: Do 14.08.2014 12:55  
> Betreff: Re: Ciphermail-VM as IMAP server: PGP encrypted emails don't get decrypted  
> An: users(a)lists.djigzo.com;
> 
> > On 08/14/2014 12:50 PM, Stefan Michael Guenther wrote:  
> > \> we had to configure a ciphermail vm as an imap server, which is already  
> > working perfectly.  
> > \>  
> > \> Our problem is, that we have created the internal account guenther(a)in-put.de  
> > in the ciphermail webinterface and the corresponding imap account guenther.  
> > \> Then we uploaded the private gpg key and told ciphermail that it is a trusted  
> > key.  
> > \>  
> > \> When we now send an gpg encrypted email, the MPA log contains the following  
> > line:  
> > \>  
> > \> 14 Aug 2014 12:54:56 | INFO incoming; MailID:  
> > 7d8b2b64-9023-41e4-b415-c95f5a0f003c; Recipients: [guenther(a)in-put.de];  
> > Originator: s.guenther(a)in-put.de; Sender: s.guenther(a)in-put.de; Remote address:  
> > 127.0.0.1; Subject: TEST A 9; Message-ID: \<53EC9567.2070502(a)in-put.de\>;  
> > (mitm.application.djigzo.james.mailets.Log) [Spool Thread #0]  
> > \> 14 Aug 2014 12:54:56 | INFO Subject filter is disabled for the sender;  
> > MailID: 7d8b2b64-9023-41e4-b415-c95f5a0f003c; Recipients: [guenther(a)in-put.de]  
> > (mitm.application.djigzo.james.mailets.Default) [Spool Thread #0]  
> > \> 14 Aug 2014 12:54:56 | INFO To internal recipient(s); MailID:  
> > 7d8b2b64-9023-41e4-b415-c95f5a0f003c; Recipients: [guenther(a)in-put.de]  
> > (mitm.application.djigzo.james.mailets.Default) [Spool Thread #0].  
> > \> 14 Aug 2014 12:54:57 | INFO Message handling is finished. Sending to final  
> > recipient(s); MailID: 7d8b2b64-9023-41e4-b415-c95f5a0f003c; Recipients:  
> > [guenther(a)in-put.de]; Originator: s.guenther(a)in-put.de; Sender:  
> > s.guenther(a)in-put.de; Remote address: 127.0.0.1; Subject: TEST A 9; Message-ID:  
> > \<53EC9567.2070502(a)in-put.de\>; (mitm.application.djigzo.james.mailets.Log)  
> > [Spool Thread #0]  
> > \>  
> > \> Hm, ciphermail doesn't even try to decrypt it, but sends it to the local IMAP  
> > server.  
> > \> Probably it is just a single option that is missing, but which is it?
> > 
> > Could it be that the message is PGP/INLINE encrypted (as opposed to  
> > PGP/MIME) and you did not select "Incoming PGP/INLINE enabled"?

---

<div class="post-metadata">

**Author:** ![martijn](https://dub1.discourse-cdn.com/flex017/user_avatar/community.ciphermail.com/martijn/32/127_2.png) [@martijn](https://community.ciphermail.com/u/martijn)\
**Post date:** [August 14, 2014, 11:40am UTC](https://community.ciphermail.com/t/ciphermail-vm-as-imap-server-pgp-encrypted-emails-dont-get-decrypted/385/2 "2014-08-14T11:40:35Z")

</div>

You mean choose from the sending application? If the incoming email is  
PGP/INLINE encrypted, you need to enable "Incoming PGP/INLINE enabled"  
otherwise the gateway will not scan the message for PGP inline parts.  
Can you send me (off list) the message that was not decrypted?

Kind regards,

Martijn Brinkers

> **···**
>
> On 08/14/2014 01:19 PM, Stefan Michael Guenther wrote:
> 
> > -----Ursprüngliche Nachricht-----  
> > Von: Martijn Brinkers \<martijn(a)djigzo.com\>  
> > Gesendet: Do 14.08.2014 12:55  
> > Betreff: Re: Ciphermail-VM as IMAP server: PGP encrypted emails don't get decrypted  
> > An: users(a)lists.djigzo.com;
> > 
> > > On 08/14/2014 12:50 PM, Stefan Michael Guenther wrote:
> > > 
> > > > we had to configure a ciphermail vm as an imap server, which is already
> > > 
> > > working perfectly.
> > > 
> > > > Our problem is, that we have created the internal account guenther(a)in-put.de
> > > 
> > > in the ciphermail webinterface and the corresponding imap account guenther.
> > > 
> > > > Then we uploaded the private gpg key and told ciphermail that it is a trusted
> > > 
> > > key.
> > > 
> > > > When we now send an gpg encrypted email, the MPA log contains the following
> > > 
> > > line:
> > > 
> > > > 14 Aug 2014 12:54:56 | INFO incoming; MailID:
> > > 
> > > 7d8b2b64-9023-41e4-b415-c95f5a0f003c; Recipients: [guenther(a)in-put.de];  
> > > Originator: s.guenther(a)in-put.de; Sender: s.guenther(a)in-put.de; Remote address:  
> > > 127.0.0.1; Subject: TEST A 9; Message-ID: \<53EC9567.2070502(a)in-put.de\>;  
> > > (mitm.application.djigzo.james.mailets.Log) [Spool Thread #0]
> > > 
> > > > 14 Aug 2014 12:54:56 | INFO Subject filter is disabled for the sender;
> > > 
> > > MailID: 7d8b2b64-9023-41e4-b415-c95f5a0f003c; Recipients: [guenther(a)in-put.de]  
> > > (mitm.application.djigzo.james.mailets.Default) [Spool Thread #0]
> > > 
> > > > 14 Aug 2014 12:54:56 | INFO To internal recipient(s); MailID:
> > > 
> > > 7d8b2b64-9023-41e4-b415-c95f5a0f003c; Recipients: [guenther(a)in-put.de]  
> > > (mitm.application.djigzo.james.mailets.Default) [Spool Thread #0].
> > > 
> > > > 14 Aug 2014 12:54:57 | INFO Message handling is finished. Sending to final
> > > 
> > > recipient(s); MailID: 7d8b2b64-9023-41e4-b415-c95f5a0f003c; Recipients:  
> > > [guenther(a)in-put.de]; Originator: s.guenther(a)in-put.de; Sender:  
> > > s.guenther(a)in-put.de; Remote address: 127.0.0.1; Subject: TEST A 9; Message-ID:  
> > > \<53EC9567.2070502(a)in-put.de\>; (mitm.application.djigzo.james.mailets.Log)  
> > > [Spool Thread #0]
> > > 
> > > > Hm, ciphermail doesn't even try to decrypt it, but sends it to the local IMAP
> > > 
> > > server.
> > > 
> > > > Probably it is just a single option that is missing, but which is it?
> > > 
> > > Could it be that the message is PGP/INLINE encrypted (as opposed to  
> > > PGP/MIME) and you did not select "Incoming PGP/INLINE enabled"?
> > 
> > it doesn' t make a difference, whether I choose INLINE or MIME.
> 
> --  
> CipherMail email encryption
> 
> Open source email encryption gateway with support for S/MIME, OpenPGP  
> and PDF messaging.
> 
> > **[CipherMail email encryption and digital signatures](https://www.ciphermail.com)**
> >
> > Easy to use server-side email encryption for automatic encryption and digital signing of email.
> 
> Twitter: [http://twitter.com/CipherMail](http://twitter.com/CipherMail)
