Pipe emails to WHMCS
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/jafforda/public_html/crons/pipe.php
generated by sales@example.ca
The following text was generated during the delivery attempt:
------ pipe to |/home/jafforda/public_html/crons/pipe.php
generated by sales@example.ca ------
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/zip.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20121212/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/php_zip.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20121212/php_zip.dll: cannot open shared object file: No such file or directory in Unknown on line 0
Reporting-MTA: dns; alpha.example.ca
Action: failed
Final-Recipient: rfc822;|/home/jafforda/public_html/crons/pipe.php
Status: 5.0.0How does one fix this issue ? I am trying to pipe emails to WHMCS. grep '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype ; grep CPANEL= /etc/cpupdate.conf ; httpd -v ; php -v ; mysql -V
Last login: Mon Jul 4 09:52:53 2016 from 135.23.170.43
[root@alpha ~]# grep '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype ; grep CPANEL= /etc/cpupdate.conf ; httpd -v ; php -v ; mysql -V
/etc/redhat-release:CentOS release 6.8 (Final)
/usr/local/cpanel/version:11.56.0.24
/var/cpanel/envtype:standard
CPANEL=release
Server version: Apache/2.4.18 (Unix)
Server built: Dec 31 2015 16:32:20
Cpanel::Easy::Apache v3.32.8 rev9999
PHP 5.5.30 (cli) (built: Dec 31 2015 16:35:37)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd.
mysql Ver 14.14 Distrib 5.6.30, for Linux (x86_64) using EditLine wrapper
[root@alpha ~]#
-
Have you reviewed the docs for WHMCS on this topic? Email Piping - WHMCS Documentation 0 -
Does the mail actually get delivered? I know that PHP will return rejection notices if you have errors in the script, but that shouldn't stop the mail itself from being delivered. Make sure that you remove the invalid extensions from PHP.ini that will clear those errors up 0 -
Does the mail actually get delivered?
No. WHMCS does not end up opening a ticket..0 -
I have fixed the duplicate extension in the php.ini but I still receive this error. 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/jafforda/public_html/crons/pipe.php generated by support@example.ca[/EMAIL] local delivery failed Reporting-MTA: dns; alpha.example.ca Action: failed Final-Recipient: rfc822;|/home/jafforda/public_html/crons/pipe.php Status: 5.0.00 -
You still didn't answer the question, are the mails getting imported? PHP sometimes does actually deliver/import the message despite sending that reply that it didn't Take a look in your cron directory for error logs Make sure ownership is correct (should be user:user) Make sure permissions are correct (should be user only, no group, no world, aka 700) If there's an error log in your cron directory, make sure to go through it, or have someone that understands this stuff do it. 0
Please sign in to leave a comment.
Comments
5 comments