PDA

View Full Version : Piping in Directadmin



jhaagmans
12-13-06, 10:46 AM
Hello,

I've tried adding the piping command to a Directadmin autoresponder similar to "[email protected]" and it just won't do it:

String contains an invalid email address: | php -q /*path*/support/pipe/pipe.php

I can't seem to find what's wrong. It just won't take something that is not an e-mail adress. Can anyone help me?

Kind regards,
Jaap Haagmans

Matt
12-13-06, 05:38 PM
Hi jhaagmans,

You need to put the pipe command inside quotes when using DirectAdmin, for example: "| php -q /*path*/support/pipe/pipe.php"

Matt

jhaagmans
12-13-06, 07:43 PM
No, that doesn't work, but I've done some research and found that you can manually add it in /etc/domain/aliases :)

jhaagmans
12-13-06, 09:25 PM
Well, that was a pickle. I've been trying and trying and finally found out I had to pipe it to the absolute PHP path (which is /usr/local/bin/php in most DA installs) by editing the /etc/virtual/*domain*/aliases file.

Eventually I ended up with a piping line like this:

support: |/usr/local/bin/php -q /home/*path*/public_html/support/pipe/pipe.php

But it works now. And I think you (Matt) can add it to the manual like this, if you like. But make sure to check whether the php path is correct for your install.

welch
12-13-06, 10:01 PM
No, that doesn't work, but I've done some research and found that you can manually add it in /etc/domain/aliases :)

The correct method for piping is placing the option in quotes. It DOES work when you have it in your quotes "|php -q pipe.php"

jhaagmans
12-13-06, 10:23 PM
If you say so. It doesn't work here, however :)

robin31
01-15-07, 07:45 AM
Well, that was a pickle. I've been trying and trying and finally found out I had to pipe it to the absolute PHP path (which is /usr/local/bin/php in most DA installs) by editing the /etc/virtual/*domain*/aliases file.

Eventually I ended up with a piping line like this:

support: |/usr/local/bin/php -q /home/*path*/public_html/support/pipe/pipe.php

But it works now. And I think you (Matt) can add it to the manual like this, if you like. But make sure to check whether the php path is correct for your install.

I can hereby confirm that this is correct, im using DirectAdmin on freeBSD and need to use the full path like "|/usr/local/bin/php " only PHP is not working for me either.

bodhisattva
01-30-07, 02:07 AM
yeah, can confirm DA rejects non-email addresses now in the initial setup of a forwarder, but it will let you edit one once its in.

edit:
etc/virtual/yourdomain/aliases

add:
support: "| /usr/local/bin/php -q /home/admin/domains/yourdomain.com/public_html/cms/pipe/pipe.php"

twhiting9275
01-30-07, 09:24 PM
yeah, can confirm DA rejects non-email addresses now in the initial setup of a forwarder, but it will let you edit one once its in.

This is a DA issue then, not a WHMCS one.
the quotes problem wasn't a problem a month ago, probably something to do with an update on their end.