Encrypt Email with Horde Webmail in cPanel
Create two different GnuPG keys in cPanel > Email > Encryption:
Open cPanel > Email Accounts and click More > Webmail from the dropdown menu next to the mail account:
You can click on the account name in the upper right corner and choose a webmail between RoundCube and Horde:
If this is a new mail account you'll see different screen:
Click Got it. Select Default and click the image in order to have this webmail client to be loaded by default.
In Horde infterface click Preferences > Mail:
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:
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:
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:
Right click in the text box again and click Copy:
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:
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:
Now we must create an entry for every mail account we want to exchange encrypted emails with:
We are going to use the minimum information to create the profile.
Click Personal tab and enter user name - encrypt:
Click Communication tab and enter email address
Click Other tab and paste the encrypt public key in the PGP Public Key text box:
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:
Click Details link to make certain that this is the correct key:
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
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:
email@example.com the addressbook and assign to this user the default users' public key:
Make sure the user is added in the PGP Public Keyring section with the correct public key:
Now let's send an encrypted mail to
We'll select the option
firstname.lastname@example.org in Horde - we have got mail:
Click on the message link:
Let's send a reply:
Open again the account
email@example.com in Horde:
Well Done. Mail encryption at its best!
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.