W
wexfordpress
I downloaded the html and perl items from chapter 3 of "Perl for Web
Site Management"
and changed addresses etc. The htmls call the perl script and
everything seems to work down to the point where sendmail is accessed.
Sendmail is running on my system. Here are the error messages from the
httpd log:
----------------------
[Wed Nov 26 16:04:37 2008] [error] [client 127.0.0.1] Program mode
requires special privileges, e.g., root or TrustedUser., referer:
http://hda2/ex_0301.html
[Wed Nov 26 16:04:37 2008] [error] [client 127.0.0.1] Can't close pipe
to /usr/sbin/sendmail: Broken pipe, referer: http://hda2/ex_0301.html
[Wed Nov 26 16:04:37 2008] [error] [client 127.0.0.1] Premature end of
script headers: mail_form.plx, referer: http://hda2/ex_0301.html
--------------------------------------
The sendmail calls in the perl script are:
-------------------------------
open MAIL, "|$sendmail -oi -t" or die "Can't open pipe to $sendmail: $!
\n";
print MAIL <<"EOF";
To: $recipient
From: $sender
Subject: Sample Web Form Submission
$mail_body
EOF
close MAIL or die "Can't close pipe to $sendmail: $!\n";
--------------------------------------------------
Both the html and the perl script are owned by root.
All hints are appreciated. Slackware Linux 12.0 and perl ;
This is perl, v5.8.8 built for i486-linux-thread-multi
John Culleton
Site Management"
and changed addresses etc. The htmls call the perl script and
everything seems to work down to the point where sendmail is accessed.
Sendmail is running on my system. Here are the error messages from the
httpd log:
----------------------
[Wed Nov 26 16:04:37 2008] [error] [client 127.0.0.1] Program mode
requires special privileges, e.g., root or TrustedUser., referer:
http://hda2/ex_0301.html
[Wed Nov 26 16:04:37 2008] [error] [client 127.0.0.1] Can't close pipe
to /usr/sbin/sendmail: Broken pipe, referer: http://hda2/ex_0301.html
[Wed Nov 26 16:04:37 2008] [error] [client 127.0.0.1] Premature end of
script headers: mail_form.plx, referer: http://hda2/ex_0301.html
--------------------------------------
The sendmail calls in the perl script are:
-------------------------------
open MAIL, "|$sendmail -oi -t" or die "Can't open pipe to $sendmail: $!
\n";
print MAIL <<"EOF";
To: $recipient
From: $sender
Subject: Sample Web Form Submission
$mail_body
EOF
close MAIL or die "Can't close pipe to $sendmail: $!\n";
--------------------------------------------------
Both the html and the perl script are owned by root.
All hints are appreciated. Slackware Linux 12.0 and perl ;
This is perl, v5.8.8 built for i486-linux-thread-multi
John Culleton