From owner-freebsd-questions@FreeBSD.ORG Wed Sep 22 01:23:29 2010 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 B31F81065698 for ; Wed, 22 Sep 2010 01:23:29 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (ns2.r-bonomi.com [204.87.227.129]) by mx1.freebsd.org (Postfix) with ESMTP id 6ECF78FC1D for ; Wed, 22 Sep 2010 01:23:29 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.3/rdb1) id o8M1LWYH024727; Tue, 21 Sep 2010 20:21:32 -0500 (CDT) Date: Tue, 21 Sep 2010 20:21:32 -0500 (CDT) From: Robert Bonomi Message-ID: <201009220121.o8M1LWYH024727@mail.r-bonomi.com> To: edflecko@gmail.com, freebsd-questions@freebsd.org Cc: Subject: Re: Software to SEND log files only? 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: Wed, 22 Sep 2010 01:23:30 -0000 > Date: Tue, 21 Sep 2010 12:56:13 -0700 > From: Ed Flecko > To: freebsd-questions@freebsd.org > Subject: Software to SEND log files only? > > According to the FreeBSD website > (http://www.freebsd.org/doc/handbook/outgoing-only.html), the easiest > way to send mail only is to install the mail/ssmtp port. > > Does anyone have an example of a script or other method (maybe a cron > script?) that would e-mail my log files to me daily? > 'mailing a file' is as simple as "mail -s {subject} {addressee}