PDA

View Full Version : PHPDesk with email piping



dannygoh
07-29-2004, 05:13 AM
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 support@yourdomain.com 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 support@yourdomain.com 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.

wdv
07-29-2004, 07:36 AM
It's actually quite easy.

Create a forwarder with destination mail: "|/path/to/exophpdesk/pipe.php"

dannygoh
07-29-2004, 05:05 PM
I have this error after i do the alias

######################################
2004-07-30 08:03:08 1BqKrQ-0003F7-SY => support <support@domainname.com> F=<testing@domainname.com> 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 (support@domainname.com) <support@domainname.com> F=<testing@domainname.com> 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 testing@domainname.com

wdv
07-31-2004, 07:56 AM
Did you make the script executable? Else create a forwarder like this: "|/path/to/php-binary /path/to/script"

dannygoh
07-31-2004, 05:45 PM
Originally posted by wdv
Did you make the script executable? Else create a forwarder like this: "|/path/to/php-binary /path/to/script"

thanks it works now! :)

prism4
11-09-2004, 05:17 PM
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

knoxhosting
01-16-2005, 10:27 AM
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.

resolveit
01-16-2005, 11:48 AM
Originally posted by knoxhosting
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.