Mail2News Mini-Howto: Setting up mail2news

prev-3894408 next-3811094 toc-7708534

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).

prev-3894408 next-3811094 toc-7708534

READ  Linux Ext2fs Undeletion mini-HOWTO: Colophon