From owner-freebsd-current Mon Jan 4 14:05:17 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA11581 for freebsd-current-outgoing; Mon, 4 Jan 1999 14:05:17 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA11553 for ; Mon, 4 Jan 1999 14:05:02 -0800 (PST) (envelope-from roberto@keltia.freenix.fr) Received: (from uucp@localhost) by frmug.org (8.9.1/frmug-2.3/nospam) with UUCP id XAA24612 for freebsd-current@FreeBSD.ORG; Mon, 4 Jan 1999 23:04:12 +0100 (CET) (envelope-from roberto@keltia.freenix.fr) Received: by keltia.freenix.fr (Postfix, from userid 101) id DC56B155A; Mon, 4 Jan 1999 21:41:20 +0100 (CET) Date: Mon, 4 Jan 1999 21:41:20 +0100 From: Ollivier Robert To: freebsd-current Subject: Re: sendmail throughput (was: HEADS UP: Postfix is coming. new uid,gid required.) Message-ID: <19990104214120.A29542@keltia.freenix.fr> Mail-Followup-To: freebsd-current References: <36905506.1B4F3BDC@houabg.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <36905506.1B4F3BDC@houabg.com>; from David W. Chapman Jr. on Sun, Jan 03, 1999 at 11:43:34PM -0600 X-Operating-System: FreeBSD 3.0-CURRENT/ELF ctm#4931 AMD-K6 MMX @ 200 MHz Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 + 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