Hi all...
I have a pipe setup in my /etc/aliases file: |/etc/smrsh/auto_response.php.
The pipe and script are all working fine.
However, I would like to pass a variable to the script. I need to know who the email has been sent to. This would be a nightmare to accurately pull from headers, because the to address could be one of many, or in a cc header, or even a bcc header. So I would like to use something like |/etc/smrsh/auto_response.php?user=jbx. I can then look up jbx in a database and grab the to address registered for that user. Unfortunately, every time I add the ?user=jbx to my pipe, I get errors bouncing back. Namely:
----- The following addresses had permanent fatal errors -----
|/etc/smrsh/auto_response.php?user=jbx
(reason: Service unavailable)
(expanded from: <addie removed>)
----- Transcript of session follows -----
smrsh: "auto_response.php?user=jbx" not available for sendmail programs (stat failed)
554 5.0.0 Service unavailable
Anyone got any ideas?