[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Forward email to script on RaQ XTR
- Subject: [cobalt-users] Forward email to script on RaQ XTR
- From: "J. Perks" <jperks@xxxxxxxxxxxx>
- Date: Wed Jan 29 11:09:00 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
I have exhausted all of my avenues to find the answer to this question. I
want to have all of the emails going to the catch all address on a site to
be forwarded to a cgi script to be processed. On the Cobalt support site
there is only one solution and it did not work for me.
These were the directions that I found:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Question: Can I get an email to redirect to a script?
Answer: First the redirect needs to be put in the aliases file.
Here's a copy of a redirect
support@xxxxxxxxxxxx |"/path/to/script"
After that, put a copy of the script in the /usr/adm/sm.bin/ directory.
Sendmail uses it's own shell to execute wrappers. The shell is called
smrsh(SendMail Restricted SHell). Putting the script in here will let
sendmail run it. If any modifications are made to the script after
installing it here, it will be a good idea to update the copy of the
script.
After copying something here and updating the aliases, a good idea would
be to restart sendmail, just to make sure the aliases and such are sync'ed.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On the RaQ, you create a catch all by putting @host.domain.com in the alias
field off the email account you want to use as the catch all. Nothing else
will be accepted so |"/path/to/script" is rejected by the server.
.
Does anyone have a different solution for redirecting email to a script?
Thanks
Jim