From owner-freebsd-questions Wed Nov 19 23:00:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA15313 for questions-outgoing; Wed, 19 Nov 1997 23:00:04 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from ha1.rdc1.nj.home.com (siteadm@ha1.rdc1.nj.home.com [24.3.128.66]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA15308 for ; Wed, 19 Nov 1997 23:00:02 -0800 (PST) (envelope-from luomat@luomat.peak.org) Received: from luomat.peak.org ([24.2.83.40]) by ha1.rdc1.nj.home.com (Netscape Mail Server v2.02) with ESMTP id AAA5339; Wed, 19 Nov 1997 23:00:00 -0800 Received: (from luomat@localhost) by luomat.peak.org (8.8.5/8.8.7) id BAA14320; Thu, 20 Nov 1997 01:59:59 -0500 (EST) Message-Id: <199711200659.BAA14320@luomat.peak.org> Content-Type: text/plain MIME-Version: 1.0 (NeXT Mail 4.1mach v148) X-Image-URL: http://www.peak.org/~luomat/next/luomat@peak.org.tiff In-Reply-To: <3473D55F.74B4C654@cableinet.co.uk> X-Nextstep-Mailer: Mail 4.1mach (Enhance 2.0b6.5) Received: by NeXT.Mailer (1.148.RR) From: Timothy J Luoma Date: Thu, 20 Nov 97 01:59:57 -0500 To: John Hanton Subject: Re: .forward splitting? cc: freebsd-questions@FreeBSD.ORG References: <3473D55F.74B4C654@cableinet.co.uk> X-Image-URL-Disclaimer: hey, it's off my student ID, gimme a break ;-) Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Author: John Hanton Original-Date: Thu, 20 Nov 1997 06:14:55 +0000 Message-ID: <3473D55F.74B4C654@cableinet.co.uk> > e.g. Our domain is ukswc.org and the members of staff are > seastorm@ukswc.org, pistol@ukswc.org and pilsner@ukswc.org > I want the seastorm one to go go my account, seastorm@cableinet.co.uk, > the pistol one to go to pistol@clara.net > and the pilsner one to go to jcise@enterprise.net. Use procmail. Set up a .forward that looks like this: "|IFS=' '&&p=/usr/local/bin/procmail&&test -x $n&&exec $p -Yf-||exit 75 #silverthorn" NOTE: that must be ONE LONG LINE. NO EOL/CRs! Make sure to point it to your procmail path. Change 'silverthorn' to whatever your email name is on that machine Then make a .procmailrc like this SHELL=/bin/sh PATH=your:path:here LOGFILE=$HOME/.procmail.log MAILDIR=$HOME/mail # THIS BETTER EXIST! # Catch mail loops ! :0: * ^X-Loop: silverthorn@cableinet\.co\.uk IN.mailloop # add a header we can check to try and prevent mail loops :0fhw | formail -I"X-Loop: silverthorn@cableinet.co.uk" :0 * ^TOseastorm@ukswc\.org ! seastorm@cableinet.co.uk :0 * ^TOpistol@ukswc\.org ! pistol@clara.net :0 * ^TOpilsner@ukswc\.org ! jcise@enterprise.net There's a very good procmail mailing list. Type 'procmail -v' at the commandline for the subscribe address... Using procmail I can subscribe to 14 of the FreeBSD mailing lists and they all go into their own folders (with only a 10 line procmail recipe too!) TjL