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 to program - not working

Discussion in 'E-mail Discussions' 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:
    14,460
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
Loading...

Share This Page