Archives

How to configure email encryption in Horde Groupware

In this post we will show how to configure Horde Groupware to use email encryption.
Horde Groupware is a free webmail program which you can access via cPanel at: yourdomainname.com/webmail.

We will assume that you already generated your key pair in cPanel->Encryption. Look at this KB post: Create public and private GnuPG keys for email encryption in cPanel

  1. Login with your credentials at yourdomain.com/webmail and select the Horde option.

horde groupware 1

2. From the Horde menu go to  Preferences->Mail

horde groupware 2

3. Then choose PGP

horde groupware 3

4. On the PGP page, check the Enable PGP functionality? option and click Save.

horde groupware 4

5. Now on the Horde PGP page you will see more options.

  • Use the Import Public Key button to import public keys. A new entry will be created in the Address Book – entry that will contain the public key of that email.
  • Use the Import Key button to import your private key. It will be used to encrypt messages that you send.

horde groupware 5

Do not give your private key to anyone! Send only your public key.

6. When sending messages you can select if you want to encrypt or not the message. Don’t forget that only recipients that have your public key will be able to read the messages you choose to encrypt.

horde groupware 6

A public/private key looks like:

—–BEGIN PGP PUBLIC KEY BLOCK—–
Version: GnuPG v2.0.22 (GNU/Linux)

mQGiBFkGByURBACO3t9ym4Yjzd2j2B/0H5rdsrxVCQyM+wca+AdVWq7jMM6maXN4
MZixCh8TgNYErSuDw8tMVKdLfPEYpwkJVkKqc7JyJuOsffPomXdf8IVfAaRnRRQ7
+cM0slgFFriBKyuDbZfuElNuoGTduc3uIQqwYgwYPUd2XtG17+A9ggNdDwCgtUjr
xZrsf7N910vSMzLuAowB1zsD/3QKl0QmDAYdy2Fr/ndoPg4rduHI5v8bUCQ8nPHD
Da+TjpA6TP0IQCW43+ab4BjE6UMn0ZTCP6G0qN5DhJJyONPZgdHK66Faq/Ar8lqP
Oj8PIXOQaVoIWelUnvnZt7iQq2WrxzHqY+zDg8fBdrdtvRBC0CMgI/g8ocLlykmz
HHJzBACLwBjo11gzRZw7l+J7nVBixVApbXGq/L7p/HmjOmgAYEf+cXfrhlME+PKs
tQmwo3vhnZCUI3uopv3eWUZXgzM3V5MHt51a2EvpNCnyuugiUFywR17RgddGOVRJ
GXk6OeoTwb7fQBP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aZg==
=2arU
—–END PGP PUBLIC KEY BLOCK—–

Related KB: Create public and private GnuPG keys for email encryption in cPanel

Share this post:

Create public and private GnuPG keys for email encryption in cPanel

To use email encryption the first step is to generate your private and public key for your email address. You can generate these keys in cPanel. Your messages will be encrypted with the private key. The recipients will decrypt the messages using your public key.

Do not give your private key to anyone! Give only your public key.

Steps to generate private and public keys for email encryption:

  1. Connect to your cPanel account
  2. Look for Encryption (EMAIL section)
  3. Here enter the details for:
    – Your Name
    – Your Email
    – Comment or Nickname
    – Key Password (you can use the Password Generator)
    – Expiration Date (1y (1 year) 3w (3 weeks) 5d (5 days) 0 (No expiration date))
    – Key Size (2048 or 4096)
  4. Click the Generate Key button. You will see a message at the top of the page saying “Key is being generated. This may take a few minutes.
  5. Wait for a few seconds and you will see “The Key has been successfully created.” 
  6. Refresh the page and you will see the private and public keys.
  7. To view and copy a key click the View link.
cPanel Email Encryption
cPanel Email Encryption
To delete the keys, delete the private key. The public key will be automatically deleted. Notice that you can’t delete the public key. If you try to delete the public key, you will receive an error message: “Sorry, you must delete the secret key before removing the public key.

The short video how-to is here:

Resources:

https://www.gnupg.org/

Related KB: How to configure email encryption in Horde Groupware

Share this post: