# Receiving encrypted email on internal domain

**URL:** <https://community.ciphermail.com/t/receiving-encrypted-email-on-internal-domain/461>\
**Category:** Gateway\
**Created:** [September 30, 2015, 10:22am UTC](https://community.ciphermail.com/t/receiving-encrypted-email-on-internal-domain/461 "2015-09-30T10:22:17Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [September 30, 2015, 10:22am UTC](https://community.ciphermail.com/t/receiving-encrypted-email-on-internal-domain/461/1 "2015-09-30T10:22:17Z")

</div>

The most likely reason is that the domains for which you receive  
encrypted emails are not configured to be internal domains. The gateway  
has to know whether the email has to be encrypted (for external domains)  
or decrypted (for internal domains). By default domains are external  
unless the Locality is changed to Internal. So, in general, for all  
domains configured as a relay domain (see MTA settings), you should add  
a domain object and set "Locality" to "Internal".

Kind regards,

Martijn Brinkers

> **···**
>
> On 09/30/2015 12:18 PM, Hugo Koren wrote:
> 
> > I have installed the CipherMail virtual machine, configured it with  
> > PGP keys so emails gets encrypted between domains, that works for the  
> > sending part. But when the external domain sends email back, the user  
> > is receiving an encrypted email...
> > 
> > Where to start looking why it encrypts(or does not decrypt) the mail  
> > and sends it to the internal mailserver?
> 
> --  
> 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)

---

<div class="post-metadata">

**Author:** ![Hugo\_Koren](https://avatars.discourse-cdn.com/v4/letter/h/ee7513/32.png) [@Hugo\_Koren](https://community.ciphermail.com/u/Hugo_Koren)\
**Post date:** [September 30, 2015, 10:26am UTC](https://community.ciphermail.com/t/receiving-encrypted-email-on-internal-domain/461/2 "2015-09-30T10:26:46Z")

</div>

Mmm, this one was to easy...

Problem solved.

I had added the internal domains for relay, but had missed this setting.

Thx!

Regards,  
Hugo Koren

> **···**
>
> -----Original Message-----  
> From: users-bounces(a)lists.djigzo.com [mailto:users-bounces(a)[lists.djigzo.com](http://lists.djigzo.com)] On Behalf Of Martijn Brinkers  
> Sent: woensdag 30 september 2015 12:22  
> To: users(a)lists.djigzo.com  
> Subject: Re: Receiving encrypted email on internal domain
> 
> On 09/30/2015 12:18 PM, Hugo Koren wrote:
> 
> > I have installed the CipherMail virtual machine, configured it with  
> > PGP keys so emails gets encrypted between domains, that works for the  
> > sending part. But when the external domain sends email back, the user  
> > is receiving an encrypted email...
> > 
> > Where to start looking why it encrypts(or does not decrypt) the mail  
> > and sends it to the internal mailserver?
> 
> The most likely reason is that the domains for which you receive encrypted emails are not configured to be internal domains. The gateway has to know whether the email has to be encrypted (for external domains) or decrypted (for internal domains). By default domains are external unless the Locality is changed to Internal. So, in general, for all domains configured as a relay domain (see MTA settings), you should add a domain object and set "Locality" to "Internal".
> 
> Kind regards,
> 
> Martijn Brinkers
> 
> --  
> 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)  
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Users mailing list  
> Users(a)lists.djigzo.com  
> [https://lists.djigzo.com/lists/listinfo/users](https://lists.djigzo.com/lists/listinfo/users)
