# Double encryption?

**URL:** <https://community.ciphermail.com/t/double-encryption/746>\
**Category:** Gateway\
**Created:** [July 15, 2021, 5:13am UTC](https://community.ciphermail.com/t/double-encryption/746 "2021-07-15T05:13:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeremy\_Hansen](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@Jeremy\_Hansen](https://community.ciphermail.com/u/Jeremy_Hansen)\
**Post date:** [July 15, 2021, 5:13am UTC](https://community.ciphermail.com/t/double-encryption/746/1 "2021-07-15T05:13:01Z")

</div>

Working through a new installation using the community edition packages.

I noticed if I sent a message that is encrypted at the client, ciphermail will encrypt that message again and the original message is sent as an attachment.

I also noticed if I send a message from a host using something like mailx, the body of the message is never included in the email.

Sending from a client and allowing ciphermail to do the encryption seems to work fine.

Also noticing this error in the logs:

\_sasl\_plugin\_load failed on sasl\_canonuser\_init

Jul 14 20:27:31 cmx01.la1.clx.corp postfix/smtp[2250]: ldapdb

A little confusing because I’m not using ldap.

Thanks!

---

<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:** [July 20, 2021, 11:56am UTC](https://community.ciphermail.com/t/double-encryption/746/2 "2021-07-20T11:56:41Z")

</div>

> I noticed if I sent a message that is encrypted at the client,  
> ciphermail will encrypt that message again and the original message  
> is sent as an attachment.

What type of encryption is applied at the client side and what  
encryption is applied server side?

> I also noticed if I send a message from a host using something like  
> mailx, the body of the message is never included in the email.

What do you mean with "the body of the message is never included in the  
email"?

Kind regards,

Martijn Brinkers

> **···**
>
> On Thu, 2021-07-15 at 01:13 -0400, Jeremy Hansen via Users wrote:
> 
> --  
> CipherMail email encryption  
> Email encryption with support for S/MIME,  
> Ope  
> nPGP, PDF Messenger and Webmail Messenger

---

<div class="post-metadata">

**Author:** ![Jeremy\_Hansen](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@Jeremy\_Hansen](https://community.ciphermail.com/u/Jeremy_Hansen)\
**Post date:** [July 20, 2021, 2:30pm UTC](https://community.ciphermail.com/t/double-encryption/746/3 "2021-07-20T14:30:54Z")

</div>

> > I noticed if I sent a message that is encrypted at the client,  
> > ciphermail will encrypt that message again and the original message  
> > is sent as an attachment.
> 
> What type of encryption is applied at the client side and what  
> encryption is applied server side?

PGP on both sides.

> > I also noticed if I send a message from a host using something like  
> > mailx, the body of the message is never included in the email.
> 
> What do you mean with "the body of the message is never included in the  
> email"?

echo test | mail -s Test jeremy(a)losangelesrecording.com

The message comes through encrypted but I don’t see “test” in the body of the email.

Thank you!

> **···**
>
> > On Jul 20, 2021, at 7:56 AM, Martijn Brinkers via Users \<users(a)lists.ciphermail.com\> wrote:
> > 
> > > On Thu, 2021-07-15 at 01:13 -0400, Jeremy Hansen via Users wrote:
> 
> > Kind regards,
> > 
> > Martijn Brinkers
> > 
> > --  
> > CipherMail email encryption  
> > Email encryption with support for S/MIME,  
> > Ope  
> > nPGP, PDF Messenger and Webmail Messenger

---

<div class="post-metadata">

**Author:** ![Jeremy\_Hansen](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@Jeremy\_Hansen](https://community.ciphermail.com/u/Jeremy_Hansen)\
**Post date:** [July 23, 2021, 1:26am UTC](https://community.ciphermail.com/t/double-encryption/746/4 "2021-07-23T01:26:30Z")

</div>

Here’s the full headers of my message:

Return-Path: \<jeremy(a)coldlogix.com\>  
Delivered-To: jeremy(a)losangelesrecording.com  
Received: from mx1.la1.clx.corp  
&nbsp;&nbsp;by mx1.la1.clx.corp with LMTP  
&nbsp;&nbsp;id 0eMYEMQX+mD9BAIAzivOYw  
&nbsp;&nbsp;(envelope-from \<jeremy(a)coldlogix.com\>)  
&nbsp;&nbsp;for \<jeremy(a)losangelesrecording.com\>; Thu, 22 Jul 2021 18:13:40 -0700  
Received: from localhost (localhost [127.0.0.1])  
&nbsp;&nbsp;by mx1.la1.clx.corp (Postfix) with ESMTP id E5761412E05  
&nbsp;&nbsp;for \<jeremy(a)losangelesrecording.com\>; Thu, 22 Jul 2021 18:13:39 -0700 (PDT)  
DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.la1.clx.corp E5761412E05  
X-Virus-Scanned: amavisd-new at coldlogix.com  
Received: from smtp.coldlogix.com ([127.0.0.1])  
&nbsp;&nbsp;by localhost (smtp.coldlogix.com [127.0.0.1]) (amavisd-new, port 10024)  
&nbsp;&nbsp;with ESMTP id 3RyMjMJsZQrY for \<jeremy(a)losangelesrecording.com\>;  
&nbsp;&nbsp;Thu, 22 Jul 2021 18:13:36 -0700 (PDT)  
Received: from smtp.coldlogix.com (cmx01.la1.clx.corp [192.168.30.23])  
&nbsp;&nbsp;by mx1.la1.clx.corp (Postfix) with ESMTPS id 6F1F74C3589  
&nbsp;&nbsp;for \<jeremy(a)losangelesrecording.com\>; Thu, 22 Jul 2021 18:13:28 -0700 (PDT)  
DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.la1.clx.corp 6F1F74C3589  
Received: from cmx01.la1.clx.corp (localhost [127.0.0.1])  
&nbsp;&nbsp;by smtp.coldlogix.com (CipherMail) with ESMTP id 4GWBCX1P3Rz2SSxp  
&nbsp;&nbsp;for \<jeremy(a)losangelesrecording.com\>; Thu, 22 Jul 2021 18:13:28 -0700 (PDT)  
Received: from mail.subtraverse.net (netman.subtraverse.intra [192.168.10.10])  
&nbsp;&nbsp;by smtp.coldlogix.com (CipherMail) with ESMTP id 4GWBCW49cKz2SSxp  
&nbsp;&nbsp;for \<jeremy(a)losangelesrecording.com\>; Thu, 22 Jul 2021 18:13:27 -0700 (PDT)  
Received: from localhost (localhost.localdomain [127.0.0.1])  
&nbsp;&nbsp;by mail.subtraverse.net (Postfix) with ESMTP id 5C3F2146F9E  
&nbsp;&nbsp;for \<jeremy(a)losangelesrecording.com\>; Thu, 22 Jul 2021 18:13:27 -0700 (PDT)  
Received: from mail.subtraverse.net ([127.0.0.1])  
&nbsp;&nbsp;by localhost (mail.subtraverse.net [127.0.0.1]) (amavisd-new, port 10024)  
&nbsp;&nbsp;with LMTP id mmNPq8Z2mIx2 for \<jeremy(a)losangelesrecording.com\>;  
&nbsp;&nbsp;Thu, 22 Jul 2021 18:13:26 -0700 (PDT)  
Received: from smtpclient.apple (unknown [10.10.10.2])  
&nbsp;&nbsp;(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))  
&nbsp;&nbsp;(No client certificate requested)  
&nbsp;&nbsp;by mail.subtraverse.net (Postfix) with ESMTPSA id 55C27146F9C  
&nbsp;&nbsp;for \<jeremy(a)losangelesrecording.com\>; Thu, 22 Jul 2021 18:13:26 -0700 (PDT)

[attachment.htm](https://community.ciphermail.com/uploads/short-url/gE54jbEFtj3zspIcL4Hek1Y9Yut.htm) (48.6 KB)

> **···**
>
> Date: Thu, 22 Jul 2021 21:13:25 -0400  
> From: Jeremy Hansen \<jeremy(a)coldlogix.com\>  
> To: jeremy(a)losangelesrecording.com  
> Message-ID: \<7ECACFC9-40EB-4080-A8A8-69C9AE105155(a)coldlogix.com\>  
> Subject: Test  
> MIME-Version: 1.0  
> Content-Type: multipart/encrypted; protocol="application/pgp-encrypted";  
> &nbsp;&nbsp;boundary="----=\_Part\_8\_1019438032.1627002808114"  
> X-Virus-Scanned: amavisd-new at subtraverse.net  
> DKIM-Filter: OpenDKIM Filter v2.11.0 mail.subtraverse.net 55C27146F9C  
> X-Mailer: Apple Mail (2.3654.100.0.2.22)  
> X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL\_TRUSTED,ENCRYPTED\_MESSAGE  
> &nbsp;&nbsp;autolearn=ham autolearn\_force=no version=3.4.4  
> X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mx1.la1.clx.corp
> 
> ------=\_Part\_8\_1019438032.1627002808114  
> Content-Type: application/pgp-encrypted  
> Content-Transfer-Encoding: 7bit  
> Content-Description: PGP/MIME version identification
> 
> Version: 1
> 
> ------=\_Part\_8\_1019438032.1627002808114  
> Content-Type: application/octet-stream; name=encrypted.asc  
> Content-Transfer-Encoding: 7bit  
> Content-Description: OpenPGP encrypted message  
> Content-Disposition: inline; filename="encrypted.asc"
> 
> -----BEGIN PGP MESSAGE-----  
> Version: CipherMail (5.0.4)
> 
> hQIMA2Ju2ERNzXXmARAAhBNlL6BB6nc148QUFQy4u6CIiw1M2a+wKfhlrA5Mnpnx  
> tbkHNIPch90gGHFWgH/1fa+PlHfdj+EsYLow+b5+SSSZhrvyDvWCMvky+tJUN0va  
> qeWH8HfEgR2Pwj1/ziSxeUXZr8Kc5FScU/JKN/TEQcdP8mSZwkx146bbXU3a8yUi  
> PRdWc9UCFilN0HoNtZaNcW0Q0TdWySzi9+UFuighD/EqRozKin3Y6iKvb3zZxFIj  
> +u5s5FZta+Up9V/LN5CIH7IkbuSNhWMiSszf7zmwdowSyQDwx72a9xB2nndiOaWw  
> W4kcVK9LlcQSusbAVq9xfZ8LjJBNQMHJF84ppRn355tvRVuL6T9YyVnGmVX85G9Y  
> S3S3S5Z6nnNm4u7r6cD1p9dBWIDk8HiTvVjkdZAr+sGhy0Ukxm0Of+pbal+T4cgk  
> kxZHoS100XgTHZJWMzNT9F1WNAZnir4AgdD0P+5Q1uTvCKnWkzPdlxPZ26mwfd4D  
> pRB0W4Jg+uHfhVlgJp6kg0BJdXUQxxtlurk6o/F1GFNVI1WhTQEXzfnfnCNR/NO+  
> cvhmJhrplZts/3aqC6NSDT/bRsmDvAQbKenUWhUaqYBHkfS9jRl6UuU2jynnqhYS  
> IkVIMbrZS+9LTBYHirhLiYf6S7Sbxh5nXyNlEpeAhCFj5geIi47Y5/ll0+3qu6PS  
> yXABWC9M1+tp0TIkTcimbB8QwnJbDEovY9VQUJp7YKHQsNoixAmH1ZrEVuj3piqq  
> ifqnA84UJvSli7jCZjL4v4EgGnA/wuOHlBN4L1v4OxQrirbEsOYqxR0/6Pmg5pN2  
> die+pVZHqEU1nSvKLGHV7diT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JEjg8NmZ8mw4RZg6LQanOoLTPBAEKN5BWrt+j2yLqFqkh3+m6j5izoGFXCCJfNP  
> zGNFqTzuduJluF3OIyTAfdY2rl/UDlluTSXym9x7172FI7IJqO38YjNlmeI5HgBV  
> 5Y+C52CN6W+QKSKxKqnmYfwhV3KOTgjPkhSBouv2F5w97IHjPwRF53ztFLxwBrnj  
> qOR33eE5MuIk4FJti7EsRZMZxYcpn9vy1CNoQUT1YKP6PjQRl6SZpa76DhnWjr20  
> o4pEYQoUnd1qZ3/6AJdXj2Et  
> =emEv  
> -----END PGP MESSAGE-----
> 
> ------=\_Part\_8\_1019438032.1627002808114--
> 
> The message is being encrypted initially on the client side using Apple Mail and the GPG Suite plugin for MacOS.
> 
> Here is my postfix configuration on the ciphermail host:
> 
> djigzo\_myhostname = smtp.coldlogix.com  
> djigzo\_mydestination =  
> djigzo\_mynetworks = 192.168.10.0/24, 192.168.50.0/24, 192.168.100.0/24, 192.168.200.0/24, 192.168.30.0/24, 10.10.10.0/27  
> djigzo\_relayhost = mx1.la1.clx.corp  
> djigzo\_relayhost\_mx\_lookup =  
> djigzo\_relayhost\_port = 25  
> djigzo\_relay\_domains = losangelesrecording.com  
> djigzo\_before\_filter\_message\_size\_limit = 0  
> djigzo\_calculated\_after\_filter\_message\_size\_limit = 0  
> djigzo\_after\_filter\_message\_size\_limit = ${djigzo\_calculated\_after\_filter\_message\_size\_limit}  
> djigzo\_mailbox\_size\_limit = 512000000  
> djigzo\_smtp\_helo\_name = smtp.coldlogix.com  
> djigzo\_relay\_transport\_host = mx1.la1.clx.corp  
> djigzo\_relay\_transport\_host\_mx\_lookup =  
> djigzo\_relay\_transport\_host\_port = 25  
> djigzo\_reject\_unverified\_recipient =  
> djigzo\_unverified\_recipient\_reject\_code = 450  
> djigzo\_parent\_domain\_matches\_subdomains = relay\_domains  
> djigzo\_rbl\_clients =  
> djigzo\_calculated\_queue\_minfree = 0  
> myhostname = ${djigzo\_myhostname}  
> mydestination = ${djigzo\_mydestination}  
> mynetworks = 127.0.0.0/8, [::1]/128, ${djigzo\_mynetworks}  
> relay\_domains = ${djigzo\_relay\_domains}  
> parent\_domain\_matches\_subdomains = ${djigzo\_parent\_domain\_matches\_subdomains}  
> smtp\_helo\_name = ${djigzo\_smtp\_helo\_name?$djigzo\_smtp\_helo\_name}${djigzo\_smtp\_helo\_name:${myhostname}}  
> relay\_transport = relay${djigzo\_relay\_transport\_host?:${djigzo\_relay\_transport\_host\_mx\_lookup:[}${djigzo\_relay\_transport\_host}${djigzo\_relay\_transport\_host\_mx\_lookup:]}:${djigzo\_relay\_transport\_host\_port}}  
> relayhost = ${djigzo\_relayhost\_mx\_lookup:${djigzo\_relayhost?[}}${djigzo\_relayhost}${djigzo\_relayhost\_mx\_lookup:${djigzo\_relayhost?]}}${djigzo\_relayhost?:${djigzo\_relayhost\_port}}  
> smtpd\_recipient\_restrictions = permit\_mynetworks reject\_unauth\_destination  
> &nbsp;&nbsp;&nbsp;&nbsp;${djigzo\_rbl\_clients}  
> &nbsp;&nbsp;&nbsp;&nbsp;${djigzo\_reject\_unverified\_recipient? reject\_unverified\_recipient}  
> unverified\_recipient\_reject\_code = ${djigzo\_unverified\_recipient\_reject\_code}  
> smtpd\_discard\_ehlo\_keywords = silent-discard, dsn, etrn  
> smtpd\_etrn\_restrictions = reject  
> local\_transport = error:local mail delivery is disabled  
> local\_recipient\_maps =  
> alias\_maps = hash:/etc/aliases  
> alias\_database = hash:/etc/aliases  
> message\_size\_limit = ${djigzo\_after\_filter\_message\_size\_limit}  
> mailbox\_size\_limit = ${djigzo\_mailbox\_size\_limit}  
> queue\_minfree = ${djigzo\_calculated\_queue\_minfree}  
> smtpd\_authorized\_xforward\_hosts = 127.0.0.1/32  
> content\_filter = djigzo:[127.0.0.1]:10025
> 
> smtpd\_tls\_cert\_file = /etc/pki/tls/certs/postfix.pem  
> smtpd\_tls\_key\_file = /etc/pki/tls/private/postfix.key  
> smtpd\_tls\_security\_level = may  
> smtpd\_tls\_received\_header = yes  
> smtpd\_tls\_loglevel = 1  
> tls\_preempt\_cipherlist = yes  
> smtpd\_tls\_protocols = !SSLv2, !SSLv3  
> smtpd\_tls\_mandatory\_protocols = $smtpd\_tls\_protocols  
> smtpd\_tls\_exclude\_ciphers = AESCCM8, aNULL, ARIA, DES, DSS, eNULL, EXPORT, IDEA, MD5, PSK, RC4, SEED  
> smtp\_tls\_CAfile = /etc/pki/ca-trust/extracted/pem/ColdLogixCA-chain.pem  
> smtp\_tls\_security\_level = may  
> smtp\_tls\_loglevel = 1  
> smtp\_tls\_protocols = $smtpd\_tls\_protocols  
> smtp\_tls\_mandatory\_protocols = $smtpd\_tls\_mandatory\_protocols  
> smtp\_tls\_exclude\_ciphers = $smtpd\_tls\_exclude\_ciphers  
> smtp\_sasl\_auth\_enable = yes  
> smtp\_sasl\_password\_maps = hash:/etc/postfix/smtp\_client\_passwd  
> smtp\_sasl\_type = cyrus  
> smtp\_sasl\_security\_options =  
> mail\_name = CipherMail  
> smtpd\_banner = $myhostname ESMTP $mail\_name  
> append\_dot\_mydomain = no  
> biff = no  
> recipient\_delimiter = +  
> notify\_classes =  
> enable\_long\_queue\_ids = yes  
> smtp\_address\_preference = ipv4
> 
> and master.cf:
> 
> smtp inet n - n - - smtpd  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o message\_size\_limit=${djigzo\_before\_filter\_message\_size\_limit}  
> pickup fifo n - n 60 1 pickup  
> cleanup unix n - n - 0 cleanup  
> qmgr fifo n - n 300 1 qmgr  
> tlsmgr unix - - n 1000? 1 tlsmgr  
> rewrite unix - - n - - trivial-rewrite  
> bounce unix - - n - 0 bounce  
> defer unix - - n - 0 bounce  
> trace unix - - n - 0 bounce  
> verify unix - - n - 1 verify  
> flush unix n - n 1000? 0 flush  
> proxymap unix - - n - - proxymap  
> proxywrite unix - - n - 1 proxymap  
> smtp unix - - n - - smtp  
> relay unix - - n - - smtp  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtp\_fallback\_relay=  
> showq unix n - n - - showq  
> error unix - - n - - error  
> retry unix - - n - - error  
> discard unix - - n - - discard  
> virtual unix - n n - - virtual  
> lmtp unix - - n - - lmtp  
> anvil unix - - n - 1 anvil  
> scache unix - - n - 1 scache  
> djigzo unix - - n - 4 smtp  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtp\_send\_xforward\_command=yes  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o disable\_dns\_lookups=yes  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtp\_generic\_maps=  
> cleanup\_reinject unix n - n - 0 cleanup  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o hopcount\_limit=100  
> 127.0.0.1:10026 inet n - n - 10 smtpd  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o content\_filter=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o receive\_override\_options=no\_unknown\_recipient\_checks,no\_header\_body\_checks,no\_milters  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_helo\_restrictions=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_client\_restrictions=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_sender\_restrictions=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_recipient\_restrictions=permit\_mynetworks,reject  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_tls\_security\_level=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o mynetworks=127.0.0.0/8  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_authorized\_xforward\_hosts=127.0.0.0/8  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_authorized\_xclient\_hosts=127.0.0.0/8  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o cleanup\_service\_name=cleanup\_reinject  
> smtps inet n - y - - smtpd  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o content\_filter=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o receive\_override\_options=no\_unknown\_recipient\_checks,no\_header\_body\_checks,no\_milters  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_helo\_restrictions=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_client\_restrictions=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_sender\_restrictions=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_recipient\_restrictions=permit\_mynetworks,reject  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_tls\_security\_level=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o mynetworks=127.0.0.0/8  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_authorized\_xforward\_hosts=127.0.0.0/8  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_authorized\_xclient\_hosts=127.0.0.0/8  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o cleanup\_service\_name=cleanup\_reinject  
> submission inet n - y - - smtpd  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o content\_filter=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o receive\_override\_options=no\_unknown\_recipient\_checks,no\_header\_body\_checks,no\_milters  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_helo\_restrictions=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_client\_restrictions=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_sender\_restrictions=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_recipient\_restrictions=permit\_mynetworks,reject  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_tls\_security\_level=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o mynetworks=127.0.0.0/8  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_authorized\_xforward\_hosts=127.0.0.0/8  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_authorized\_xclient\_hosts=127.0.0.0/8  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o cleanup\_service\_name=cleanup\_reinject  
> 127.0.0.1:10027 inet n - n - 10 smtpd  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_helo\_restrictions=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_client\_restrictions=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_sender\_restrictions=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_recipient\_restrictions=permit\_mynetworks,reject  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_tls\_security\_level=  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o mynetworks=127.0.0.0/8  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o syslog\_name=postfix/10027  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o message\_size\_limit=${djigzo\_before\_filter\_message\_size\_limit}
> 
> All settings from the Ciphermail interface is set up with “inherit” for all the options.
> 
> Using version 5.0.4:
> 
> rpm -qa | grep djig  
> djigzo-web-5.0.4-1.noarch  
> djigzo-5.0.4-1.noarch
> 
> Mail is set to relay to another postfix host for its final destination.
> 
> -jeremy
> 
> > On Jul 20, 2021, at 9:30 AM, Jeremy Hansen via Users \<users(a)lists.ciphermail.com\> wrote:
> > 
> > > On Jul 20, 2021, at 7:56 AM, Martijn Brinkers via Users \<users(a)lists.ciphermail.com\> wrote:
> > > 
> > > > On Thu, 2021-07-15 at 01:13 -0400, Jeremy Hansen via Users wrote:  
> > > > I noticed if I sent a message that is encrypted at the client,  
> > > > ciphermail will encrypt that message again and the original message  
> > > > is sent as an attachment.
> > > 
> > > What type of encryption is applied at the client side and what  
> > > encryption is applied server side?
> > 
> > PGP on both sides.
> > 
> > > > I also noticed if I send a message from a host using something like  
> > > > mailx, the body of the message is never included in the email.
> > > 
> > > What do you mean with "the body of the message is never included in the  
> > > email"?
> > 
> > echo test | mail -s Test jeremy(a)losangelesrecording.com
> > 
> > The message comes through encrypted but I don’t see “test” in the body of the email.
> > 
> > Thank you!
> > 
> > > Kind regards,
> > > 
> > > Martijn Brinkers
> > > 
> > > --  
> > > CipherMail email encryption  
> > > Email encryption with support for S/MIME,  
> > > Ope  
> > > nPGP, PDF Messenger and Webmail Messenger

---

<div class="post-metadata">

**Author:** ![Jeremy\_Hansen](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@Jeremy\_Hansen](https://community.ciphermail.com/u/Jeremy_Hansen)\
**Post date:** [July 28, 2021, 3:39am UTC](https://community.ciphermail.com/t/double-encryption/746/5 "2021-07-28T03:39:47Z")

</div>

Any clues on this?

-jeremy

> **···**
>
> > On Jul 22, 2021, at 7:26 PM, Jeremy Hansen via Users \<users(a)lists.ciphermail.com\> wrote:
> > 
> > Here’s the full headers of my message:
> > 
> > Return-Path: \<jeremy(a)coldlogix.com\>  
> > Delivered-To: jeremy(a)losangelesrecording.com  
> > Received: from mx1.la1.clx.corp  
> > &nbsp;&nbsp;by mx1.la1.clx.corp with LMTP  
> > &nbsp;&nbsp;id 0eMYEMQX+mD9BAIAzivOYw  
> > &nbsp;&nbsp;(envelope-from \<jeremy(a)coldlogix.com\>)  
> > &nbsp;&nbsp;for \<jeremy(a)losangelesrecording.com\>; Thu, 22 Jul 2021 18:13:40 -0700  
> > Received: from localhost (localhost [127.0.0.1])  
> > &nbsp;&nbsp;by mx1.la1.clx.corp (Postfix) with ESMTP id E5761412E05  
> > &nbsp;&nbsp;for \<jeremy(a)losangelesrecording.com\>; Thu, 22 Jul 2021 18:13:39 -0700 (PDT)  
> > DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.la1.clx.corp E5761412E05  
> > X-Virus-Scanned: amavisd-new at coldlogix.com  
> > Received: from smtp.coldlogix.com ([127.0.0.1])  
> > &nbsp;&nbsp;by localhost (smtp.coldlogix.com [127.0.0.1]) (amavisd-new, port 10024)  
> > &nbsp;&nbsp;with ESMTP id 3RyMjMJsZQrY for \<jeremy(a)losangelesrecording.com\>;  
> > &nbsp;&nbsp;Thu, 22 Jul 2021 18:13:36 -0700 (PDT)  
> > Received: from smtp.coldlogix.com (cmx01.la1.clx.corp [192.168.30.23])  
> > &nbsp;&nbsp;by mx1.la1.clx.corp (Postfix) with ESMTPS id 6F1F74C3589  
> > &nbsp;&nbsp;for \<jeremy(a)losangelesrecording.com\>; Thu, 22 Jul 2021 18:13:28 -0700 (PDT)  
> > DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.la1.clx.corp 6F1F74C3589  
> > Received: from cmx01.la1.clx.corp (localhost [127.0.0.1])  
> > &nbsp;&nbsp;by smtp.coldlogix.com (CipherMail) with ESMTP id 4GWBCX1P3Rz2SSxp  
> > &nbsp;&nbsp;for \<jeremy(a)losangelesrecording.com\>; Thu, 22 Jul 2021 18:13:28 -0700 (PDT)  
> > Received: from mail.subtraverse.net (netman.subtraverse.intra [192.168.10.10])  
> > &nbsp;&nbsp;by smtp.coldlogix.com (CipherMail) with ESMTP id 4GWBCW49cKz2SSxp  
> > &nbsp;&nbsp;for \<jeremy(a)losangelesrecording.com\>; Thu, 22 Jul 2021 18:13:27 -0700 (PDT)  
> > Received: from localhost (localhost.localdomain [127.0.0.1])  
> > &nbsp;&nbsp;by mail.subtraverse.net (Postfix) with ESMTP id 5C3F2146F9E  
> > &nbsp;&nbsp;for \<jeremy(a)losangelesrecording.com\>; Thu, 22 Jul 2021 18:13:27 -0700 (PDT)  
> > Received: from mail.subtraverse.net ([127.0.0.1])  
> > &nbsp;&nbsp;by localhost (mail.subtraverse.net [127.0.0.1]) (amavisd-new, port 10024)  
> > &nbsp;&nbsp;with LMTP id mmNPq8Z2mIx2 for \<jeremy(a)losangelesrecording.com\>;  
> > &nbsp;&nbsp;Thu, 22 Jul 2021 18:13:26 -0700 (PDT)  
> > Received: from smtpclient.apple (unknown [10.10.10.2])  
> > &nbsp;&nbsp;(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))  
> > &nbsp;&nbsp;(No client certificate requested)  
> > &nbsp;&nbsp;by mail.subtraverse.net (Postfix) with ESMTPSA id 55C27146F9C  
> > &nbsp;&nbsp;for \<jeremy(a)losangelesrecording.com\>; Thu, 22 Jul 2021 18:13:26 -0700 (PDT)  
> > Date: Thu, 22 Jul 2021 21:13:25 -0400  
> > From: Jeremy Hansen \<jeremy(a)coldlogix.com\>  
> > To: jeremy(a)losangelesrecording.com  
> > Message-ID: \<7ECACFC9-40EB-4080-A8A8-69C9AE105155(a)coldlogix.com\>  
> > Subject: Test  
> > MIME-Version: 1.0  
> > Content-Type: multipart/encrypted; protocol="application/pgp-encrypted";  
> > &nbsp;&nbsp;boundary="----=\_Part\_8\_1019438032.1627002808114"  
> > X-Virus-Scanned: amavisd-new at subtraverse.net  
> > DKIM-Filter: OpenDKIM Filter v2.11.0 mail.subtraverse.net 55C27146F9C  
> > X-Mailer: Apple Mail (2.3654.100.0.2.22)  
> > X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL\_TRUSTED,ENCRYPTED\_MESSAGE  
> > &nbsp;&nbsp;autolearn=ham autolearn\_force=no version=3.4.4  
> > X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mx1.la1.clx.corp
> > 
> > ------=\_Part\_8\_1019438032.1627002808114  
> > Content-Type: application/pgp-encrypted  
> > Content-Transfer-Encoding: 7bit  
> > Content-Description: PGP/MIME version identification
> > 
> > Version: 1
> > 
> > ------=\_Part\_8\_1019438032.1627002808114  
> > Content-Type: application/octet-stream; name=encrypted.asc  
> > Content-Transfer-Encoding: 7bit  
> > Content-Description: OpenPGP encrypted message  
> > Content-Disposition: inline; filename="encrypted.asc"
> > 
> > Content-Type: multipart/encrypted;  
> > &nbsp;&nbsp;boundary="Apple-Mail=\_7D9B459F-746A-4970-8672-402CD4581A22";  
> > &nbsp;&nbsp;protocol="application/pgp-encrypted"
> > 
> > This is an OpenPGP/MIME encrypted message (RFC 2440 and 3156)  
> > --Apple-Mail=\_7D9B459F-746A-4970-8672-402CD4581A22  
> > Content-Transfer-Encoding: 7bit  
> > Content-Type: application/pgp-encrypted  
> > Content-Description: PGP/MIME Versions Identification
> > 
> > Version: 1
> > 
> > --Apple-Mail=\_7D9B459F-746A-4970-8672-402CD4581A22  
> > Content-Transfer-Encoding: 7bit  
> > Content-Disposition: inline;  
> > &nbsp;&nbsp;filename=encrypted.asc  
> > Content-Type: application/octet-stream;  
> > &nbsp;&nbsp;name=encrypted.asc  
> > Content-Description: OpenPGP encrypted message
> > 
> > -----BEGIN PGP MESSAGE-----
> > 
> > hQIMA8de+J6NLzLYAQ/5AU3DMoY1Sc/gGUptX2K2cEZ2MaPfG5uJjr9d02HDlma1  
> > UXc4K9TDd+ym3u06r5sLf3R+IAkot5shms5PCGsjqnhPEUtJwxp9cA4peL40OH+z  
> > qQfSOMqnD9MzW5qgM28+fj8R4C1R9OeZrBwcUS9MatIch2fqW6dNZcHEOcxThEOG  
> > ek/Qv58fAbZCv5QUmn8FyELDw3E6Ms4W/9slViG45gLminVSl7ZeAGSdsOjnwG0Q  
> > 3rWb4ARWVsu/69U/Fjltf46krS3UGdFyNh7xyg+YRfAiigLOa+LawIJ18ct9TgDq  
> > bnh9u4fa3CJ4rwLiLFskwhEk0bVRf9XgSmTZtUQku652xlCmGNmmyfzwfOhBfdXT  
> > uDufDOpi94JV8W/Q+Bsul0VKVCzVpCO4vJUxMNry9U3YAXplFaaLhgZjnwm8/IU9  
> > 8wVJF5U9DZ16rOYiQqG0BlSkuigmyhV4YztM1iNxYnODzQb/svrCFYkhSZZzNyAe  
> > PKJzliFTZ7KbiCbwkSdWLIjESoJROnaxGeMctC1tB0Ah2l2Vf7UWJSrJgkcqtV96  
> > SsjCZasTtOlK1kozzdZ9OVKJyVzrA8SkKIR1DwCL71P/0SnqXBBRb30xg3v0PZS9  
> >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mjOd5BVcqn3SVafHHN439Y8x8rQnKjqu4yNn  
> > kL8qqrrH5KR8NOMyp43veLt1VbpBCDSf7M2Mn5J+i6k6abhpsB1KPxXOmx8=  
> > =s4+/  
> > -----END PGP MESSAGE-----
> > 
> > --Apple-Mail=\_7D9B459F-746A-4970-8672-402CD4581A22--
> > 
> > ------=\_Part\_8\_1019438032.1627002808114--
> > 
> > The message is being encrypted initially on the client side using Apple Mail and the GPG Suite plugin for MacOS.
> > 
> > Here is my postfix configuration on the ciphermail host:
> > 
> > djigzo\_myhostname = smtp.coldlogix.com  
> > djigzo\_mydestination =  
> > djigzo\_mynetworks = 192.168.10.0/24, 192.168.50.0/24, 192.168.100.0/24, 192.168.200.0/24, 192.168.30.0/24, 10.10.10.0/27  
> > djigzo\_relayhost = mx1.la1.clx.corp  
> > djigzo\_relayhost\_mx\_lookup =  
> > djigzo\_relayhost\_port = 25  
> > djigzo\_relay\_domains = losangelesrecording.com  
> > djigzo\_before\_filter\_message\_size\_limit = 0  
> > djigzo\_calculated\_after\_filter\_message\_size\_limit = 0  
> > djigzo\_after\_filter\_message\_size\_limit = ${djigzo\_calculated\_after\_filter\_message\_size\_limit}  
> > djigzo\_mailbox\_size\_limit = 512000000  
> > djigzo\_smtp\_helo\_name = smtp.coldlogix.com  
> > djigzo\_relay\_transport\_host = mx1.la1.clx.corp  
> > djigzo\_relay\_transport\_host\_mx\_lookup =  
> > djigzo\_relay\_transport\_host\_port = 25  
> > djigzo\_reject\_unverified\_recipient =  
> > djigzo\_unverified\_recipient\_reject\_code = 450  
> > djigzo\_parent\_domain\_matches\_subdomains = relay\_domains  
> > djigzo\_rbl\_clients =  
> > djigzo\_calculated\_queue\_minfree = 0  
> > myhostname = ${djigzo\_myhostname}  
> > mydestination = ${djigzo\_mydestination}  
> > mynetworks = 127.0.0.0/8, [::1]/128, ${djigzo\_mynetworks}  
> > relay\_domains = ${djigzo\_relay\_domains}  
> > parent\_domain\_matches\_subdomains = ${djigzo\_parent\_domain\_matches\_subdomains}  
> > smtp\_helo\_name = ${djigzo\_smtp\_helo\_name?$djigzo\_smtp\_helo\_name}${djigzo\_smtp\_helo\_name:${myhostname}}  
> > relay\_transport = relay${djigzo\_relay\_transport\_host?:${djigzo\_relay\_transport\_host\_mx\_lookup:[}${djigzo\_relay\_transport\_host}${djigzo\_relay\_transport\_host\_mx\_lookup:]}:${djigzo\_relay\_transport\_host\_port}}  
> > relayhost = ${djigzo\_relayhost\_mx\_lookup:${djigzo\_relayhost?[}}${djigzo\_relayhost}${djigzo\_relayhost\_mx\_lookup:${djigzo\_relayhost?]}}${djigzo\_relayhost?:${djigzo\_relayhost\_port}}  
> > smtpd\_recipient\_restrictions = permit\_mynetworks reject\_unauth\_destination  
> > &nbsp;&nbsp;&nbsp;&nbsp;${djigzo\_rbl\_clients}  
> > &nbsp;&nbsp;&nbsp;&nbsp;${djigzo\_reject\_unverified\_recipient? reject\_unverified\_recipient}  
> > unverified\_recipient\_reject\_code = ${djigzo\_unverified\_recipient\_reject\_code}  
> > smtpd\_discard\_ehlo\_keywords = silent-discard, dsn, etrn  
> > smtpd\_etrn\_restrictions = reject  
> > local\_transport = error:local mail delivery is disabled  
> > local\_recipient\_maps =  
> > alias\_maps = hash:/etc/aliases  
> > alias\_database = hash:/etc/aliases  
> > message\_size\_limit = ${djigzo\_after\_filter\_message\_size\_limit}  
> > mailbox\_size\_limit = ${djigzo\_mailbox\_size\_limit}  
> > queue\_minfree = ${djigzo\_calculated\_queue\_minfree}  
> > smtpd\_authorized\_xforward\_hosts = 127.0.0.1/32  
> > content\_filter = djigzo:[127.0.0.1]:10025
> > 
> > smtpd\_tls\_cert\_file = /etc/pki/tls/certs/postfix.pem  
> > smtpd\_tls\_key\_file = /etc/pki/tls/private/postfix.key  
> > smtpd\_tls\_security\_level = may  
> > smtpd\_tls\_received\_header = yes  
> > smtpd\_tls\_loglevel = 1  
> > tls\_preempt\_cipherlist = yes  
> > smtpd\_tls\_protocols = !SSLv2, !SSLv3  
> > smtpd\_tls\_mandatory\_protocols = $smtpd\_tls\_protocols  
> > smtpd\_tls\_exclude\_ciphers = AESCCM8, aNULL, ARIA, DES, DSS, eNULL, EXPORT, IDEA, MD5, PSK, RC4, SEED  
> > smtp\_tls\_CAfile = /etc/pki/ca-trust/extracted/pem/ColdLogixCA-chain.pem  
> > smtp\_tls\_security\_level = may  
> > smtp\_tls\_loglevel = 1  
> > smtp\_tls\_protocols = $smtpd\_tls\_protocols  
> > smtp\_tls\_mandatory\_protocols = $smtpd\_tls\_mandatory\_protocols  
> > smtp\_tls\_exclude\_ciphers = $smtpd\_tls\_exclude\_ciphers  
> > smtp\_sasl\_auth\_enable = yes  
> > smtp\_sasl\_password\_maps = hash:/etc/postfix/smtp\_client\_passwd  
> > smtp\_sasl\_type = cyrus  
> > smtp\_sasl\_security\_options =  
> > mail\_name = CipherMail  
> > smtpd\_banner = $myhostname ESMTP $mail\_name  
> > append\_dot\_mydomain = no  
> > biff = no  
> > recipient\_delimiter = +  
> > notify\_classes =  
> > enable\_long\_queue\_ids = yes  
> > smtp\_address\_preference = ipv4
> > 
> > and master.cf:
> > 
> > smtp inet n - n - - smtpd  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o message\_size\_limit=${djigzo\_before\_filter\_message\_size\_limit}  
> > pickup fifo n - n 60 1 pickup  
> > cleanup unix n - n - 0 cleanup  
> > qmgr fifo n - n 300 1 qmgr  
> > tlsmgr unix - - n 1000? 1 tlsmgr  
> > rewrite unix - - n - - trivial-rewrite  
> > bounce unix - - n - 0 bounce  
> > defer unix - - n - 0 bounce  
> > trace unix - - n - 0 bounce  
> > verify unix - - n - 1 verify  
> > flush unix n - n 1000? 0 flush  
> > proxymap unix - - n - - proxymap  
> > proxywrite unix - - n - 1 proxymap  
> > smtp unix - - n - - smtp  
> > relay unix - - n - - smtp  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtp\_fallback\_relay=  
> > showq unix n - n - - showq  
> > error unix - - n - - error  
> > retry unix - - n - - error  
> > discard unix - - n - - discard  
> > virtual unix - n n - - virtual  
> > lmtp unix - - n - - lmtp  
> > anvil unix - - n - 1 anvil  
> > scache unix - - n - 1 scache  
> > djigzo unix - - n - 4 smtp  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtp\_send\_xforward\_command=yes  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o disable\_dns\_lookups=yes  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtp\_generic\_maps=  
> > cleanup\_reinject unix n - n - 0 cleanup  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o hopcount\_limit=100  
> > 127.0.0.1:10026 inet n - n - 10 smtpd  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o content\_filter=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o receive\_override\_options=no\_unknown\_recipient\_checks,no\_header\_body\_checks,no\_milters  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_helo\_restrictions=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_client\_restrictions=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_sender\_restrictions=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_recipient\_restrictions=permit\_mynetworks,reject  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_tls\_security\_level=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o mynetworks=127.0.0.0/8  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_authorized\_xforward\_hosts=127.0.0.0/8  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_authorized\_xclient\_hosts=127.0.0.0/8  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o cleanup\_service\_name=cleanup\_reinject  
> > smtps inet n - y - - smtpd  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o content\_filter=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o receive\_override\_options=no\_unknown\_recipient\_checks,no\_header\_body\_checks,no\_milters  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_helo\_restrictions=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_client\_restrictions=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_sender\_restrictions=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_recipient\_restrictions=permit\_mynetworks,reject  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_tls\_security\_level=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o mynetworks=127.0.0.0/8  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_authorized\_xforward\_hosts=127.0.0.0/8  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_authorized\_xclient\_hosts=127.0.0.0/8  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o cleanup\_service\_name=cleanup\_reinject  
> > submission inet n - y - - smtpd  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o content\_filter=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o receive\_override\_options=no\_unknown\_recipient\_checks,no\_header\_body\_checks,no\_milters  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_helo\_restrictions=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_client\_restrictions=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_sender\_restrictions=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_recipient\_restrictions=permit\_mynetworks,reject  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_tls\_security\_level=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o mynetworks=127.0.0.0/8  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_authorized\_xforward\_hosts=127.0.0.0/8  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_authorized\_xclient\_hosts=127.0.0.0/8  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o cleanup\_service\_name=cleanup\_reinject  
> > 127.0.0.1:10027 inet n - n - 10 smtpd  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_helo\_restrictions=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_client\_restrictions=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_sender\_restrictions=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_recipient\_restrictions=permit\_mynetworks,reject  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o smtpd\_tls\_security\_level=  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o mynetworks=127.0.0.0/8  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o syslog\_name=postfix/10027  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-o message\_size\_limit=${djigzo\_before\_filter\_message\_size\_limit}
> > 
> > All settings from the Ciphermail interface is set up with “inherit” for all the options.
> > 
> > Using version 5.0.4:
> > 
> > rpm -qa | grep djig  
> > djigzo-web-5.0.4-1.noarch  
> > djigzo-5.0.4-1.noarch
> > 
> > Mail is set to relay to another postfix host for its final destination.
> > 
> > -jeremy
> > 
> > \> On Jul 20, 2021, at 9:30 AM, Jeremy Hansen via Users \<users(a)lists.ciphermail.com\> wrote:  
> > \>  
> > \>  
> > \>  
> > \>\> On Jul 20, 2021, at 7:56 AM, Martijn Brinkers via Users \<users(a)lists.ciphermail.com\> wrote:  
> > \>\>  
> > \>\> ﻿  
> > \>\>  
> > \>\>  
> > \>\>\> On Thu, 2021-07-15 at 01:13 -0400, Jeremy Hansen via Users wrote:  
> > \>\>\> I noticed if I sent a message that is encrypted at the client,  
> > \>\>\> ciphermail will encrypt that message again and the original message  
> > \>\>\> is sent as an attachment.  
> > \>\>  
> > \>\> What type of encryption is applied at the client side and what  
> > \>\> encryption is applied server side?  
> > \>  
> > \> PGP on both sides.  
> > \>  
> > \>\>  
> > \>\>\> I also noticed if I send a message from a host using something like  
> > \>\>\> mailx, the body of the message is never included in the email.  
> > \>\>  
> > \>\> What do you mean with "the body of the message is never included in the  
> > \>\> email"?  
> > \>  
> > \> echo test | mail -s Test jeremy(a)losangelesrecording.com  
> > \>  
> > \> The message comes through encrypted but I don’t see “test” in the body of the email.  
> > \>  
> > \> Thank you!  
> > \>  
> > \>\>  
> > \>\> Kind regards,  
> > \>\>  
> > \>\> Martijn Brinkers  
> > \>\>  
> > \>\> --  
> > \>\> CipherMail email encryption  
> > \>\> Email encryption with support for S/MIME,  
> > \>\> Ope  
> > \>\> nPGP, PDF Messenger and Webmail Messenger  
> > \>\>

---

<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:** [July 28, 2021, 12:51pm UTC](https://community.ciphermail.com/t/double-encryption/746/6 "2021-07-28T12:51:55Z")

</div>

By default, the gateway does not check whether the message is already  
PGP encrypted and therefore it will be double encrypted if the gateway  
has a valid PGP key for the recipient.

Why there is no check for already encrypted PGP message is because  
checking this for PGP is not always easy/reliable. With PGP/Inline, you  
cannot reliably detect whether every part of the email is encrypted.  
For example how should the gateway react if some MIME part is encrypted  
or not but the other parts are not? With PGP/Inline it's also hard to  
detect whether a MIME part is really encrypted or not.

For example is the following part encrypted? Or is it just an example  
of an encrypted inline part which is not valid:

-----BEGIN PGP MESSAGE-----  
BLABLA  
-----END PGP MESSAGE-----

With PGP/Inline you can have mixed content, i.e., some parts of the  
body are encrypted and some parts are not.

Checking PGP/MIME is easier because there is a clear and distinct  
content type. You might add a check which checks the content type for  
PGP/MIME encryption and skip further handling.

Why has this not been added? Various reasons, historical and the fact  
that this has never been requested. If you want to support encryption  
on the desktop and on the gateway, the best would be to not add a valid  
key for the recipient on the gateway.

That said, you can add the following snippet to config.xml to skip  
further encryption if the message is already PGP/MIME encrypted (to be  
precise if the content type contains a specific protocol value)

Add the following check just below the existing "message is already  
S/MIME encrypted" part (add to config.xml)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<mailet match="HeaderValueRegEx=matchOnError=false,content-  
type=(?i)protocol=&quot;application/pgp-encrypted&quot;"  
class="GotoProcessor"\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<log\> message is already PGP/MIME encrypted \</log\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<processor\> dkim-sign \</processor\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</mailet\>

After adding the above snippet, the back-end should be restarted.

Kind regards,

Martijn Brinkers

> **···**
>
> On Tue, 2021-07-20 at 10:30 -0400, Jeremy Hansen wrote:
> 
> > \> On Jul 20, 2021, at 7:56 AM, Martijn Brinkers via Users \< \> \> users(a)lists.ciphermail.com\> wrote:  
> > \>  
> > \> ﻿  
> > \>  
> > \>  
> > \> \> On Thu, 2021-07-15 at 01:13 -0400, Jeremy Hansen via Users wrote:  
> > \> \> I noticed if I sent a message that is encrypted at the client,  
> > \> \> ciphermail will encrypt that message again and the original  
> > \> \> message  
> > \> \> is sent as an attachment.  
> > \>  
> > \> What type of encryption is applied at the client side and what  
> > \> encryption is applied server side?
> > 
> > PGP on both sides.
> > 
> > \> \> I also noticed if I send a message from a host using something  
> > \> \> like  
> > \> \> mailx, the body of the message is never included in the email.  
> > \>  
> > \> What do you mean with "the body of the message is never included in  
> > \> the  
> > \> email"?
> > 
> > echo test | mail -s Test jeremy(a)losangelesrecording.com
> > 
> > The message comes through encrypted but I don’t see “test” in the  
> > body of the email.
> > 
> > Thank you!
> > 
> > \> Kind regards,  
> > \>  
> > \> Martijn Brinkers  
> > \>  
> > \> --  
> > \> CipherMail email encryption  
> > \> Email encryption with support for S/MIME,  
> > \> Ope  
> > \> nPGP, PDF Messenger and Webmail Messenger  
> > \>
> 
> --  
> CipherMail email encryption  
> Email encryption with support for S/MIME,  
> OpenPGP, PDF Messenger and Webmail Messenger

---

<div class="post-metadata">

**Author:** ![Jeremy\_Hansen](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@Jeremy\_Hansen](https://community.ciphermail.com/u/Jeremy_Hansen)\
**Post date:** [July 28, 2021, 10:46pm UTC](https://community.ciphermail.com/t/double-encryption/746/7 "2021-07-28T22:46:40Z")

</div>

Thank you for the help. It’s much appreciated. Seems to be working so far.

-jeremy

[attachment.htm](https://community.ciphermail.com/uploads/short-url/ijPZQLn6gbkOeBfdoSDNdcoQgpK.htm) (4.58 KB)

> **···**
>
> > On Wednesday, Jul 28, 2021 at 6:52 AM, Martijn Brinkers \<martijn(a)ciphermail.com (mailto:martijn(a)[ciphermail.com](http://ciphermail.com))\> wrote:  
> > By default, the gateway does not check whether the message is already  
> > PGP encrypted and therefore it will be double encrypted if the gateway  
> > has a valid PGP key for the recipient.
> > 
> > Why there is no check for already encrypted PGP message is because  
> > checking this for PGP is not always easy/reliable. With PGP/Inline, you  
> > cannot reliably detect whether every part of the email is encrypted.  
> > For example how should the gateway react if some MIME part is encrypted  
> > or not but the other parts are not? With PGP/Inline it's also hard to  
> > detect whether a MIME part is really encrypted or not.
> > 
> > For example is the following part encrypted? Or is it just an example  
> > of an encrypted inline part which is not valid:
> > 
> > -----BEGIN PGP MESSAGE-----  
> > BLABLA  
> > -----END PGP MESSAGE-----
> > 
> > With PGP/Inline you can have mixed content, i.e., some parts of the  
> > body are encrypted and some parts are not.
> > 
> > Checking PGP/MIME is easier because there is a clear and distinct  
> > content type. You might add a check which checks the content type for  
> > PGP/MIME encryption and skip further handling.
> > 
> > Why has this not been added? Various reasons, historical and the fact  
> > that this has never been requested. If you want to support encryption  
> > on the desktop and on the gateway, the best would be to not add a valid  
> > key for the recipient on the gateway.
> > 
> > That said, you can add the following snippet to config.xml to skip  
> > further encryption if the message is already PGP/MIME encrypted (to be  
> > precise if the content type contains a specific protocol value)
> > 
> > Add the following check just below the existing "message is already  
> > S/MIME encrypted" part (add to config.xml)
> > 
> > \<mailet match="HeaderValueRegEx=matchOnError=false,content-  
> > type=(?i)protocol=&quot;application/pgp-encrypted&quot;"  
> > class="GotoProcessor"\>  
> > \<log\> message is already PGP/MIME encrypted \</log\>  
> > \<processor\> dkim-sign \</processor\>  
> > \</mailet\>
> > 
> > After adding the above snippet, the back-end should be restarted.
> > 
> > Kind regards,
> > 
> > Martijn Brinkers
> > 
> > On Tue, 2021-07-20 at 10:30 -0400, Jeremy Hansen wrote:  
> > \> \> On Jul 20, 2021, at 7:56 AM, Martijn Brinkers via Users \< \> \> \> users(a)lists.ciphermail.com\> wrote:  
> > \> \>  
> > \> \> ﻿  
> > \> \>  
> > \> \>  
> > \> \> \> On Thu, 2021-07-15 at 01:13 -0400, Jeremy Hansen via Users wrote:  
> > \> \> \> I noticed if I sent a message that is encrypted at the client,  
> > \> \> \> ciphermail will encrypt that message again and the original  
> > \> \> \> message  
> > \> \> \> is sent as an attachment.  
> > \> \>  
> > \> \> What type of encryption is applied at the client side and what  
> > \> \> encryption is applied server side?  
> > \>  
> > \> PGP on both sides.  
> > \>  
> > \> \> \> I also noticed if I send a message from a host using something  
> > \> \> \> like  
> > \> \> \> mailx, the body of the message is never included in the email.  
> > \> \>  
> > \> \> What do you mean with "the body of the message is never included in  
> > \> \> the  
> > \> \> email"?  
> > \>  
> > \> echo test | mail -s Test jeremy(a)losangelesrecording.com  
> > \>  
> > \> The message comes through encrypted but I don’t see “test” in the  
> > \> body of the email.  
> > \>  
> > \> Thank you!  
> > \>  
> > \> \> Kind regards,  
> > \> \>  
> > \> \> Martijn Brinkers  
> > \> \>  
> > \> \> --  
> > \> \> CipherMail email encryption  
> > \> \> Email encryption with support for S/MIME,  
> > \> \> Ope  
> > \> \> nPGP, PDF Messenger and Webmail Messenger  
> > \> \>  
> > --  
> > CipherMail email encryption  
> > Email encryption with support for S/MIME,  
> > OpenPGP, PDF Messenger and Webmail Messenger
