From owner-freebsd-isp Sat Aug 28 19: 8:16 1999 Delivered-To: freebsd-isp@freebsd.org Received: from enya.clari.net.au (enya.clari.net.au [203.8.14.116]) by hub.freebsd.org (Postfix) with ESMTP id 60E5714EEC for ; Sat, 28 Aug 1999 19:08:10 -0700 (PDT) (envelope-from danny@freebsd.org) Received: from localhost (danny@localhost) by enya.clari.net.au (8.9.2/8.9.1) with ESMTP id MAA50182; Sun, 29 Aug 1999 12:07:04 +1000 (EST) (envelope-from danny@freebsd.org) X-Authentication-Warning: enya.clari.net.au: danny owned process doing -bs Date: Sun, 29 Aug 1999 12:07:04 +1000 (EST) From: "Daniel O'Callaghan" X-Sender: danny@enya.clari.net.au To: Richard Uren Cc: freebsd-isp@freebsd.org Subject: Re: Offtopic mail question. In-Reply-To: <000501bef1b7$ff701fc0$e4f08fcb@thehub.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi Richard, A while ago I did a similar thing, although my error was to feed all mail to *.com.au to a downstream uucp node :-) That was fun to undo... What you'll need to do is split the mailbox you have into individual messages, using a perl script or some such to split on the 'From ' lines at the start of each message. Once upon a time I hacked the 'from' command to do just that, but I'm not sure where I put the patches. When you have your separated messages, feed them into '/usr/sbin/sendmail -T', one by one. It probably won't handle every message properly, especially people who mail to a list and set the To: line to be themselves - you'll just send the message back to the sender. Messages which have mailling lists in the To: line will be sent back to the mailling list, which is also undesirable. You might be able to do additional processing of the messages yourself to work out which ones are safe to send automatically, by checking to see if the sender or recipient is local to you. Cheers, Danny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message