Home > Help Center > Shared Hosting > Email > Encrypt Email with Horde Webmail in cPanel

Encrypt Email with Horde Webmail in cPanel

Create two different GnuPG keys in cPanel > Email > Encryption:

Private keys in GnuPG

Open cPanel > Email Accounts and click More > Webmail from the dropdown menu next to the mail account:

horde gnupg email encryption

You can click on the account name in the upper right corner and choose a webmail between RoundCube and Horde:

horde gnupg email encryption

If this is a new mail account you'll see different screen:

horde gnupg email encryption

Click Got it. Select Default and click the image in order to have this webmail client to be loaded by default.

horde gnupg email encryption

In Horde infterface click Preferences > Mail:

horde gnupg email encryption

In Compose column click Composition link and find the text: "Your default encryption method for sending messages:". From the dropdown menu select PGP Encrypt Message and click Save button:

horde gnupg email encryption

Click Show All Preferences Groups to return to Preferences Mail screen and click PGP link in column General.

Check the box Enable PGP funcionality and click Save.

The next screen contains a lot of options and preferences organized in three sections: PGP, PGP Public Keyring and Your PGP Public/Private Keys:

horde gnupg email encryption

Check all four boxes in the top section PGP.

Go to cPanel > Email > Encryption.

Click View link for default user in the Private Keys table. On the next screen right click in the form and click Select All:

horde gnupg email encryption

Right click in the text box again and click Copy:

horde gnupg email encryption

Go back in Horde and click Import Key in the third section Your PGP Public/Private Keys. New browser window will open - right click in the text box and click Paste:

horde gnupg email encryption

Click Import button.

Now click the link Enter Passphrase next to Your Private Key label. In the small box enter the password for default PGP key and click OK:

horde gnupg email encryption

Now we must create an entry for every mail account we want to exchange encrypted emails with:

horde gnupg email encryption

We are going to use the minimum information to create the profile.

Click Personal tab and enter user name - encrypt:

horde gnupg email encryption

Click Communication tab and enter email address encrypt@hostpulse-addon.com:

horde gnupg email encryption

Click Other tab and paste the encrypt public key in the PGP Public Key text box:

horde gnupg email encryption

Click Add button.

Now go to Preferences > Global Preferences > Mail and click PGP link in General column.

In the PGP Public Keyring section there must be an entry for user encrypt:

horde gnupg email encryption

Click Details link to make certain that this is the correct key:

horde gnupg email encryption

You can send PGP encrypted mail only to users with PGP keys that are added to PGP Public Keyring after been added to the addressbook.

If the user is not in the PGP Public Keyring and you try to send an encrypted message you'll get an error because Horde do not have a public key to encrypt the message to that user.

Now we are all set to send a PGP encrypted message to encrypt@hostpulse-addon.com.

But ...

We need to prepare the receiving account repeating the same above steps just reversing the places of the users and the PGP keys.

We will remind you the need steps:

  • Enable PGP
  • In Your PGP Public/Private Keys section import encrypt users' private key and enter the passphrase:

horde gnupg email encryption

  • Add default/default@hostpulse-demo.com in the addressbook and assign to this user the default users' public key:

horde gnupg email encryption

Make sure the user is added in the PGP Public Keyring section with the correct public key:

horde gnupg email encryption

Now let's send an encrypted mail to default@hostpulse-demo.com:

horde gnupg email encryption

We'll select the option Sign/Encrypt Message:

horde gnupg email encryption

Click Send.

Open default@hostpulse-demo.com in Horde - we have got mail:

horde gnupg email encryption

Click on the message link:

horde gnupg email encryption

Perfect!

Let's send a reply:

horde gnupg email encryption

Open again the account encrypt@hostpulse-addon.com in Horde:

horde gnupg email encryption

horde gnupg email encryption

Well Done. Mail encryption at its best!

Conclusion

Congratulations to all that came to the end of this long article and succeeded with sending and receiving an encrypted messages just the way we did.

Still not finding what you're looking for?

Contact our support team with any additional questions or concerns.

Contact support