From owner-freebsd-questions@freebsd.org Thu Aug 27 12:53:30 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C46259C3FAF for ; Thu, 27 Aug 2015 12:53:30 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 680F01F79 for ; Thu, 27 Aug 2015 12:53:30 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from zero-gravitas.local (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.2/8.15.2) with ESMTPSA id t7RCrOj7084151 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 27 Aug 2015 13:53:24 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=infracaninophile.co.uk DKIM-Filter: OpenDKIM Filter v2.10.3 smtp.infracaninophile.co.uk t7RCrOj7084151 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1440680004; bh=nUc1NTpxHyJy2CcW659bFtDZawzqzHbiA1S4VPehS/0=; h=Subject:To:References:From:Date:In-Reply-To; z=Subject:=20Re:=20how=20to=20change=20daily=20cron=20emails=20to=2 0go=20to=20user=20account=20instead=20of=0D=0A=20root|To:=20freebs d-questions@freebsd.org|References:=20<55DF057F.6040205@gmail.com> |From:=20Matthew=20Seaman=20|Date :=20Thu,=2027=20Aug=202015=2013:53:23=20+0100|In-Reply-To:=20<55DF 057F.6040205@gmail.com>; b=d1tXM/OqEiSaFDYbjQU3nZoiQYRQjDMH1TaJwr642tebSXGi/Vh/lAL0wrkKlrgHk ERWRykp9+v8cWucgg2jYOWGad5ibQnvzEG0AtPkPRnrRYfucCjyU0gKRE4GVmZU1T2 W2IH9GPdfDROWc0gt5JPEZMhrIlR2+7WYqGHi8Mc= X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be zero-gravitas.local Subject: Re: how to change daily cron emails to go to user account instead of root To: freebsd-questions@freebsd.org References: <55DF057F.6040205@gmail.com> From: Matthew Seaman Message-ID: <55DF0843.2010000@infracaninophile.co.uk> Date: Thu, 27 Aug 2015 13:53:23 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <55DF057F.6040205@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jNXwKgLNqrIBjTXuvqKMjxMiCpU5OBOaR" X-Virus-Scanned: clamav-milter 0.98.7 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2015 12:53:31 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jNXwKgLNqrIBjTXuvqKMjxMiCpU5OBOaR Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2015/08/27 13:41, Ernie Luzar wrote: > How do I change the daily cron emails to go to user account instead of > root? I don't want any cron email going to root any more. >=20 > man 5 crontab says the cron environment variable MAILTO =3D "account us= er > name" is way to change the cron email from the default of "root" to the= > "account user name" you want. >=20 > The part that is not clear is where do I place this MAILTO environment > variable? Do I edit /etc/crontab and pace it next to the PATH variable > or maybe in /etc/periodic.conf or /etc/csh.cshrc or /boot/loader.conf? Add: daily_output=3D"email@addr.ess" to /etc/periodic.conf Or you can give it a file name and it will write the output there -- /var/log/daily.log is recommended as it's already set up to be rotated by newsyslog(8) Matthew --jNXwKgLNqrIBjTXuvqKMjxMiCpU5OBOaR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJV3whDXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnJzkP/07cL/0ib2gd5+/AF8y3JCtX YQNjvAzrJR80JT/WDaqZahYCIBdlDtq0MdOzqw9b5YvYbVtatru0bluJ+b5hj8Su FACrQoEqdk82PzdIfD+c5T0Y3MX/x0ayj2F3VKpx5B353+vEpNrB5IMA2xddEHEN 6ofR8rEHuoEC3rh4buZPtGErUydrXQmPWYAafodo/B8s7o9b3WXbDoVK3vp6wTbH qlIVQ8883sPy66s3MtME2IW9lbIfGT0QsOp0H825p+RuXpAMg4oCi04K5qV6A3c5 YLuyHI4IQdnP7xyfNpfShmwl8uvQoZGKMiVS8N5/7JJV8jiWZFiCOru+tClEEsIL ThlOOBJUcrpKsaLZtLZDXpGSG7AlupRuATSrh+HHKjD+HsD6OLv2B3cKP4l9fr+/ dv6pL5EtCQlUBO8rV4VBhzRK11JE7CiS9OwCjImjXX6vOqXuqH8OUgaYMUFCQNof udvSRdTwQC63u/X0OUNJ6c0Hq8xLKRIwUAkOBr7COr3qtJTqlffdwL1NNItRJIGt Hq4/4zHGpd0fTsvQoNPw4l2/dDCFTHD1yqLMx+rJuGcvKm5gi6sYbpZnf/br6/SP lrBODx/xQ+vQ0HlxRaQodbotwGJ8piPrLSI8SV2ZQtAqkMLtbWVBYIl/WXi6/XSs HkZ3Reno6dPxJVKkT4Iq =oJII -----END PGP SIGNATURE----- --jNXwKgLNqrIBjTXuvqKMjxMiCpU5OBOaR--