jhaagmans Posted December 13, 2006 Share Posted December 13, 2006 Hello, I've tried adding the piping command to a Directadmin autoresponder similar to "support@domain.ext" 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 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted December 13, 2006 WHMCS CEO Share Posted December 13, 2006 Hi jhaagmans, You need to put the pipe command inside quotes when using DirectAdmin, for example: "| php -q /*path*/support/pipe/pipe.php" Matt 0 Quote Link to comment Share on other sites More sharing options...
jhaagmans Posted December 13, 2006 Author Share Posted December 13, 2006 No, that doesn't work, but I've done some research and found that you can manually add it in /etc/domain/aliases 0 Quote Link to comment Share on other sites More sharing options...
jhaagmans Posted December 13, 2006 Author Share Posted December 13, 2006 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. 0 Quote Link to comment Share on other sites More sharing options...
welch Posted December 13, 2006 Share Posted December 13, 2006 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" 0 Quote Link to comment Share on other sites More sharing options...
jhaagmans Posted December 13, 2006 Author Share Posted December 13, 2006 If you say so. It doesn't work here, however 0 Quote Link to comment Share on other sites More sharing options...
robin31 Posted January 15, 2007 Share Posted January 15, 2007 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. 0 Quote Link to comment Share on other sites More sharing options...
bodhisattva Posted January 30, 2007 Share Posted January 30, 2007 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" 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted January 30, 2007 Share Posted January 30, 2007 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.