From owner-freebsd-questions@FreeBSD.ORG Tue Sep 21 20:16:36 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 C35BF106566C for ; Tue, 21 Sep 2010 20:16:36 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 515D58FC0C for ; Tue, 21 Sep 2010 20:16:35 +0000 (UTC) Received: by fxm9 with SMTP id 9so2182691fxm.13 for ; Tue, 21 Sep 2010 13:16:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=ATwpx9XJ+Sg+8sn7/ZB2yrHoBUF03odnK0th3FLL7gU=; b=Ia8pZtmF0/Tu/iLjrDdB/1olRCzL30svOfRER98HLqeP0Pwqr15yzrGW2sXAestXP7 +8kicaz0lFiBapIndXqaEME7/U85YcpTBGj4SmaP4erzKnIejvhlGentKYu4mj1rgqSL us2rTeaLVc7OwYoxIbe8Za/FpGczAnfH+giSQ= 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 :cc:content-type; b=vtr2K6MpvsuWuLQjbmwEF9b4LtCYSXcWK/5SEfbGMwKTHPUc6W3LNwty59OFjxoguk 75ZKBaXalVAgxHmpK7w+gUBlqUDHG6uZ802Q7j4SPtjmKEHEGR9KqSFhYh2+TI62QEmu wxDTlYIrYH/3ZA/r83ob5XmDVK9OzXlBpuXMQ= MIME-Version: 1.0 Received: by 10.223.126.195 with SMTP id d3mr1949224fas.82.1285100195176; Tue, 21 Sep 2010 13:16:35 -0700 (PDT) Received: by 10.223.57.20 with HTTP; Tue, 21 Sep 2010 13:16:35 -0700 (PDT) In-Reply-To: References: Date: Tue, 21 Sep 2010 15:16:35 -0500 Message-ID: From: Adam Vande More To: Ed Flecko Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org 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: Tue, 21 Sep 2010 20:16:36 -0000 On Tue, Sep 21, 2010 at 2:56 PM, Ed Flecko wrote: > 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? > That's pretty silly article if you ask me, sendmail is setup to that by default. just add something like this to cron: uuencode /path/to/logfile logfile | mail -s "logfile" youremail@example.com -- Adam Vande More