MailSerf Installation Guide

[ Requirements | Configuration ]


Requirements

This list describes what needs to be present for MailSerf to run.

Configuration

After downloading MailSerf, here are the steps to take to tailor it to your local system.
  1. Edit the very first line of the script, changing the interpreter from #!/usr/bin/perl to the appropriate name for your local perl interpreter.

    So, for example, if you have perl installed in /usr/local/bin, you would change the first line to read #!/usr/local/bin/perl.

  2. Find the line in the file that defines $sendmail. Change the definition to the location of sendmail on your local system.

    So, if the default line reads

    $sendmail = "/usr/lib/sendmail";

    and you have sendmail installed in /usr/sbin/sendmail, then change the line to read

    $sendmail = "/usr/sbin/sendmail";

  3. Find the line in the file that defines $referer_pat. On that line, change the IP address in between parentheses to that of the host that mailserf will be used from. If there is more than one host that you want to allow to use mailserf, include each address, separating each with the pipe character ('|').

    If, for example, the line originally looks like this:

    $referer_pat = '^(207.114.188.170)$';

    and you want forms on 199.74.141.1 to be able to call mailserf, then change the line to look like this:

    $referer_pat = '^(199.74.141.1)$';

    If you want 199.74.141.1 and 207.114.190.1 to be able to use the same installation of mailserf, then change the line to look like this:

    $referer_pat = '^(199.74.141.1|207.114.190.1)$';

    If you want all hosts in the 199.74.141 domain to be able to use the same installation of mailserf, then make the line look like this:

    $referer_pat = '^(199.74.141.\d+)$';

    Note that you can substitute any octet (a number separated by the dots) for \d+ to allow any number to match that part of the address.


Return to the MailSerf home page