From owner-freebsd-questions@FreeBSD.ORG Sat Feb 19 21:40:00 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D76191065673 for ; Sat, 19 Feb 2011 21:40:00 +0000 (UTC) (envelope-from wodfer@gmail.com) Received: from mail-gw0-f44.google.com (mail-gw0-f44.google.com [74.125.83.44]) by mx1.freebsd.org (Postfix) with ESMTP id 8126A8FC1A for ; Sat, 19 Feb 2011 21:40:00 +0000 (UTC) Received: by gwb20 with SMTP id 20so2452193gwb.17 for ; Sat, 19 Feb 2011 13:39:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=Drh6pyPzq83oKnjqeBb4Jw/52yB0sK2JA8R/9BiGeTc=; b=YoPQZ/t6HXA0zrNqdiuID1FVcUtHX353hLueOoY3Xj3DdjxLHU65lrjyWUa7kq732r NRIWSsHL1ck+AQ+GBpZWLgBoS+uI6RVf2T52j/YFDJ7vQfvWPw0vAH/jAH98VP/0Iv4g EWuLvMtacpxQumlHcc95Nk43zLQtj7kDHD+20= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=rzrL1pi58a7z0RIfjgQzoe15HpsiVhRYycyA0aX8Y0H+UP4fbRb0nd/38iJedZ9frZ khPbWsPAIR/aC+PSTjXqIQVSTix+jqCWha2JNmFtO6YmnlhkuMYsWVVG95Ei4IRM7OVB RpfGVbRFjrCT78xOJtNCkyxXS6TOdom6BtnAY= MIME-Version: 1.0 Received: by 10.90.89.14 with SMTP id m14mr3052658agb.134.1298151599464; Sat, 19 Feb 2011 13:39:59 -0800 (PST) Received: by 10.90.103.13 with HTTP; Sat, 19 Feb 2011 13:39:59 -0800 (PST) In-Reply-To: <1837CB358903EB8C60F348FA@mac-pro.magehandbook.com> References: <1837CB358903EB8C60F348FA@mac-pro.magehandbook.com> Date: Sat, 19 Feb 2011 22:39:59 +0100 Message-ID: From: Andy Wodfer To: freebsd-questions Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: How to forward old root mails to an external email 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, 19 Feb 2011 21:40:00 -0000 On Sat, Feb 19, 2011 at 10:24 PM, Daniel Staal wrote: > --As of February 19, 2011 9:33:26 PM +0100, Andy Wodfer is alleged to have > said: > > 'm running FreeBSD 8.0 Release on this particular server and I have a >> rather large root mailbox under /var/mail/root. >> >> I have set up an alias under /etc/aliases for new emails, but I need to >> forward all the old emails in this mailbox to an external email address. >> >> How can I do that? >> > > --As for the rest, it is mine. > > Easiest way I know of is to set up a procmail rule to forward everything to > the external address, then feed the old mailbox to procmail via formail. > > ===== .procmailrc: > :0 > ! new@example.com > > ==== Command line: > cat /var/mail/root | formail -s procmail > Hi Daniel and thanks for your reply! I already tried something similare, but I keep getting command not found for formail. I was hoping there was a way of doing this without installing additional software - just use what comes with a default FreeBSD installation. Cheers, Andreas