Downloading
Download the latest zipped/tarred version of the script (currently 3.11c1) from the official NMS FormMail Download Site. Extract the files locally on your computer using any of the many unzip/untar programs available.
Configuring
Once you've downloaded to your computer, unzip/untar it. Inside the unzipped/untarred folder you will see a formmail subfolder. Inside the subfolder you will see the following:
Open formmail.pl in your favorite text editor (i.e. notepad) and modify the following four lines:
Line 44: $mailprog = '/usr/lib/sendmail -oi -t';
Replace with $mailprog = '/usr/sbin/sendmail -oi -t';
Line 58: @referrer = qw(dave.org.uk 209.207.222.64 localhost);
Replace with @referrer = qw(yoursite.com www.yoursite.com);
Line 59: @allow_mail_to = qw(you@your.domain some.one.else@your.domain localhost);
Replace with @allow_mail_to = qw(you@yoursite.com);
Line 61: %recipient_alias = ();
Replace with %recipient_alias = ('1' => 'you@yoursite.com');
Uploading
Once you've made the modifications, upload formmail.cgi to your cgi-bin in ASCII (Text) mode. The permission for formmail.cgi will need to be changed to 0755 after being placed on the server.
Note: To avoid possibly having your script exploited, rename formmail.cgi to something else like contact.cgi.
Setting Up
Enter http://www.yoursite.com/cgi-bin/mojo/mojo.cgi in your address bar and enter the password you entered during the configuration stage above. You will than be able to start creating lists.
Security
After you are able to get your formmail working correctly, please change the following line in your script to make the script more secure:
Line 52: $DEBUGGING = 1;
Change to $DEBUGGING = 0;
Re-upload the script to your cgi-bin in ASCII (Text) mode. Make sure the permission is still set to 0755. |