From owner-freebsd-questions Fri Mar 2 14:48:42 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by hub.freebsd.org (Postfix) with ESMTP id 8640037B71A for ; Fri, 2 Mar 2001 14:48:39 -0800 (PST) (envelope-from fscked@pacbell.net) Received: from pacbell.net ([63.204.133.122]) by mta5.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0G9L0007TD7EQW@mta5.snfc21.pbi.net> for freebsd-questions@FreeBSD.ORG; Fri, 2 Mar 2001 14:30:50 -0800 (PST) Date: Fri, 02 Mar 2001 14:44:00 -0800 From: richard childers Subject: Re: Forwarding a mail file To: James Housley Cc: "Riley J. McIntire" , FreeBSD Questions Message-id: <3AA02230.E41B174@pacbell.net> Organization: The Free State of Dis MIME-version: 1.0 X-Mailer: Mozilla 4.73 [en] (WinNT; U) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en References: <3A9FE718.8DF913C4@thehousleys.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG No, he needs to transfer the mail *spool*. I would use uuencode(1) combined with your file transfer protocol of choice. In this way, there is no danger that intervening MTAs (Mail Transfer Agents) will rewrite the headers or any lines starting with "^From". That is, once it has been uuencode'd, it can be mailed (size permitting) just like any other text message. Now, if the problem is that it's too *big*, well, then it's time for split(1); use split(1) on the output from uuencode(1) to separate the big file into smaller pieces, which can be reassembled at the other end, just like TCP, but much, much slower. (-: Hope this has been helpful, -- richard James Housley wrote: > "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. > > > > man 5 forward > > Jim > -- > /"\ ASCII Ribbon Campaign . > \ / - NO HTML/RTF in e-mail . > X - NO Word docs in e-mail . > / \ ----------------------------------------------------------------- > jeh@FreeBSD.org http://www.FreeBSD.org The Power to Serve > jim@TheHousleys.Net http://www.TheHousleys.net > --------------------------------------------------------------------- > Your mouse has moved. > Windows NT must be restarted for the change to take effect! > > Reboot now? [OK] > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Richard A. Childers Senor UNIX Administrator fscked@pacbell.net (email) 203.556.8471 (voice/msgs) # Providing administrative expertise (not 'damage control') since 1986. # PGP fingerprint: 7EFF 164A E878 7B04 8E9F 32B6 72C2 D8A2 582C 4AFA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message