I have just installed the FormMail Version 3.11c1 from
http://nms-cgi.sourceforge.net/ which was recommended to me by Lunarpages after having spam / virus problems with my original formmail script. I think I have configured everything correctly, however I am getting a 403 "Forbidden" error:-
"Forbidden
You don't have permission to access /cgi-bin/FormMail.pl on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request"
when testing from a form located at
http://www.accom.com.au/salesenquiry.html.
As far as I can tell, everything is configured correctly, and I have set permissions to 755.
The script is configured as follows:-
# USER CONFIGURATION SECTION
# --------------------------
# Modify these to your own settings. You might have to
# contact your system administrator if you do not run
# your own web server. If the purpose of these
# parameters seems unclear, please see the README file.
#
BEGIN
{
$DEBUGGING = 1;
$emulate_matts_code= 0;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 3;
$mailprog = '/usr/sbin/sendmail -oi -t';
$postmaster = '
admin@accom.com.au';
@referers = qw(accom.com.au
www.accom.com.au frogandtoad.com.au
www.frogandtoad.com.au narollah.com.au
www.narollah.com.au);
@allow_mail_to = qw(
mhalloran@accom.com.au mail.accom.com.au mail.narollah.com.au mail.frogandtoad.com.au);
@recipients = ();
%recipient_alias = ();
@valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT);
$locale = '';
$charset = 'iso-8859-1';
$date_fmt = '%A, %d %B, %Y at %H:%M:%S';
$style = '';
$no_content = 0;
$double_spacing = 1;
$wrap_text = 0;
$wrap_style = 1;
$send_confirmation_mail = 0;
$confirmation_text = <<'END_OF_CONFIRMATION';
From:
you@your.comSubject: form submission
Thank you for your form submission.
END_OF_CONFIRMATION
Does anyone have an idea of why it isn't working? Would appreciate your urgent help and assistance, as I am not sure what I need to do next to make this work!
Thanks
Matt.