PDA

View Full Version : CGI scripts can't get sendmail working


gordo019
03-20-2002, 12:11 PM
I have a webpage with a form that inputs a mailing address and sends it to a CGI script, which passes the information on to an email address via sendmail. My script works fine on standard Unix servers but OSX's sendmail gives me the following error:

Mar 4 16:19:42 Coronapower sendmail[8553]: NOQUEUE: SYSERR(www): /etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: Group writable directory

-OSX server user.
-other CGIs (without sendmail command) work.

I understand the whole Apple Mail Server thing is a mess. But is there some hack that will get my scripts working with Apple's default sendmail config?

robh
03-20-2002, 12:50 PM
This is a FAQ.

sudo chmod g-w /

fixes the top level directory permissions. You'll need to repeat this fix after each Software Update.

gordo019
03-20-2002, 04:55 PM
I wish it was that easy. But it did not work. Are there other things that should be looked at?

Craig R. Arko
03-20-2002, 05:11 PM
One of the clearest set of instructions I've found is <here> (http://www.kung-foo.tv/xtips.shtml).

Step 13 is sendmail and step 14 is qpopper.