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.

Mail to Pipe php script

Discussion in 'E-mail Discussions' started by jameshsi, Nov 9, 2006.

  1. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Hi!
    I have a setting in my /etc/valiases/something.com ,
    I set mail pipe to a php script :
    pipe to |php -q /home/xxx/www/modules/mail_pipe.php

    it was working fine before, pipe mail to the php script and save something in the MySQL database, and then, reply a email to sender.

    Now, it still working but sender will receive 2 emails, one is what we want, and the other is sent by Mailer-Daemon@servername.com , and shows below messages:

    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 |php -q /home/xxx/www/modules/mail_pipe.php
       generated by receive-mail-box@something.com
    
    The following text was generated during the delivery attempt:
    
    ------ pipe to |php -q /home/xxx/www/modules/mail_pipe.php
          generated by receive-mail-box@something.com ------
    
    PHP Warning:  Unknown(): Unable to load dynamic library './php_domxml.dll' - ./php_domxml.dll: cannot open shared object file: No such file or directory in Unknown on line 0
    

    Anyone got an idea ?
     
  2. freedman

    freedman Well-Known Member

    Joined:
    Feb 13, 2005
    Messages:
    312
    Likes Received:
    1
    Trophy Points:
    18
    umm. yeah.. your php script is trying to find a file './php_domxml.dll' which it can't find.
    check mail_pipe.php and all it's includes and find out which ones trying to load that DLL file. either remove the include line or put that file in the php include path.

     
Loading...

Share This Page