old-www/HOWTO/Mail2News-5.html

50 lines
1.4 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: Procmail</TITLE>
<LINK HREF="Mail2News-6.html" REL=next>
<LINK HREF="Mail2News-4.html" REL=previous>
<LINK HREF="Mail2News.html#toc5" REL=contents>
</HEAD>
<BODY>
<A HREF="Mail2News-6.html">Next</A>
<A HREF="Mail2News-4.html">Previous</A>
<A HREF="Mail2News.html#toc5">Contents</A>
<HR>
<H2><A NAME="s5">5. Procmail</A></H2>
<P>The procmail config file is at &nbsp;/.procmailrc. If you don't already
have a procmailrc file, just create one.
<P>
<P>Make an entry for each mailing list that is to be gated to your local
news server. Something like this will do the trick for most cases,
but might fail for mail Bcc'd to the mailing list.
<P>
<P>For example if your mailing list is 'jokes@netizen.com.au' and you
want the newsgroup to be called 'lists.jokes' your entry would look
like this:
<P>
<HR>
<PRE>
:0
* TOjokes@netizen.com.au
|/usr/local/bin/mail2news lists.jokes
</PRE>
<HR>
<P>
<P>Note there's no space between the 'TO' and the list address on the
second line.
<P>
<P>You need to put a blank line between the lines for each group. Put as
many entries as you want, using the same 3 lines for each group, but
changing the list address and newsgroup.
<P>
<P>
<HR>
<A HREF="Mail2News-6.html">Next</A>
<A HREF="Mail2News-4.html">Previous</A>
<A HREF="Mail2News.html#toc5">Contents</A>
</BODY>
</HTML>