> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://docs.clientexec.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Setup Support Piping

**Email Pipe**

**Configure a routing rule inside Clientexec**

On the admin side of Clientexec, click on **Settings** > **Support > Routing**

We will now create the rule of how the emails will be dealt with once passed through your Support Pipe. To give you a better understanding of how it works, when someone sends an email to a certain email address (depending on the rule you setup) it is forwarded to the **SupportPipe.php** script which then looks at your rules and directs the email from there based on the rules that apply.

Click on the **Add Routing Rule** button. Here is an example of a more common setup:

![](https://storage.crisp.chat/users/helpdesk/website/895a2775afb3f800/supportpiping3_1ajc9a4.png)

Onto the last tab, **Actions**, this tab will tell Clientexec what to do with the incoming email.

![](https://storage.crisp.chat/users/helpdesk/website/895a2775afb3f800/supportpiping4_1s1lntz.png)
  
For this example, we will be using the Default autoresponder template, you can edit or add additional templates via **Settings** > **Company** > **Email Templates** > **Autoresponder Emails** (Drop down box on the right).

You can either have the email pipe just send an auto response back to the customer, or you can have it open a ticket up in the ticket support system by checking the **Open Ticket?** box. This will allow you to select from different options on how the ticket will be handled, you can leave the settings as they are default, or you can choose where/who it will be assigned to.

Once you hit Save, the rule will be completed and it will be on to create an Email Forward with your Control Panel. For this example, we will use cPanel.

**Creating an email forward in cPanel**

Once logged into cPanel, click on the **Forwarders** icon located under the **EMAIL** section.

![](https://storage.crisp.chat/users/helpdesk/website/895a2775afb3f800/supportpiping5_1j1my0c.png)

Click on **Add Forwarder**. In the next image, only pay attention to the highlighted areas.

![](https://storage.crisp.chat/users/helpdesk/website/895a2775afb3f800/supportpiping6_1cn2j3t.png)

·        **Address to Forward:** You will need to do this for every email that you want to be piped to your Clientexec install, our example we used **support**

·        Make sure to click **Advanced Options**

·        Fill in the circle for **Pipe to a Program:** This is the relative path to **SupportPipe.php**, which can be found in Clientexec.

·        Click on **Add forwarder** button.

·        Ensure the file permission for **SupportPipe.php** are set to **755** which can be done inside the **File Manager**.

Once the forward is set, you should be able to send an email to the email you setup, in our case support@nodomain.com and it will be piped through **SupportPipe.php** which will then apply the rules you have set inside Clientexec. 