Page 1 of 1

Email Piping Returned Error

Posted: Wed Dec 01, 2021 11:39 am
by murrayp
Script URL: /usr/local/bin/php /home/indigoma/public_html/inc/mail/hesk_imap.php
Version of script:
Hosting company: A2 Hosting
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Hi,

I am having problems with Email Piping.

I have set up the cron job for email piping, which works except when I am sending an email from another hosting account on the same server as my Hesk install using Webmail. I get a returned email saying:

Code: Select all

"This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

pipe to |/home/indigoma/public_html/inc/mail/hesk_pipe.php
generated by help@indigomarmoset.info
local delivery failed

The following text was generated during the delivery attempt:

------ pipe to |/home/indigoma/public_html/inc/mail/hesk_pipe.php
generated by help@indigomarmoset.info ------

From info@websitesforplumbers.co.uk Wed Dec 01 10:28:00 2021
Received: from [127.0.0.1] (port=52444 helo=nlsrc3.supercp.com)
by nlsrc3.supercp.com with esmtpa (Exim 4.94.2)
(envelope-from )
id 1msLuC-00HAQT-KM
for help@indigomarmoset.info; Wed, 01 Dec 2021 10:28:00 +0100
MIME-Version: 1.0
Date: Wed, 01 Dec 2021 10:28:00 +0100
From: info@websitesforplumbers.co.uk
To: help@indigomarmoset.info
Subject: Yet another test!!!
User-Agent: Roundcube Webmail/1.4.11
Message-ID:
X-Sender: info@websitesforplumbers.co.uk


/home/indigoma/public_html/inc/mail/hesk_pipe.php: line 2: ?php: No such file or directory
/home/indigoma/public_html/inc/mail/hesk_pipe.php: line 3: /app: is a directory
/home/indigoma/public_html/inc/mail/hesk_pipe.php: line 4: a2backups: command not found
/home/indigoma/public_html/inc/mail/hesk_pipe.php: line 5: a2backups: command not found
/home/indigoma/public_html/inc/mail/hesk_pipe.php: line 6: a2backups: command not found
/home/indigoma/public_html/inc/mail/hesk_pipe.php: line 7: syntax error near unexpected token `c'
/home/indigoma/public_html/inc/mail/hesk_pipe.php: line 7: ` * (c) Copyright Klemen Stirn. All rights reserved.'
Reporting-MTA: dns; nlsrc3.supercp.com

Action: failed
Final-Recipient: rfc822;help@indigomarmoset.info
Status: 5.0.0"
Would anybody know why this happening?

Thanks

Re: Email Piping Returned Error

Posted: Wed Dec 01, 2021 4:11 pm
by Klemen
The returned email is usually sent when the email piping script returns output (any message).

Try uploading the original Hesk "inc/mail/hesk_pipe.php" file to your server, without modifying anything, and see if that works. Sometimes when you edit the script it is saved in an incorrect format which can result in the returned emails you are receiving.