From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 15:21:43 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 8A9041065695 for ; Thu, 9 Oct 2008 15:21:43 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id 66FB78FC1B for ; Thu, 9 Oct 2008 15:21:43 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from 68-189-244-97.dhcp.oxfr.ma.charter.com ([68.189.244.97] helo=Gregory-Larkins-Computer.local) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KnxKe-000Jrp-Vb; Thu, 09 Oct 2008 11:21:42 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by Gregory-Larkins-Computer.local (Postfix) with ESMTP id BF82525D8FB6; Thu, 9 Oct 2008 11:21:39 -0400 (EDT) Message-ID: <48EE2184.1030008@FreeBSD.org> Date: Thu, 09 Oct 2008 11:21:40 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Corey Dulecki References: <48EE1A9E.7020406@internationalservices.com> In-Reply-To: <48EE1A9E.7020406@internationalservices.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.3 (-) 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 Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2008 15:21:43 -0000 -----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-----