simple CGI mail kicking my butt!

I am attempting to impliment a simple CGI mail page on my server.
The code comes from: http://www.boutell.com/email/

I have followed the directions to the letter. When I call up my html form and submit I get this error:

"Email Rejected: The requested destination address is not one of the permitted email recipients. Please read the documentation before installing email.cgi."

this apears to show that the email address in my email.conf does not match the recipient address in my html file. I have gone over and even copied it between files.

As far as I can tell I have this configured correctly. The email.cgi is in the /CGI-Executables/ and it's permissions are 777. My email.conf file is in the proper directory and if I move it or change the name I get an error that it is not found.

This is so simple I cannot find what I have missed.
Help please

Xserver G5 Mac OS X (10.4.7)

Posted on Sep 21, 2006 4:38 PM

Reply
3 replies

Sep 21, 2006 5:45 PM in response to Curt Wells

Well, you're right about it being simple :-P

I just downloaded and tested it out. In my case, I changed the email.conf file to /Library/WebServer/email.conf. It's owned by me with group admin permissions rw-r--r--. In it, I have:<pre>my@email.com
/</pre>I used my actual email address though. The second line just tells it to return to the site's home page when it's done.

The email.cgi file is in /Library/WebServer/CGI-Executables/email.cgi with owner me group admin, permissions rwxrwxrwx.

Then I have an email.html file in /Library/WebServer/Documents, following the template on their web page. The only thing I changed from the template on their web page is the hidden form field "recipient" -- changed it from "changeme" to "my@email.com" (again, substituted with me real email address).

It worked on the first shot. Do you have a target redirect line after the email address in your email.conf file? Did you remember to change the form field in your HTML form to match a legal email address?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

simple CGI mail kicking my butt!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.