Mail to Pipe php script

jameshsi

Well-Known Member
Oct 22, 2001
347
0
316
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 [email protected] , 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 [email protected]

The following text was generated during the delivery attempt:

------ pipe to |php -q /home/xxx/www/modules/mail_pipe.php
      generated by [email protected] ------

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 ?
 

freedman

Well-Known Member
Feb 13, 2005
314
6
168
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.

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 [email protected] , 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 [email protected]

The following text was generated during the delivery attempt:

------ pipe to |php -q /home/xxx/www/modules/mail_pipe.php
      generated by [email protected] ------

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 ?