[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] sendmail from perl scripts on RAQ3
- Subject: Re: [cobalt-users] sendmail from perl scripts on RAQ3
- From: Jeff Lasman <jblists@xxxxxxxxxxxxx>
- Date: Mon Oct 30 01:18:58 2000
- Organization: nobaloney.net
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
nyk wrote:
> But the following returned mail
> was obtained when we try to send email to helpdesk account:
>
> ----- The following addresses had permanent fatal errors -----
> \"| /usr/bin/perl /home/sites/site4/web/cgi-bin/teacup/teacupmail.pl\"
> (expanded from: <helpdesk@xxxxxxxxxxxxxx>)
>
> ----- Transcript of session follows -----
> sh: perl not available for sendmail programs
> 554 \"| /usr/bin/perl /home/sites/site4/web/cgi-bin/teacup/teacupmail.pl\"
> ...
> Service unavailable
>
> I was informed by Mr. Micheal Higuchi of Cobalt that some amendments need to
> be done to the sendmail configuration files. Is there anyone has had the
> same problems and managed to resolve it? I appreciate if someone can come
> forward and drop me some hints.
Short version: You need to learn about Sendmail's SMRSH. See
"http://www.sendmail.org/".
Longer version: Very doable, and extremely dangerous. I wouldn't put
anything directly from mail through Perl if I were you, especially when
there are some things you can do to fix the problem.
Read about SMRSH (Sendmail Restricted Shell) and Majordomo's "wrapper"
software.
Start by checking out "http://www.sendmail.org/" and
"http:/www.greatcircle.com/majordomo/". Majordomo is entirely perl
scripts (except for their "wrapper", which adds security); understanding
Majordomo is a great starting point for understanding how to pipe email
through perl.
Jeff
--
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672
Riverside, CA 92517
voice: (909) 787-8589 * fax: (909) 782-0205