From owner-freebsd-questions Fri Mar 2 11:23:35 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ssc.wisc.edu (charles.ssc.wisc.edu [144.92.190.84]) by hub.freebsd.org (Postfix) with ESMTP id ABC7537B718 for ; Fri, 2 Mar 2001 11:23:32 -0800 (PST) (envelope-from dbongert@ssc.wisc.edu) Received: from copland.ssc.wisc.edu (copland.ssc.wisc.edu [144.92.190.86]) by ssc.wisc.edu (8.9.3/8.9.1) with ESMTP id NAA26176 for ; Fri, 2 Mar 2001 13:22:52 -0600 (CST) Received: (from dbongert@localhost) by copland.ssc.wisc.edu (8.11.0/8.9.1) id f22JOsG87684 for freebsd-questions@freebsd.org; Fri, 2 Mar 2001 13:24:54 -0600 (CST) Message-ID: X-Mailer: XFMail 1.4.6-3 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Fri, 02 Mar 2001 13:24:53 -0600 (CST) From: Dan Bongert To: freebsd-questions@freebsd.org Subject: RE: Forwarding a mail file Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG There's a program called formail, which I believe is a part of the procmail port, that does exactly this: cat /var/mail/user | formail -s /usr/sbin/sendmail newadddress@newisp.com Formail splits the mail spool into it's component messages, and then sendmail resends them. On 02-Mar-2001 Riley J. McIntire wrote: > Greetings: > > I have need to forward a users mail file, /var/mail/user, to another > address. Is there a simple way to do this? I've looked at /usr/bin/mail > and sendmail but can't seem to find how. > > Thanks, -- Dan Bongert <*> dbongert@facstaff.wisc.edu <*> SSCC Unix System Administrator My favourite was some time ago, and involved a female customer thanking "Mr. Daemon" for his effort trying to deliver her mail, and offering him a "good time" if he ever visited Sydney. - Matt McLeod To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message