On Thu, Jun 27, 2013 at 4:04 PM, Eric Henson <ehenson@pfsweb.com> wrote:
Okay, sendmail is receiving email. However, the script isn’t running, here’s the error:
----- The following addresses had permanent fatal errors ----- | /opt/spamikaze/scripts/passivetrap.pl (reason: Service unavailable) (expanded from: <passive@antispam.pfsweb.com>)
----- Transcript of session follows ----- smrsh: "passivetrap.pl" not available for sendmail programs (stat failed) 554 5.0.0 Service unavailable
You have the sendmail restricted shell enabled which is a way of keeping sendmail from calling programs that the sysadmin doesn't know about (thus keeping any number of user controlled programs from being called from .forward files that could damage things). Find in your sendmail config where the smrsh directory is defined (/etc/smrsh/ in most configurations that I've ever come across), then go into that subdirectory and make a symlink to the file passivetrap.pl. That tells sendmail that you allow that program to be called by sendmail in normal operation. ...Todd -- The total budget at all receivers for solving senders' problems is $0. If you want them to accept your mail and manage it the way you want, send it the way the spec says to. --John Levine