67 lines
1.5 KiB
HTML
67 lines
1.5 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
|
|
<TITLE>Mail2News Mini-Howto: Setting up mail2news</TITLE>
|
|
<LINK HREF="Mail2News-5.html" REL=next>
|
|
<LINK HREF="Mail2News-3.html" REL=previous>
|
|
<LINK HREF="Mail2News.html#toc4" REL=contents>
|
|
</HEAD>
|
|
<BODY>
|
|
<A HREF="Mail2News-5.html">Next</A>
|
|
<A HREF="Mail2News-3.html">Previous</A>
|
|
<A HREF="Mail2News.html#toc4">Contents</A>
|
|
<HR>
|
|
<H2><A NAME="s4">4. Setting up mail2news</A></H2>
|
|
|
|
<P>Put the mail2news script in a suitable location. I favour
|
|
/usr/local/bin, but the location is up to you.
|
|
<P>
|
|
<P>You will need to edit script as follows:-
|
|
<P>
|
|
<UL>
|
|
<LI>At the top of the script, make sure you are pointing at the
|
|
local Perl binary. You can probably find out where Perl is by typing
|
|
'whereis perl' or 'which perl' at a command prompt. If you can't find
|
|
it, /usr/bin/perl is the safest bet:
|
|
|
|
<HR>
|
|
<PRE>
|
|
#!/usr/bin/perl
|
|
# point at the correct location of perl
|
|
</PRE>
|
|
<HR>
|
|
|
|
|
|
</LI>
|
|
<LI>Edit the following lines to point at the posting program (I use
|
|
rnews, inews will work too) and your news host:
|
|
|
|
<HR>
|
|
<PRE>
|
|
# $inews = "/usr/bin/inews";
|
|
# $iopts = "-h -o \"mail2news gateway\"";
|
|
$inews = "/usr/bin/rnews";
|
|
$iopts = "";
|
|
$postinghost = "your.news.server"; # points at your news server
|
|
</PRE>
|
|
<HR>
|
|
|
|
</LI>
|
|
<LI>Make sure that the script is exectuable:
|
|
|
|
<HR>
|
|
<PRE>
|
|
chmod 755 /usr/local/bin/mail2news
|
|
</PRE>
|
|
<HR>
|
|
</LI>
|
|
</UL>
|
|
<P>
|
|
<HR>
|
|
<A HREF="Mail2News-5.html">Next</A>
|
|
<A HREF="Mail2News-3.html">Previous</A>
|
|
<A HREF="Mail2News.html#toc4">Contents</A>
|
|
</BODY>
|
|
</HTML>
|