Piping issue

Jackiegoal

Verified User
Joined
Nov 22, 2006
Messages
66
Hello,

I've tried adding a piping command for my support system to a Directadmin autoresponder similar to "[email protected]" and it just won't do it, putting in a php command will give:

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
 
You cannot currently do pipes via directadmin you have to add them in the file with a unix editor.

Edit /etc/virtual/<domain.com>/aliases
 
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, afaik) 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. Just make sure to check whether the php path is correct for your install.
 
chatwizrd said:
You cannot currently do pipes via directadmin you have to add them in the file with a unix editor.

Edit /etc/virtual/<domain.com>/aliases
By the way, it is possible to do it through DirectAdmin. Try putting double quotes around it.
 
Jackiegoal said:
By the way, it is possible to do it through DirectAdmin. Try putting double quotes around it.

What is a double quote? Do you mean quotation marks?
 
Back
Top