Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jan 1999 21:41:20 +0100
From:      Ollivier Robert <roberto@keltia.freenix.fr>
To:        freebsd-current <freebsd-current@FreeBSD.ORG>
Subject:   Re: sendmail throughput (was: HEADS UP: Postfix is coming. new  uid,gid required.)
Message-ID:  <19990104214120.A29542@keltia.freenix.fr>
In-Reply-To: <36905506.1B4F3BDC@houabg.com>; from David W. Chapman Jr. on Sun, Jan 03, 1999 at 11:43:34PM -0600
References:  <Pine.BSF.4.05.9901040134570.417-100000@thelab.hub.org> <36905506.1B4F3BDC@houabg.com>

next in thread | previous in thread | raw e-mail | index | archive | help
According to David W. Chapman Jr.:
> I personally would like this so I could just ignore people flaming me.
> But really, I have to check my email every 2 hours or it fills up.  I
> would like a news server.

Just install a news server and mail2news software. That's very easy. Here
is the Perl script I wrote to do just this. Create the groups as moderated
ones before.

You can subscribe either with a special alias or use <login>+<list> as
address.

With this alias in /etc/{mail,postfix}/aliases (if you choose to use
separate aliases for each list):
-=-=-
# News::Gateway support
#
freebsd-test:   "|/build/perl/mail2news/freebsd-list freebsd.test"
lists:  roberto
-=-=-

moderators              (that way, followups go to the lists)
-=-=-
freebsd.*:%s@freebsd.org
-=-=-

freebsd-list
-=-=-
#! /usr/local/bin/perl -w
#-*-Perl-*-
# mail2news for the FreeBSD lists
#
# Based on News::Gateway
#
# $Id$
#

require 5.004;

use News::Gateway;

my $gateway = new News::Gateway 1, 'lists-owner@REPLACE.WITH.YOUR.HOST';

$gateway->modules ('newsgroups',
                   'headers', 
                    mailtonews => [$ARGV[0] || 'freebsd.test'],
                   'cleanbody');

$gateway->config_file (\*DATA);
$gateway->read (\*STDIN);

my $error = $gateway->apply ();
if ($error) { $gateway->error ($error) }

$error = $gateway->post ();
if ($error) { $gateway->error ($error) }

__END__
header  comment        replace $n $v
header  approved       replace lists-owner@REPLACE.WITH.YOUR.HOST
header  cc             drop
header  content-length drop
header  delivered-to   drop
header  path           drop
header  return-path    drop
header  sender         drop
header  status         drop
header  to             drop
header  date           rename
group   freebsd.announce   /(freebsd-|)announce\@freebsd/
group   freebsd.bugs       /(freebsd-|)bugs\@freebsd/
group   freebsd.chat       /(freebsd-|)chat\@freebsd/
group   freebsd.config     /(freebsd-|)config\@freebsd/
group   freebsd.current    /(freebsd-|)current\@freebsd/
group   freebsd.cvs        /(freebsd-|)cvs\@freebsd/
group   freebsd.doc        /(freebsd-|)doc\@freebsd/
group   freebsd.fs         /(freebsd-|)fs\@freebsd/
group   freebsd.hackers    /(freebsd-|)hackers\@freebsd/
group   freebsd.hardware   /(freebsd-|)hardware\@freebsd/
group   freebsd.hubs       /(freebsd-|)hubs\@freebsd/
group   freebsd.mobile     /(freebsd-|)mobile\@freebsd/
group   freebsd.net        /(freebsd-|)net\@freebsd/
group   freebsd.ports      /(freebsd-|)ports\@freebsd/
group   freebsd.scsi       /(freebsd-|)scsi\@freebsd/
group   freebsd.security   /(freebsd-|)security\@freebsd/
group   freebsd.smp        /(freebsd-|)smp\@freebsd/
-=-=-
 
-- 
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr
FreeBSD keltia.freenix.fr 3.0-CURRENT #67: Tue Dec 29 20:24:02 CET 1998


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990104214120.A29542>