From owner-freebsd-questions@FreeBSD.ORG Sat Apr 28 19:56:13 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0928716A402 for ; Sat, 28 Apr 2007 19:56:13 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mx1.freebsd.org (Postfix) with ESMTP id B737B13C44B for ; Sat, 28 Apr 2007 19:56:12 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so1098483pyh for ; Sat, 28 Apr 2007 12:56:12 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=qa73FHv5d1OQtxy9cGXd8kCcvq4SyCE1fTvthhQLx9rCwCwfIW/dZdpp4VjY8N/zHiHUrB8Q5YlMxuEjCco4L0Q3D3pbZ0Pjd3Acmjsw1xQ29eiJ/02XgoCtwKosJpaiGNE+FKziLjHinmpJfRO8l2WoTbcGsd+xv9+CAydQcM0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=rUCMJwxpDEodPqjjVEFbBSX/V22Gek0BDitpfYup6tek/40aySQ3zW5BNW8bUBvAVKAYimKLbPfEspaUXYo1uSA1u9OPXmz3BkhmfE4vJ5hcZmhi9DrTql2RTIfbwO9X7PwCn3I+Et4MyjUXIFzh2WThIdrtooSxDIwTcgdYmfU= Received: by 10.35.100.6 with SMTP id c6mr7894711pym.1177790172088; Sat, 28 Apr 2007 12:56:12 -0700 (PDT) Received: from ?192.168.1.4? ( [209.240.66.157]) by mx.google.com with ESMTP id a70sm4046251pye.2007.04.28.12.56.10; Sat, 28 Apr 2007 12:56:11 -0700 (PDT) In-Reply-To: <23ed14b80704250423n21d5eaa1hc78ce1262d710959@mail.gmail.com> References: <23ed14b80704250211l16756f5dkab26503c0f66e2a2@mail.gmail.com> <20070425095713.GA9767@nemesis.frida.mouhaha.de> <23ed14b80704250423n21d5eaa1hc78ce1262d710959@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <987BC865-AF4A-4324-B2EB-A16E00907847@gmail.com> Content-Transfer-Encoding: quoted-printable From: Eric Crist Date: Sat, 28 Apr 2007 14:56:08 -0500 To: =?ISO-8859-1?Q?Andreas_Wider=F8e_Andersen?= X-Mailer: Apple Mail (2.752.3) Cc: freebsd-questions Subject: Re: How do I forward old root emails from the root mailbox to my address? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2007 19:56:13 -0000 On Apr 25, 2007, at 6:23 AMApr 25, 2007, Andreas Wider=F8e Andersen = wrote: > On 4/25/07, Oliver Peter wrote: >> >> On Wed, Apr 25, 2007 at 11:11:07AM +0200, Andreas Widere Andersen =20 >> wrote: >> > Hi, >> > On one of my FreeBSD servers all system emails to root is stored =20= >> in the >> root >> > mailbox under /var/mail/root. I have updated my alias file so =20 >> new mail >> is >> > forwarded to one of my email adresses, but is there a simple way =20= >> for me >> to >> > send all these old mails in root's mailbox to my email address =20 >> without >> > logging in through pop3/imap? >> > >> > A command line trick would be perfect. >> >> mutt is your friend. >> >> Open the mbox file with >> # mutt -R -f /var/mail/root >> >> Then Tag all mails (press 'T' then enter '.') and bounce the tagged >> messages (press ';' and thenn 'b') to your personal email address. >> >> That's the easiest way I know. >> (Of course you need a running MTA, too) > > > Thanks for your reply. I don't have mutt installed and I was hoping =20= > for a > way of doing this without installing additional software. Also, I =20 > didn't > mention that on one of the machines there are probably a year of =20 > emails so > the box is quite large. > > Any other ways? I have sendmail installed and running. > > Cheers, > Andreas Andreas, Edit /etc/mail/aliases and uncomment the root: line and make it look =20 like: root: Where is the local account and/or email address you =20 want to recieve root email. Save the file, while in the /etc/mail directory, run 'make install && =20= make restart' as root, without the quotes. all email will now go to =20 the new address. Eric=