Web Hosting Talk







View Full Version : sendmail cannot be called directly from a shell


DigiCrime
09-02-2004, 03:59 PM
Having trouble trying to figure out this error

System 1 Redhat 7.1
System 2 Fedora
Cpanel Software on both

7.1 gives this error on a formail script

sendmail: sendmail cannot be called directly from a shell with the current user id
sendmail: sendmail cannot be called directly from a shell with the current user id


system 2 doesnt have this error, the formmailer works.

I kinda have an idea what the error means but have no idea how to fix it actually, anyone familar with this error ? im stumped

L0rd0laf
10-23-2004, 12:35 AM
You have to add the User and Group directives for the user in question in the httpd.conf. After that you'll be good to go.

andreyka
10-23-2004, 03:20 AM
I think - this is warper.
Try tihs:
file `which sendmail`
If it shell script (ASCII text file) - this is warper.

L0rd0laf
10-23-2004, 12:06 PM
If I'm not mistaken you're using 'suexec'. If so, since apache is running as nobody, suexec is not allowing apache to send the form via sendmail. Check the VirtualHost wrapper for the domain in question and add the 'User' and 'Group' directives.