# In Place Upgrade of Ciphermail on Hermes SEG

<div id="bkmrk-we-are-not-responsib"><div><section class="col-lg-9 col-md-9 col-sm-8 col-xs-12 content"><p class="callout warning">We are NOT responsible for any issues that may arise from upgrading Ciphermail on your own. Any Ciphermail specific issues should be raised with Ciphermail support.</p>

### Download Ciphermail Packages

- Navigate to [https://www.ciphermail.com/downloads.html](https://www.ciphermail.com/downloads.html) and click on **Gateway distributions.**
- Copy the URLs for the latest **Back-end** (djigzo\_X.X.X-X\_all.deb) and the latest **Web GUI** (djigzo-web\_X.X.X-X\_all.deb) packages where **X.X.X-X** is the latest version of the Ciphermail gateway packages .
- From a Hermes SEG command prompt, issue the following commands to download the **Back-end** and **Web GUI** packages where X.X.X-X is the latest version of the packages:

```
wget https://www.ciphermail.com/downloads/djigzo-release-X.X.X-X/djigzo_X.X.X-X_all.deb
wget https://www.ciphermail.com/downloads/djigzo-release-X.X.X-X/djigzo-web_X.X.X-X_all.deb
```

### Stop Services

- From a Hermes SEG command prompt issue the following commands to stop Postfix, Ciphermail:

```
sudo service postfix stop
sudo service djigzo stop
```

- If you are running **Hermes SEG 12.04** or **Hermes SEG 14.04** issue the following command to stop Tomcat:

```
sudo service tomcat6 stop
```

- If you are running **Hermes SEG 16.04** issue the following command to stop Tomcat:

```
sudo service tomcat7 stop
```

### Upgrade Packages

From a Hermes SEG command prompt issue the following commands to upgrade the packages you downloaded earlier where X.X.X-X is the latest version of the packages :

```
sudo dpkg -i djigzo_X.X.X-X_all.deb
sudo dpkg -i djigzo-web_X.X.X-X_all.deb
```

### Clear Tomcat Cache​

- If you are running **Hermes SEG 12.04** or **Hermes SEG 14.04** issue the following command to clear the Tomcat cache:

```
sudo rm -r /var/cache/tomcat6/Catalina/localhost/djigzo
```

- If you are running **Hermes SEG 16.04** issue the following command to clear the Tomcat cache:

```
rm -r /var/cache/tomcat7/Catalina/localhost/ciphermail
```

### Restart Services

- If you are running **Hermes SEG 12.04** or **Hermes SEG 14.04** issue the following command to restart Tomcat and Ciphermail and Postfix:

```
sudo service tomcat6 restart
sudo service djigzo restart
sudo service postfix restart
```

- If you are running **Hermes SEG 16.04** issue the following command to restart Tomcat, Ciphermail and Postfix:

```
sudo service tomcat7 restart
sudo service djigzo restart
sudo service postfix restart
```

### <a id="bkmrk-" name="verify"></a>Verify Ciphermail was Upgraded Successfully

- If you are running **Hermes SEG 12.04** or **Hermes SEG 14.04** browse to the following URL where 192.168.XXX.XXX is the IP address of the Hermes SEG appliance and login:

[https://192.168.XXX.XXX:9080/djigzo/](https://192.168.xxx.xxx:9080/djigzo/)

- If you are running **Hermes SEG 16.04** browse to the following URL where 192.168.XXX.XXX is the IP address of the Hermes SEG appliance and login :

[https://192.168.XXX.XXX:9080/ciphermail/](https://192.168.xxx.xxx:9080/ciphermail/)

- After logging in, click on the ![](http://www.deeztek.com/default/assets/File/ciphermail_about.jpg) icon on the top right of the screen and you will be re-directed to the **About CipherMail Email Encryption Gateway** page.
- Verify the version is the same version of the ciphermail software you installed earlier.

</section></div></div>