The script requires configuration of two items before it will work:
#! /usr/local/bin/perl
at pair.com and many other sites, and usually this line will not need to be changed.
Note that at least perl version 5.004 is required. Earlier versions of perl will not work. You can check the version of perl by running /usr/local/bin/perl -v at the command line, and you need to ask your system administrator what the path for perl5 is.
use lib qw(/home/giles/mdforward-1.1/lib/perl5); # location of modules
The location of this directory is unimportant but it must match the location of the lib directory from the distribution.
In this version of mdforward it is assumed that the mdforward control directory is $HOME/.mdforward. If this is not the case you will need to edit some of the optional configuration items, documented in the script.
The script should now be installed. Check that there are no typos run /usr/local/bin/perl -wc mdforward. (If your perl isn't in /usr/local/bin specify the appropriate alternate path you used for the first line of the script instead.)
There will be some warnings like the following; these are normal (and unavoidable).
Statement unlikely to be reached at ../bin/mdforward line 402. (Maybe you meant system() when you said exec()?) Statement unlikely to be reached at ../bin/mdforward line 676. (Maybe you meant system() when you said exec()?)
If on the other hand you get something like the following, you are using perl4 and need to give the full pathname. See above.
"use" may clash with future reserved word at mdforward line 41. syntax error in file mdforward at line 41, next 2 tokens "use strict" "use" may clash with future reserved word at mdforward line 47. "my" may clash with future reserved word at mdforward line 55. "my" may clash with future reserved word at mdforward line 56. "my" may clash with future reserved word at mdforward line 57. ...
Now to configure mail forwarding and delivery.