From owner-freebsd-questions@FreeBSD.ORG Tue Feb 22 15:21:45 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 99D5D106566B for ; Tue, 22 Feb 2011 15:21:45 +0000 (UTC) (envelope-from paul+fbsd@it.ca) Received: from mail.it.ca (mail.it.ca [216.235.7.67]) by mx1.freebsd.org (Postfix) with ESMTP id 2FF258FC1C for ; Tue, 22 Feb 2011 15:21:45 +0000 (UTC) Received: from mail.it.ca (paul@mail [216.235.7.67]) by mail.it.ca (8.13.3/8.13.3) with ESMTP id p1MEuhkH072562; Tue, 22 Feb 2011 09:56:44 -0500 (EST) (envelope-from paul+fbsd@it.ca) DomainKey-Signature: a=rsa-sha1; s=a; d=it.ca; c=nofws; q=dns; h=received:x-authentication-warning:date:from:to:cc:subject: message-id:reply-to:references:mime-version:content-type: content-disposition:in-reply-to:user-agent; b=dddGbAVs7YIYTw5kMf58YKp9FMjDg0RCwaT13SyTmphSX8jwj5YJTcE/cZOgiL36k yqW7yKi8qXoR2B2nCDhZVRIq7yga1imvwAixUEid5Hg70IrGYPPwGHlG5nhyhWJ Received: (from paul@localhost) by mail.it.ca (8.13.3/8.13.3/Submit) id p1MEuhEQ072561; Tue, 22 Feb 2011 09:56:43 -0500 (EST) (envelope-from paul+fbsd@it.ca) X-Authentication-Warning: mail.it.ca: paul set sender to paul+fbsd@it.ca using -f Date: Tue, 22 Feb 2011 09:56:43 -0500 From: Paul Chvostek To: Andy Wodfer Message-ID: <20110222145643.GA81045@it.ca> References: <1837CB358903EB8C60F348FA@mac-pro.magehandbook.com> <20110219221442.39aacc81@gumby.homeunix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.12-2006-07-14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (mail.it.ca [216.235.7.67]); Tue, 22 Feb 2011 09:56:44 -0500 (EST) Cc: freebsd-questions@freebsd.org 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 Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2011 15:21:45 -0000 On Sat, Feb 19, 2011 at 11:39:38PM +0100, Andy Wodfer wrote: > On Sat, Feb 19, 2011 at 11:14 PM, RW wrote: > > On Sat, 19 Feb 2011 22:39:59 +0100 > > Andy Wodfer wrote: > > > > > 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. > > > > formail is installed as part of the procmail package. Check for typos > > and that PATH is set correctly. > > > > Cool. Procmail is now installed, but the procmail.rc file, should that be > placed under root's home folder ie /root/procmail.rc or another user? I > assume root since Daniel's command doesn't specify any users? If you're not planning to use procmail to deliver your mail, you don't need to worry about a procmailrc file. The reason to install procmail was to get "formail", which does not use the procmailrc file. > That would mean I'm logged in as root, run the command, formail sends all > mails to procmail which sees the alias in procmail rc and sends the mails > out? Correct? You could do it that way, but it requires more setup. This is easier: # formail -s sendmail you@example.com < /var/mail/root p -- Paul Chvostek