I'm trying to run a program for each email sent to a certain address. So I
have a .qmail file in the correct directory, which looks something like
this:
|/var/qmail/bin/preline /usr/local/junk/test
The app (/usr/local/junk/test) is very security conscious. It checks itself
for permissions, which must be 770 else it complains and doesn't run.
Lets also say that the app has another requirement of owner/group =
test/testgrp. I've placed all the qmail users in the group testgrp
(qmaild,qmaill,qmailp,qmailq,qmailr,qmails), so the 770 access should be
enough for qmail to run the app. I've tested this by giving qmailq a shell
and logging in to verify the user has permissions to run the app.
qmail still complains about not being able to access the file.
If I change the permissions on the test app to 777, then qmail has no
problem, but the security-anal app refuses to run in such a configuration.
Has anyone run into such a problem? Does qmail honor group permissions?
Any help appreciated.
Thanks,
- Scott M