CCL Home Page
Up Directory CCL Mail2News-4.html
Mail2News Mini-Howto: Setting up mail2news Previous Next Contents

4. Setting up mail2news

Put the mail2news.pl script in a suitable location. I favour /usr/local/scripts, but the location is up to you.

You will need to edit script as follows:-

  • At the top of the script, make sure you are pointing at the local Perl binary
    #!/usr/bin/perl
    # point at the correct location of perl
    

  • I had problems with the three following lines. Commenting them out does not cause a problem.
    ( $version  ) = $] =~ /(\d+\.\d+).*\nPatch level/;
    die "$program: requires at least version 3 of perl\n"
            if $version < 3;
    

  • Edit the following lines to point at the posting program (I use rnews) and you news host:-
    # $inews = "/usr/bin/inews";
    # $iopts = "-h -o \"mail2news gateway\"";
    $inews = "/usr/bin/rnews";
    $iopts = "";
    $postinghost = "your.news.server";   # points at your news server
    

  • Make sure that the script is exectuable (mode 755).


Previous Next Contents
Modified: Wed Dec 23 18:09:00 1998 GMT
Page accessed 6585 times since Sat Apr 17 21:24:51 1999 GMT