Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Pipe to program - not working

Discussion in 'E-mail Discussion' started by Kasper Franz, May 4, 2016.

  1. Kasper Franz

    Kasper Franz Registered

    Joined:
    Jul 22, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Næstved, Denmark
    cPanel Access Level:
    Root Administrator
    We are trying to pipe incomming mails to a PHP file.

    I have inserted the path to the file without any trouble.

    When i send a email to the email i get a mail in return with

    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/example/www_dev/xxx/wp-content/themes/xxx/incoming/email.php
        generated by test1@xxx.dev.example.dk
    
    The following text was generated during the delivery attempt:
    
    ------ pipe to |/home/example/www_dev/xxx/wp-content/themes/xxx/incoming/email.php
           generated by test1@xxx.dev.example.dk ------
    
    Exception: Zend Extension /home/example/www_dev/xxx/wp-content/themes/xxx/incoming/email.php does not exist
    
    The File does however exists (with file permission 1755 or 755)


    I have tried to change the delivery place in the /etc/valiases/xxx.dev.example.dk" from
    test1@xxx.dev.example.dk: |/home/example/www_dev/xxx/wp-content/themes/xxx/incoming/email.php
    to
    test1@xxx.dev.example.dk: /home/example/www_dev/xxx/wp-content/themes/xxx/incoming/email.php

    This makes it to work, it however resets the files permission, which would mean i had to update it every time there came a mail


    How can we fix this? what did i Miss?
     
    #1 Kasper Franz, May 4, 2016
    Last edited by a moderator: May 4, 2016
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice