# CodeTwo

### Introduction

CodeTwo is a Microsoft Office 365, Exchange Server and G Suite solution for email signatures, archiving, email utilities & more. &#x20;

It's possible to have CodeTwo and SecuMailer cooperate together to enjoy the benefits of both solutions. This appendix contains instructions for the proper setup of CodeTwo together with SecuMailer.

### Exchange Admin Center&#x20;

Please open a browser and provide the URL for your Exchange Admin Center.

![Exchange Admin Center home screen ](https://1605155137-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lp8mZdXe3Nx1jf_SROL%2F-Lq5CPExDjate6OfLZin%2F-Lq5D9E3UjYyTXFZJOAM%2Fexchange1.png?alt=media\&token=39812aa5-6828-4d36-9893-c81a2f95ffaa)

In EAC select `mail flow` in the main menu and subsequently select `rules` from the context menu. In the rules overview move the CodeTwo rule above the SecuMailer rule(s) using the up arrow in the rules menu (see screenshot below).

![Rules menu](https://1605155137-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lp8mZdXe3Nx1jf_SROL%2F-ME1vw3WuFX3EpNnJ36f%2F-ME1zt7DwK9lGT7mpw8a%2Fimage.png?alt=media\&token=8baab73a-370d-46f5-ae2e-16c0a63800c6)

### Mail flow rule

After you've moved the CodeTwo rule above the SecuMailer rule(s), select the edit option to change the SecuMailer rule(s).

Change the first condition `Apply this rule if...` , add a condition by selecting `A message header...` from the drop down and select `includes any of these words...`

Click on `Enter text...` , fill in **X-CodeTwoProcessed** and click on `OK`. Click on `Enter words...`, fill in **true**, click on the `+` symbol and click on OK. See below for an example.

<figure><img src="https://1605155137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lp8mZdXe3Nx1jf_SROL%2Fuploads%2Fq7EZAmvryCFHAfRVJp3y%2Fimage.png?alt=media&#x26;token=266382ac-1ade-4967-80da-7941670415b4" alt=""><figcaption></figcaption></figure>

Click on `Save` to store the change.

This change ensures that O365 / Exchange checks that the CodeTwo processing has completed successfully before sending the email to SecuMailer for further processing.
