# noname and encrypted.asc

**URL:** <https://community.ciphermail.com/t/noname-and-encrypted-asc/663>\
**Category:** Gateway\
**Created:** [March 3, 2019, 2:24pm UTC](https://community.ciphermail.com/t/noname-and-encrypted-asc/663 "2019-03-03T14:24:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafael\_Wolf](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@Rafael\_Wolf](https://community.ciphermail.com/u/Rafael_Wolf)\
**Post date:** [March 3, 2019, 2:24pm UTC](https://community.ciphermail.com/t/noname-and-encrypted-asc/663/1 "2019-03-03T14:24:31Z")

</div>

Hi List,

I was trying ciphermail out and I have it configured like the O365 setup  
even though I'm not using O365 (link  
\<[https://www.ciphermail.com/documents/ciphermail-o365-intergration-guide.pdf&gt](https://www.ciphermail.com/documents/ciphermail-o365-intergration-guide.pdf&gt);  
):

ciphermail (10.0.10.21 w/virtual public IP on my fireall & all port  
forwards necessary) \<\> Internet. \<-- this way it's on the public  
Internet. It works perfectly also though I find it odd that port 443 and  
8443 serve the same page and admin can log into both (no biggie but seems  
redundant).

I then have another site, mail.somedomain.com as the "internal relay" I  
think it was noted in the web ui (that is a public IP hosted elsewhere - a  
CPanel server used as a mail server). All outbound email is the standard  
default setup so it can relay anything outbound to anything that was not  
mail.somedomain.com.

On page 7 of the PDF document for O365 setup it said to test via telnet.  
That works perfectly, I get the email (someone(a)somedomain.com for example).

someone(a)somedomain.com is a forwarder to my gmail for testing purposes but  
I don't think that would affect the content I received below.

When I get the email though I get two file attachments.

noname  
encrypted.asc

The contents of the "noname" file are: "Version: 1"

The encrypted.asc file is:

-----BEGIN PGP MESSAGE-----  
Version: CipherMail (4.3.0-1)

...with a long encryption string of characters...

-----END PGP MESSAGE-----

So...I assume the content of my message is in the long encryption string  
but if I'm looking at that in my GMail for example or other mail clients of  
any kind I can't see anything but the encrypted.asc's long string of junk.

How is anyone supposed to use the community version to encrypt & decrypt  
stuff so they can see the content of received email? I have a hard time  
believing regular users can figure out how to do that who aren't  
technical. I've gone through the admin guide but nothing is standing out  
to me. I see you can do S/MIME, PGP, PDF, etc. For whatever reason (and  
the admin guide states why I think) PGP was selected to encrypt my test  
message that I sent inbound. I haven't tried outbound yet.

Any insight would be helpful.

I'm guessing I need to do something with the public key and run that email  
through the public key or something but I'm scratching my head and stuck.  
I think I'm almost there but I'm struggling to find any help online about  
this.

Thanks for any insight!

---

<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:** [March 7, 2019, 8:47am UTC](https://community.ciphermail.com/t/noname-and-encrypted-asc/663/2 "2019-03-07T08:47:55Z")

</div>

Hi Rafael,

See my comments inline

[SNIP]

> So...I assume the content of my message is in the long encryption string  
> but if I'm looking at that in my GMail for example or other mail clients of  
> any kind I can't see anything but the encrypted.asc's long string of junk.
> 
> How is anyone supposed to use the community version to encrypt & decrypt  
> stuff so they can see the content of received email? I have a hard time  
> believing regular users can figure out how to do that who aren't  
> technical. I've gone through the admin guide but nothing is standing out  
> to me. I see you can do S/MIME, PGP, PDF, etc. For whatever reason (and  
> the admin guide states why I think) PGP was selected to encrypt my test  
> message that I sent inbound. I haven't tried outbound yet.

The most likely reason why your email sent to your internal domains is  
encrypted is that you did not configure that domain to be an internal  
domain. The CipherMail gateway has to decide whether an email must be  
handled by the encryption or by the decryption pipeline. If an email is  
sent to an "Internal" domain, the email is handled by the decryption  
pipeline and if the email is sent to an "External" domain, the email is  
handled by the encryption pipeline. By default a domain is considered to  
be "External" (you only own a few domains, the rest of all existing  
domains are external). You therefore need to add the domains for which  
you receive email (the "Internal" domains) and override the "Locality"  
for those domains from External to Internal.

Kind regards,

Martijn Brinkers

> **···**
>
> On 03-03-19 15:24, Rafael Wolf via Users wrote:
> 
> --  
> CipherMail email encryption
> 
> Email encryption with support for S/MIME, OpenPGP, PDF encryption and  
> secure webmail pull.

---

<div class="post-metadata">

**Author:** ![Rafael\_Wolf](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@Rafael\_Wolf](https://community.ciphermail.com/u/Rafael_Wolf)\
**Post date:** [March 7, 2019, 1:57pm UTC](https://community.ciphermail.com/t/noname-and-encrypted-asc/663/3 "2019-03-07T13:57:49Z")

</div>

Thank you,

I have in relay domains:

domain.com

I have in the internal relay host:

mail.domain.com

So...is it getting a bit confused between the root domain name and the sub  
domain perhaps?

The email when testing via telnet to: user(a)domain.com then it gets relayed  
to mail.domain...

I would think it just kicks it out and doesn't do anything special with it  
but it must be detecting it as an external and not internal address.

domain.com and mail.domain.com are the same IP (shared hosting on CPanel).

Looking at their DNS records their mail.domain.com doesn't have an A record  
only an MX...that might be the problem. I'll make an A record and retest.

Thanks,

Rafael

> **···**
>
> On Thu, Mar 7, 2019 at 3:48 AM Martijn Brinkers via Users \< users(a)lists.ciphermail.com\> wrote:
> 
> > Hi Rafael,
> > 
> > See my comments inline
> > 
> > On 03-03-19 15:24, Rafael Wolf via Users wrote:  
> > [SNIP]
> > 
> > \> So...I assume the content of my message is in the long encryption string  
> > \> but if I'm looking at that in my GMail for example or other mail clients  
> > of  
> > \> any kind I can't see anything but the encrypted.asc's long string of  
> > junk.  
> > \>  
> > \> How is anyone supposed to use the community version to encrypt & decrypt  
> > \> stuff so they can see the content of received email? I have a hard time  
> > \> believing regular users can figure out how to do that who aren't  
> > \> technical. I've gone through the admin guide but nothing is standing out  
> > \> to me. I see you can do S/MIME, PGP, PDF, etc. For whatever reason (and  
> > \> the admin guide states why I think) PGP was selected to encrypt my test  
> > \> message that I sent inbound. I haven't tried outbound yet.
> > 
> > The most likely reason why your email sent to your internal domains is  
> > encrypted is that you did not configure that domain to be an internal  
> > domain. The CipherMail gateway has to decide whether an email must be  
> > handled by the encryption or by the decryption pipeline. If an email is  
> > sent to an "Internal" domain, the email is handled by the decryption  
> > pipeline and if the email is sent to an "External" domain, the email is  
> > handled by the encryption pipeline. By default a domain is considered to  
> > be "External" (you only own a few domains, the rest of all existing  
> > domains are external). You therefore need to add the domains for which  
> > you receive email (the "Internal" domains) and override the "Locality"  
> > for those domains from External to Internal.
> > 
> > Kind regards,
> > 
> > Martijn Brinkers
> > 
> > --  
> > CipherMail email encryption
> > 
> > Email encryption with support for S/MIME, OpenPGP, PDF encryption and  
> > secure webmail pull.  
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Users mailing list  
> > Users(a)lists.ciphermail.com  
> > [https://lists.ciphermail.com/mailman/listinfo/users](https://lists.ciphermail.com/mailman/listinfo/users)
> 
> --  
> Rafael
> 
> 765-714-7257

---

<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:** [March 7, 2019, 2:38pm UTC](https://community.ciphermail.com/t/noname-and-encrypted-asc/663/4 "2019-03-07T14:38:57Z")

</div>

See my comments inline

> Thank you,
> 
> I have in relay domains:
> 
> domain.com \<[http://domain.com](http://domain.com)\>
> 
> I have in the internal relay host:
> 
> mail.domain.com \<[http://mail.domain.com](http://mail.domain.com)\>
> 
> So...is it getting a bit confused between the root domain name and the  
> sub domain perhaps?

The gateway is split into separate parts: MTA (Postfix), which is  
responsible for sending and receiving email, the MPA (mail processing  
agent) which is responsible for encryption/decryption, the database  
(which stores all settings), the Web GUI.

The MPA is where all heavy lifting takes place like  
encryption/decryption. The MPA need to know for which domains email  
should be encrypted or decrypted. Therefore you need to manually add  
your domains and set them to Internal.

For all your domains do the following:

1. Add domain (from GUI, select domains, click "Add domain", Click  
"Add", then on the "Edit domain" page, uncheck inherit for Locality and  
set Locality to "Internal", then apply

2. Repeat 1 for your other domains.

Kind regards,

Martijn Brinkers

> **···**
>
> On 07-03-19 14:57, Rafael Wolf wrote:
> 
> > The email when testing via telnet to: user(a)domain.com  
> > \<mailto:user(a)[domain.com](http://domain.com)\> then it gets relayed to mail.domain...
> > 
> > I would think it just kicks it out and doesn't do anything special with  
> > it but it must be detecting it as an external and not internal address.
> > 
> > domain.com \<[http://domain.com](http://domain.com)\> and mail.domain.com  
> > \<[http://mail.domain.com](http://mail.domain.com)\> are the same IP (shared hosting on CPanel).
> > 
> > Looking at their DNS records their mail.domain.com  
> > \<[http://mail.domain.com](http://mail.domain.com)\> doesn't have an A record only an MX...that  
> > might be the problem. I'll make an A record and retest.
> > 
> > On Thu, Mar 7, 2019 at 3:48 AM Martijn Brinkers via Users \> \<users(a)lists.ciphermail.com \<mailto:users(a)[lists.ciphermail.com](http://lists.ciphermail.com)\>\> wrote:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Hi Rafael,
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;See my comments inline
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;On 03-03-19 15:24, Rafael Wolf via Users wrote:  
> > &nbsp;&nbsp;&nbsp;&nbsp;[SNIP]
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;\> So...I assume the content of my message is in the long encryption  
> > &nbsp;&nbsp;&nbsp;&nbsp;string  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> but if I'm looking at that in my GMail for example or other mail  
> > &nbsp;&nbsp;&nbsp;&nbsp;clients of  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> any kind I can't see anything but the encrypted.asc's long string  
> > &nbsp;&nbsp;&nbsp;&nbsp;of junk.  
> > &nbsp;&nbsp;&nbsp;&nbsp;\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> How is anyone supposed to use the community version to encrypt &  
> > &nbsp;&nbsp;&nbsp;&nbsp;decrypt  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> stuff so they can see the content of received email? I have a  
> > &nbsp;&nbsp;&nbsp;&nbsp;hard time  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> believing regular users can figure out how to do that who aren't  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> technical. I've gone through the admin guide but nothing is  
> > &nbsp;&nbsp;&nbsp;&nbsp;standing out  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> to me. I see you can do S/MIME, PGP, PDF, etc. For whatever  
> > &nbsp;&nbsp;&nbsp;&nbsp;reason (and  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> the admin guide states why I think) PGP was selected to encrypt my  
> > &nbsp;&nbsp;&nbsp;&nbsp;test  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> message that I sent inbound. I haven't tried outbound yet.
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;The most likely reason why your email sent to your internal domains is  
> > &nbsp;&nbsp;&nbsp;&nbsp;encrypted is that you did not configure that domain to be an internal  
> > &nbsp;&nbsp;&nbsp;&nbsp;domain. The CipherMail gateway has to decide whether an email must be  
> > &nbsp;&nbsp;&nbsp;&nbsp;handled by the encryption or by the decryption pipeline. If an email is  
> > &nbsp;&nbsp;&nbsp;&nbsp;sent to an "Internal" domain, the email is handled by the decryption  
> > &nbsp;&nbsp;&nbsp;&nbsp;pipeline and if the email is sent to an "External" domain, the email is  
> > &nbsp;&nbsp;&nbsp;&nbsp;handled by the encryption pipeline. By default a domain is considered to  
> > &nbsp;&nbsp;&nbsp;&nbsp;be "External" (you only own a few domains, the rest of all existing  
> > &nbsp;&nbsp;&nbsp;&nbsp;domains are external). You therefore need to add the domains for which  
> > &nbsp;&nbsp;&nbsp;&nbsp;you receive email (the "Internal" domains) and override the "Locality"  
> > &nbsp;&nbsp;&nbsp;&nbsp;for those domains from External to Internal.
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Kind regards,
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Martijn Brinkers
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;--  
> > &nbsp;&nbsp;&nbsp;&nbsp;CipherMail email encryption
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Email encryption with support for S/MIME, OpenPGP, PDF encryption and  
> > &nbsp;&nbsp;&nbsp;&nbsp;secure webmail pull.  
> > &nbsp;&nbsp;&nbsp;&nbsp;\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > &nbsp;&nbsp;&nbsp;&nbsp;Users mailing list  
> > &nbsp;&nbsp;&nbsp;&nbsp;Users(a)lists.ciphermail.com \<mailto:Users(a)[lists.ciphermail.com](http://lists.ciphermail.com)\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;[https://lists.ciphermail.com/mailman/listinfo/users](https://lists.ciphermail.com/mailman/listinfo/users)
> > 
> > --  
> > Rafael
> > 
> > 765-714-7257
> 
> --  
> CipherMail email encryption
> 
> Email encryption with support for S/MIME, OpenPGP, PDF encryption and  
> secure webmail pull.

---

<div class="post-metadata">

**Author:** ![Rafael\_Wolf](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@Rafael\_Wolf](https://community.ciphermail.com/u/Rafael_Wolf)\
**Post date:** [March 29, 2019, 4:15pm UTC](https://community.ciphermail.com/t/noname-and-encrypted-asc/663/5 "2019-03-29T16:15:18Z")

</div>

Thank you for all your help, I'm picking this back up where we left off.

Setting it to "internal" helped as you suggested. I can now telnet from  
off site to the server's port 25 and send email via telnet but of course,  
only after adjusting the MTA (admin \> mta \> config \> my networks \> add my  
current public IP where I'm testing from). I get that, to avoid anonymous  
relay.

When I telnet test email it seems to send it in plain text...should I  
expect some kind of link to a portal or something? Is it because the mail  
was sent via TLS to Gmail that it didn't re-encrypt the contents?

telnet x.x.x.x 25  
Trying x.x.x.x...  
Connected to x.x.x.x.  
Escape character is '^]'.  
220 cipher.domain.com ESMTP CipherMail  
ehlo mail.internaldomain.com  
250-cipher.domain.com  
250-PIPELINING  
250-SIZE 10240000  
250-VRFY  
250-STARTTLS  
250-ENHANCEDSTATUSCODES  
250 8BITMIME  
mail from:user(a)domain.com  
250 2.1.0 Ok  
rcpt to:user(a)gmail.com  
250 2.1.5 Ok  
data  
354 End data with \<CR\>\<LF\>.\<CR\>\<LF\>  
Test encryption number 5.  
.  
250 2.0.0 Ok: queued as 44W61p2hVVz7SFG3  
quit  
221 2.0.0 Bye

I was expecting Ciphermail to encrypt the contents somehow. I'm also  
confused a bit when the recipient gets the email (contents, attachments,  
etc) how the user decrypts the contents or the message.

I'm still a bit foggy on that with my setup of ciphermail.

I haven't found anything clear on the exact setup. Of course, I haven't  
put this server "in line" (internet \> ciperhmail \<\> mail server) yet  
instead it's internet | ciphermail \> mail server and the ciphermail is kind  
of standing out there with nothing pointing at it which lets me be able to  
test with telnet to see how it reacts both inbound from outside (telnet,  
from outside domain) and inside from (telnet trusted IP in MTA, from inside  
user(a)domain.com).

Hope that all makes sense. Maybe it's encrypting via TLS so since it's  
doing that it doesn't need to encrypt PGP or any other way...?

Thanks for the help in understanding the process.

> **···**
>
> Subject: Encrypt
> 
> On Thu, Mar 7, 2019 at 9:38 AM Martijn Brinkers \<martijn(a)ciphermail.com\> wrote:
> 
> > See my comments inline
> > 
> > On 07-03-19 14:57, Rafael Wolf wrote:  
> > \> Thank you,  
> > \>  
> > \> I have in relay domains:  
> > \>  
> > \> domain.com \<[http://domain.com](http://domain.com)\>  
> > \>  
> > \> I have in the internal relay host:  
> > \>  
> > \> mail.domain.com \<[http://mail.domain.com](http://mail.domain.com)\>  
> > \>  
> > \> So...is it getting a bit confused between the root domain name and the  
> > \> sub domain perhaps?
> > 
> > The gateway is split into separate parts: MTA (Postfix), which is  
> > responsible for sending and receiving email, the MPA (mail processing  
> > agent) which is responsible for encryption/decryption, the database  
> > (which stores all settings), the Web GUI.
> > 
> > The MPA is where all heavy lifting takes place like  
> > encryption/decryption. The MPA need to know for which domains email  
> > should be encrypted or decrypted. Therefore you need to manually add  
> > your domains and set them to Internal.
> > 
> > For all your domains do the following:
> > 
> > 1. Add domain (from GUI, select domains, click "Add domain", Click  
> > "Add", then on the "Edit domain" page, uncheck inherit for Locality and  
> > set Locality to "Internal", then apply
> > 
> > 2. Repeat 1 for your other domains.
> > 
> > Kind regards,
> > 
> > Martijn Brinkers
> > 
> > \> The email when testing via telnet to: user(a)domain.com  
> > \> \<mailto:user(a)[domain.com](http://domain.com)\> then it gets relayed to mail.domain...  
> > \>  
> > \> I would think it just kicks it out and doesn't do anything special with  
> > \> it but it must be detecting it as an external and not internal address.  
> > \>  
> > \> domain.com \<[http://domain.com](http://domain.com)\> and mail.domain.com  
> > \> \<[http://mail.domain.com](http://mail.domain.com)\> are the same IP (shared hosting on CPanel).  
> > \>  
> > \> Looking at their DNS records their mail.domain.com  
> > \> \<[http://mail.domain.com](http://mail.domain.com)\> doesn't have an A record only an MX...that  
> > \> might be the problem. I'll make an A record and retest.  
> > \>  
> > \>  
> > \> On Thu, Mar 7, 2019 at 3:48 AM Martijn Brinkers via Users \> \> \<users(a)lists.ciphermail.com \<mailto:users(a)[lists.ciphermail.com](http://lists.ciphermail.com)\>\> wrote:  
> > \>  
> > \> Hi Rafael,  
> > \>  
> > \> See my comments inline  
> > \>  
> > \> On 03-03-19 15:24, Rafael Wolf via Users wrote:  
> > \> [SNIP]  
> > \>  
> > \> \> So...I assume the content of my message is in the long encryption  
> > \> string  
> > \> \> but if I'm looking at that in my GMail for example or other mail  
> > \> clients of  
> > \> \> any kind I can't see anything but the encrypted.asc's long string  
> > \> of junk.  
> > \> \>  
> > \> \> How is anyone supposed to use the community version to encrypt &  
> > \> decrypt  
> > \> \> stuff so they can see the content of received email? I have a  
> > \> hard time  
> > \> \> believing regular users can figure out how to do that who aren't  
> > \> \> technical. I've gone through the admin guide but nothing is  
> > \> standing out  
> > \> \> to me. I see you can do S/MIME, PGP, PDF, etc. For whatever  
> > \> reason (and  
> > \> \> the admin guide states why I think) PGP was selected to encrypt my  
> > \> test  
> > \> \> message that I sent inbound. I haven't tried outbound yet.  
> > \>  
> > \> The most likely reason why your email sent to your internal domains  
> > is  
> > \> encrypted is that you did not configure that domain to be an internal  
> > \> domain. The CipherMail gateway has to decide whether an email must be  
> > \> handled by the encryption or by the decryption pipeline. If an email  
> > is  
> > \> sent to an "Internal" domain, the email is handled by the decryption  
> > \> pipeline and if the email is sent to an "External" domain, the email  
> > is  
> > \> handled by the encryption pipeline. By default a domain is  
> > considered to  
> > \> be "External" (you only own a few domains, the rest of all existing  
> > \> domains are external). You therefore need to add the domains for  
> > which  
> > \> you receive email (the "Internal" domains) and override the  
> > "Locality"  
> > \> for those domains from External to Internal.  
> > \>  
> > \> Kind regards,  
> > \>  
> > \> Martijn Brinkers  
> > \>  
> > \> --  
> > \> CipherMail email encryption  
> > \>  
> > \> Email encryption with support for S/MIME, OpenPGP, PDF encryption and  
> > \> secure webmail pull.  
> > \> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > \> Users mailing list  
> > \> Users(a)lists.ciphermail.com \<mailto:Users(a)[lists.ciphermail.com](http://lists.ciphermail.com)\>  
> > \> [https://lists.ciphermail.com/mailman/listinfo/users](https://lists.ciphermail.com/mailman/listinfo/users)  
> > \>  
> > \>  
> > \>  
> > \> --  
> > \> Rafael  
> > \>  
> > \>
> > 
> > --  
> > CipherMail email encryption
> > 
> > Email encryption with support for S/MIME, OpenPGP, PDF encryption and  
> > secure webmail pull.
> 
> --  
> Rafael
