From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 15:56:16 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4F941065696 for ; Thu, 9 Oct 2008 15:56:16 +0000 (UTC) (envelope-from corey@internationalservices.com) Received: from whasmtp-shoe.pas.sa.earthlink.net (whasmtp-shoe.pas.sa.earthlink.net [207.217.120.47]) by mx1.freebsd.org (Postfix) with ESMTP id B80248FC17 for ; Thu, 9 Oct 2008 15:56:16 +0000 (UTC) (envelope-from corey@internationalservices.com) Received: from [74.160.71.119] (helo=[192.168.10.100]) by whasmtp-shoe.pas.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1Knxs8-0000MZ-00; Thu, 09 Oct 2008 08:56:16 -0700 Message-ID: <48EE299B.6060306@internationalservices.com> Date: Thu, 09 Oct 2008 11:56:11 -0400 From: Corey Dulecki User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: glarkin@FreeBSD.org References: <48EE1A9E.7020406@internationalservices.com> <48EE2184.1030008@FreeBSD.org> In-Reply-To: <48EE2184.1030008@FreeBSD.org> X-ELNK-Trace: 668de43e3ffcab26ea4cdd44811d7ce750327050245a32664b0a5869f9765cf87aa221a2e07d8d2ecbdb57751ccc57f1350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 74.160.71.119 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions@freebsd.org, "Grammas, August" Subject: Re: daily/weekly/monthly periodic output 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: Thu, 09 Oct 2008 15:56:17 -0000 Thank you all for your very fast assistance! Greg Larkin wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Corey Dulecki wrote: > >> I have FreeBSD 6.2 running on IBM hardware, single CPU. This server >> does not have sendmail enabled at all, i.e., in /etc/rc.conf, all four >> of the "sendmail_xxx" enablers are set to "NO". Today, the /var >> filesystem ran out of inodes. >> >> I tracked the issue down to files that keep appearing in >> /var/spool/clientmqueue. I've researched enough to understand that >> these files represent emails that cannot be sent, presumably because I >> do not have a mail server running on the system. I do not want to >> enable sendmail or any other client; what I want to do is have the >> processes which generate these emails send their information to a log, >> which I will check manually. I believe these emails are being generated >> by the daily/weekly/monthly periodic processes, something that I didn't >> even know existed until I ran out of inodes. >> >> My question is this: How can I make it so that these periodic processes >> simply log their messages instead of sending emails that get stuck in >> clientmqueue? Alternatively, if I can't do that, how do I simply turn >> off these emails entirely so that they are not sent? >> > > Hi Corey, > > If you don't already have an /etc/periodic.conf file, create one with > the following entries: > > daily_output="/var/log/daily.log" # user or /file > daily_status_security_output="/var/log/daily.log" # user or /file > weekly_output="/var/log/weekly.log" # user or /file > monthly_output="/var/log/monthly.log" # user or /file > > All of the output from the periodic scripts will be redirected to those > files. You'll likely want to rotate those files regularly. I have the > following in my /etc/newsyslog.conf file: > > /var/log/daily.log 640 7 * @T00 JN > /var/log/monthly.log 640 12 * $M1D0 JN > /var/log/weekly.log 640 5 1 $W6D0 JN > > Regards, > Greg > - -- > Greg Larkin > > http://www.FreeBSD.org/ - The Power To Serve > http://www.sourcehosting.net/ - Ready. Set. Code. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFI7iGE0sRouByUApARAlgaAKCnyDbq5X4of+7s6MNgt0HI2GWqZQCgxBW/ > aL8nyZHG/qc7CAt+QCs6bH4= > =FvE1 > -----END PGP SIGNATURE----- > > > -- / /*/Corey Dulecki Vice President of Product Development /**@**In**ternationalServices **office*: 770.414.6000 /ext/ 707 *web*:www.InternationalServices.com ___________________________________________________________ This mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this mail in error) please notify the sender immediately and destroy this email. Any unauthorized copying, disclosure or distribution of the material in this email is strictly forbidden. ___________________________________________________________