Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
cd /etc/smrsh
ln -s /usr/bin/php
ln -s /home/user/public_html/plugins/support_manager/pipe.php

Testing Piping

If you are having trouble with piping, it may be useful to try piping a sample email manually via SSH. This will bypass your mail server and help determine where the issue exists.

Step 1: Enable Error Reporting and Debugging

To enable error reporting, edit /config/blesta.php and change **Configure::errorReporting(0);** to **Configure::errorReporting(-1);** You may also wish to enable System Debug. To do so, change **Configure::set("System.debug", false);** to **Configure::set("System.debug", true);**

It's a good idea to change these settings back when you are done.

Step 2: Create a Sample Text Email

Copy the following content into a text file called email.txt, changing the all instances of support@domain.com to your department email. You may also need to update the from address customer@domain.com to a valid customer email if your department only allows customers to create tickets. Then upload to your web server at ~/plugins/support_manager/

Code Block
languagexml
From - Thu Jun  1 10:15:17 2017
Return-Path: <customer@domain.com>
Delivered-To: support@domain.com
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mail.blesta.com (iRedMail) with ESMTP id 2E05935C4CC
	for <support@domain.com>; Thu,  1 Jun 2017 13:14:48 -0400 (EDT)
To: Support Department <support@domain.com>
From: Test Testerson <customer@domain.com>
Subject: Test Ticket Subject
Message-ID: <59304B86.2080303@domain.com>
X-ASG-Orig-Subj: Test Ticket Subject
Date: Thu, 1 Jun 2017 10:14:46 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.8.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Test ticket body. Please disregard.

Step 3: Direct the Output of the Text File to Blesta

Via SSH, change directories to ~/plugins/support_manager/ i.e cd /path/to/plugins/support_manager/

Run the following command:

./php < email.txt

Did that work? Did you get any errors?

Formatting, Styling, and Adding Links to Replies

...