----- Original Message -----
From: "JMG Support" <JMG-Support (at mark) JMG-Enterprises.com>
To: <coba-e (at mark) bluequartz.org>
Sent: Monday, February 11, 2008 10:01 PM
Subject: [coba-e:12018] internal error - malformed header from script. Bad
header - sendmail problem - SOLVED
> Here is a problem and a SOLUTION. I hope that those who need it find it
> quickly.
>
> My situation: I transferred websites from a Raq550 to a server using a
> NuOnce Centos OS. CGI Forms were not working when information submitted.
> The problem ended up being how /usr/sbin/sendmail was used.
>
> When the Form was submitted, the following error appears on the screen:
> The server encountered an internal error or misconfiguration and was
> unable
> to complete your request. Your administrator may not have enabled CGI
> access
> for this directory.
>
> In the GUI, I did uncheck CGI and rechecked CGI for the website. This did
> not help.
>
>
> Also, When the Form was submitted, the /etc/httpd/error_log displayed:
> [_THE_DATE_TIME_HERE_] [error] [client _MY_IP_ADDRESS_] malformed header
> from script. Bad header=/home/.sites/__#__/site##/.users: cgiwrap,
> referer:
> http://www.__SOMEDOMAIN__.com/__FORMNAME__.htm
>
>
> THE SOLUTION:
> Modify the script to use send mail with the options as shown below:
>
> Change how Sendmail is used:
> 1. Change code FROM
> $mailprog = '/usr/sbin/sendmail;
> 2. TO
> $mailprog = '/usr/sbin/sendmail -oi -t
> -f___EMAILNAME__\@___DOMAIN_____';
>
> Both of these Examples work:
> (1) $mailprog = '/usr/sbin/sendmail -oi -t
> -fname/ (at mark) yourdomain.com';
> (2) $mailprog = '/usr/sbin/sendmail -oi -t -fnobody';
>
>
> I hope that people find this useful.
>
> John
>
John
Thanks. That was the solution for me.
----
Ken Marcus
Ecommerce Web Hosting by
Precision Web Hosting, Inc.
http://www.precisionweb.net