# Automatic PGP key extraction from incoming mail

**URL:** <https://community.ciphermail.com/t/automatic-pgp-key-extraction-from-incoming-mail/395>\
**Category:** Gateway\
**Created:** [September 8, 2014, 8:59am UTC](https://community.ciphermail.com/t/automatic-pgp-key-extraction-from-incoming-mail/395 "2014-09-08T08:59:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mots](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@mots](https://community.ciphermail.com/u/mots)\
**Post date:** [September 8, 2014, 8:59am UTC](https://community.ciphermail.com/t/automatic-pgp-key-extraction-from-incoming-mail/395/1 "2014-09-08T08:59:43Z")

</div>

Hello,

I've seen this feature advertised here: [http://www.ciphermail.com/gateway.html](http://www.ciphermail.com/gateway.html) But I can't find anything about how to enable it in the documentation. I've tried sending myself the public key for my hotmail address as pub.key and pubkey.asc, yet no key was added to Ciphermail.

The key is also on the pool.sks-keyservers.net key servers, yet Ciphermail didn't download it automatically when I sent myself a signed email.

Where can I find the documentation for this feature? The administration guide doesn't say anything about it.

Best regards,

mots

---

<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 8, 2014, 9:37am UTC](https://community.ciphermail.com/t/automatic-pgp-key-extraction-from-incoming-mail/395/2 "2014-09-08T09:37:14Z")

</div>

Currently the gateway will only extract a key if the key is attached to  
the email as a separate attachment with content type set to  
"application/pgp-keys". For example with Enigmail you can select "Attach  
My Public Key" when composing a message. This will attach your public  
key as an attachment. The gateway will then extract the key.  
Currently the gateway will not automatically download a key from a key  
server. I'm a little anxious to add that feature since that option can  
be used to DOS the gateway by sending a lot of signed messages. The  
gateway will then try to download a key from an external server over and  
over. The main reason of supporting extracting attached keys is that not  
all keys are stored on a key server. If someone send a key by email  
which is not on a key server, the key will end up in the mailbox of the  
recipient. This recipient is likely not to be the gateway admin and does  
not know what to do with it. Also in this case the admin cannot import  
the public key because the key is not on a key server and the email with  
the key might not be accessible by the gateway admin. Therefore in this  
case it might be a good to import the key (which is not enable by  
default though). Note that importing a key does not mean the key is  
automatically trusted.

Kind regards,

Martijn Brinkers

> **···**
>
> On 09/08/2014 10:59 AM, mots wrote:
> 
> > I've seen this feature advertised here:  
> > [On-premises email encryption gateway](http://www.ciphermail.com/gateway.html) But I can't find anything  
> > about how to enable it in the documentation. I've tried sending  
> > myself the public key for my hotmail address as pub.key and  
> > pubkey.asc, yet no key was added to Ciphermail.
> > 
> > The key is also on the pool.sks-keyservers.net key servers, yet  
> > Ciphermail didn't download it automatically when I sent myself a  
> > signed email.
> 
> > Where can I find the documentation for this feature? The  
> > administration guide doesn't say anything about it.
> 
> --  
> 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)
