From owner-freebsd-questions@FreeBSD.ORG Wed Feb 4 20:11:33 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DC882E78 for ; Wed, 4 Feb 2015 20:11:33 +0000 (UTC) Received: from posti.ihme.org (posti.ihme.org [217.112.252.54]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 61327E59 for ; Wed, 4 Feb 2015 20:11:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ihme.org; s=ihme; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=MVB219lAcOYL4QoGNwwMXqyV4y6DQEoh1FRhH3t+dG0=; b=IR/2msY5s0Sziz1kyh3P0Zki17zguA0qVtr0OZix9WZ/WRJ/hOjzKFcea2J25bR+Q8TscOliZ4fMLiKjeyI5MtIJi4JRC6midQTX2sSrIgloSxXI5jHD4AGBZSSA5BJzPGHvA5ulhRHpjkEqr3BJqBTmCTUT51vjjVvvXwjByEo=; Received: from dynamic-120-7.keskikaista.fi ([149.154.120.7] helo=[10.0.0.101]) by posti.ihme.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1YJ6AG-0000A9-3U; Wed, 04 Feb 2015 22:03:08 +0200 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Subject: Re: Removing useless info from daily mail From: =?windows-1252?Q?Markus_H=E4stbacka?= In-Reply-To: <54CF18C8.7000605@calorieking.com> Date: Wed, 4 Feb 2015 22:02:56 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5625d1cbdd8c77f70fb6515efdb5e587.squirrel@posti.ihme.org> <54CF18C8.7000605@calorieking.com> To: Gregory Orange X-Mailer: Apple Mail (2.1990.1) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2015 20:11:33 -0000 Hello!=20 The only thing I=92ve done is put this in my periodic.conf: daily_show_success=3DNO daily_show_info=3DNO daily_show_badconfig=3D"NO" weekly_show_success=3D"NO" weekly_show_info=3D"NO" weekly_show_badconfig=3D"NO" monthly_show_success=3D"NO" monthly_show_info=3D"NO" monthly_show_badconfig=3D"NO" # Include security jobs with daily email. No need to send second email. daily_status_security_inline=3D"NO" security_show_success=3D"NO" # Don't need to know about denied packets every day daily_status_security_ipfdenied_enable=3D"NO" ### Now, enable services which you DO want to be aware of # Check host for old ports daily_status_security_portaudit_enable=3D"YES" # Perform ZFS filesystem checks daily_status_zfs_enable=3D"YES" daily_status_security_ipfwdenied_enable=3D"NO" daily_status_security_ipfwlimit_enable=3D"NO" security_show_success=3D=93NO=94 You can also put in security_status_loginfail_enable=3D=93NO=94 if you = don=92t want to see failed sshd logins. To remove some message that you always get to your dmesg and don=92t = want to see in your mail you can edit = /etc/periodic/security/700.kernelmsg line 49 to look something like: dmesg 2>/dev/null | egrep -v 'arp: unknown hardware address = format=92 | This thing will remove "arp: unknown hardware address format=94 messages = from the daily mail, as an example. This has resolved most of my too much mail problems. Regards, Markus > On 02.02.2015, at 08:27:20, Gregory Orange = wrote: >=20 > Hi Markus, >=20 > On 07/01/15 15:31, "Markus H=E4stbacka" wrote: >> I've been trying to reduce the incoming mail from my servers daily = run. >>=20 >> I've managed to configure periodic.conf in a way that when there's = nothing >> wrong in the logs I get no mail. >=20 > Would you be willing to share your method? I'd like to substantially = reduce my incoming mail, and while I figure there are configurable = options to do so, I haven't yet put in the time to work them out. I'd be = grateful to harness your work and put it to good use on my systems. >=20 > Cheers, > Greg.