The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Pipe emails to WHMCS

Discussion in 'E-mail Discussions' started by AffordableDomainsCanada, Jul 4, 2016.

Tags:
  1. AffordableDomainsCanada

    Joined:
    Jul 4, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Canada
    cPanel Access Level:
    Website Owner
    Code:
    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.0
    How 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
    Code:
    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 ~]#
    
     
    #1 AffordableDomainsCanada, Jul 4, 2016
    Last edited by a moderator: Jul 4, 2016
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. twhiting9275

    twhiting9275 Well-Known Member

    Joined:
    Sep 26, 2002
    Messages:
    538
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    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
     
  4. AffordableDomainsCanada

    Joined:
    Jul 4, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Canada
    cPanel Access Level:
    Website Owner
    No. WHMCS does not end up opening a ticket..
     
  5. AffordableDomainsCanada

    Joined:
    Jul 4, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Canada
    cPanel Access Level:
    Website Owner
    I have fixed the duplicate extension in the php.ini but I still receive this error.

    Code:
    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 [EMAIL]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.0
     
    #5 AffordableDomainsCanada, Jul 4, 2016
    Last edited by a moderator: Jul 4, 2016
  6. twhiting9275

    twhiting9275 Well-Known Member

    Joined:
    Sep 26, 2002
    Messages:
    538
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
Loading...

Share This Page