PHPDesk with email piping

dannygoh

Verified User
Joined
Feb 9, 2004
Messages
367
Location
Malaysia
i need some expert opinion how to do this in DA. I have root access. Below is the sample of other CP.

#############################
Configuring Email Piping With Sendmail :

------------------------------------------------
Linux RedHat (Default) :
------------------------------------------------

- Open /etc/aliases
- Move to bottom of the file and add a line :

support: "|/path/to/exophpdesk/pipe.php"

Replace support with the mail you want piped, for example you want any mail sent to [email protected] to be converted into a ticket, then use support.

- Run a command :

#newaliases

Completed.

------------------------------------------------
Linux RedHat ( ENSIM Installed ) :
------------------------------------------------

- Type in the following commands:

cd /home/virtual/yoursite.com/etc/smrsh/

ln -s /usr/bin/php php

ln -s /var/www/html/exophpdesk/pipe.php pipe.php

- Open /home/virtual/yoursite.com/etc/aliases
- Move to bottom of the file and add a line :

support: "|/etc/smrsh/php /var/www/html/exophpdesk/pipe.php"

Replace support with the mail you want piped, for example you want any mail sent to [email protected] to be converted into a ticket, then use support.

- Run a command :

#newaliases

Completed.
------------------------------------------------
Linux Redhat ( cPanel Installed ):
------------------------------------------------

- Login to cPanel.
- Go to Mail Settings.
- Create a mail forwarder with forwarding path as :
/home/USERNAME/public_html/exophpdesk/pipe.php
- Chmod the file pipe.php to 0777.

Completed.

Now test the email piping feature by sending an email to the address you setup mail piping for.
 
It's actually quite easy.

Create a forwarder with destination mail: "|/path/to/exophpdesk/pipe.php"
 
I have this error after i do the alias

######################################
2004-07-30 08:03:08 1BqKrQ-0003F7-SY => support <[email protected]> F=<[email protected]> R=virtual_user T=virtual_localdelivery S=4798
2004-07-30 08:03:08 1BqKrQ-0003F7-SY ** |/home/username/domains/domainname.com/public_html/phpdesk/pipe.php ([email protected]) <[email protected]> F=<[email protected]> R=virtual_aliases_nostar T=virtual_address_pipe: Child process of virtual_address_pipe transport returned 127 (could mean unable to exec or command does not exist) from command: /home/username/domains/domainname.com/public_html/phpdesk/pipe.php
2004-07-30 08:03:08 1BqKrc-0003FQ-H7 <= <> R=1BqKrQ-0003F7-SY U=mail P=local S=5567 T="Mail delivery failed: returning message to sender" from <> for [email protected]
 
Did you make the script executable? Else create a forwarder like this: "|/path/to/php-binary /path/to/script"
 
How to get email to work in PHP

I have never set up a PHP form so i had someone else do it but now i need to change the domain site and the html pages and for some reason the email is not being sent anymore. Where do I go to change the email script to match the PHP form?

Thank you
 
Mail piping does not work in DA.

My php is executable. I've always tried using the php forwarder. It just doesn't work.

The same email piping program works on the Plesk system I have it installed on.
The same email piping program works ont he cPanel system I have it installed on.
 
knoxhosting said:
Mail piping does not work in DA.

My php is executable. I've always tried using the php forwarder. It just doesn't work.

The same email piping program works on the Plesk system I have it installed on.
The same email piping program works ont he cPanel system I have it installed on.

As you can read in this thread it only works when you specify it as "|/path/to/php-binary /path/to/script" and yes there is a space after php-binary.
 
Back
Top