Okay, someone already responded that it is “SMRSH” that’s the culprit. So I got to learn a bit more about how smrsh operates. Seems as though it will only allow Sendmail to run a very few shell commands, and only those programs that are explicitly in the /etc/smrsh subdirectory.
The typical usage, then, is to add a soft-link in /etc/smrsh pointing to programs you want to have work.
So I added /usr/bin/spamassassin soft-link in /etc/smrsh, and everything should be hunky-dory.
Did I get that right?
Thanks for the quick turnaround.
-----Original Message-----
--> I have wanted to set up a “spam trap” for some time. First, I created an account, called “spamtest,” on my system. Then, I went to Usenet and posted a ton of “test” messages to every newsgroup I could think of (mostly the pr0n ones) where the address would be harvested, and tried using the Sendmail alias mentioned in the docs to take anything going to that address and send it out to SA for processing.
However, here is the error message I invariably get:
----- The following addresses had permanent fatal errors ----- "| /usr/bin/spamassassin -r -w spamtest -l /var/spool/mail/spamtest" (reason: Service unavailable) (expanded from: <[EMAIL PROTECTED]>)
----- Transcript of session follows ----- smrsh: "spamassassin" not available for sendmail programs (stat failed) 554 5.0.0 Service unavailable
So it looks like Sendmail isn’t running as “privileged” (even though I thought that was what “smrsh” was all about), and thus is not allowed to invoke an instance of SA. Can someone help me out here?
|
<<image001.jpg>>
<<image002.jpg>>