![]() |
|
Customer Support
My formmail.pl script from Matt's Script Archive doesn't
work.
As of February 20, 2002 the formmail.pl at Matt's Script Archive has several vulnerabilities that allow it to be exploited by spammers. Also, many of the scripts at Matt's Script Archive are buggy and insecure. Therefore, you should use replacement scripts from http://nms-cgi.sourceforge.net/ instead. The easiest script to use is the "compat" version. To use the script from NMS, just get the file from the NMS website, upload it to your /htdocs/www/cgi-bin/ directory, then get a shell prompt and type:
tar -xvzf htdocs/www/cgi-bin/[filename that you downloaded.tar.gz]all on one line and then hit the ENTER key.
In the configuration section of the formmail.pl script you will need to set the correct path to to sendmail on our system, which is:
You will also need to fix the sendmail command parameters by deleting the '-oi' options from the command string.
Then, you will need to edit the configuration section of this script to put in your own values for @referers and @allow_mail_to and such, which are around line 48 of the script.
Finally, when installing this script on your site, it needs to be world executable in order to run. To make it world executable, issue these 2 commands from a shell prompt after you have uploaded formmail.pl into the /htdocs/www/cgi-bin directory:
If you don't know how to use a unix shell, your ftp software may have a graphical way for you to make the last permission bit "executable" but not "writeable" by "other".
For other problems with this form mail script, please make sure that you have set all the necessary variables in the script as described in the EXAMPLE and REDAME files that are contained in the script documentation. Also make sure that you have set all the necessary html form fields in the web page that POSTs to this script.
Related Questions:
How do I use sendmail with perl?
How do I use cgi scripts?
Why does Sbox say "no such file or directory" but the files are there?
What Perl modules are installed?
Do you offer CGI? What scripts can I install?
I can't get the python socket module to work?
Why do I get: Sbox error file is world writable?
What is the path to perl or some other program?
Sendmail does not work or does not accept my optional arguments.
Importing the Python cgi module doesn't work.
How do I use MySQL with Python?
What version of Python do you support and what modules are available?
Why do I get: Sbox Error exec of [some script] failed (Exec format error)?
Why do I get: Sbox error file not world executable?
Why do I get: Sbox error the directory containing [some script] is world writable?
Why do I get: Sbox Error exec of [some script] failed (Permission denied)
Why do I get: Sbox error: cannot run suid scripts
Why do I get: Sbox Error exec of [some script] failed (Resource temporarily unavailable)
Browse Categories:Getting Started, FTP, Telnet/SSH, Moving Domains, E-mail, Traffic Reports, Mailing Lists, Apache, PHP, CGI, Other Server-Side Scripting, MySQL Database, Imaging Libraries, Other Software, Billing & Terms, Control Panel, E-commerce, Pre-Sales |

