From owner-freebsd-questions@freebsd.org Fri Sep 11 20:59:30 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E8AF23E62C0 for ; Fri, 11 Sep 2020 20:59:30 +0000 (UTC) (envelope-from olivier.freebsd@free.fr) Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [212.27.42.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bp7RQ1Dq9z3cDd for ; Fri, 11 Sep 2020 20:59:29 +0000 (UTC) (envelope-from olivier.freebsd@free.fr) Received: from ravel.localnet (unknown [90.116.216.55]) (Authenticated sender: olivier.freebsd@free.fr) by smtp2-g21.free.fr (Postfix) with ESMTPSA id 4B41A2003AE for ; Fri, 11 Sep 2020 22:59:23 +0200 (CEST) From: Olivier Certner To: freebsd-questions@freebsd.org Subject: Re: How to silence cron? Date: Fri, 11 Sep 2020 22:59:23 +0200 Message-ID: <3151441.KMTXMz9Kuk@ravel> In-Reply-To: <20200911184417.GF91422@bastion.zyxst.net> References: <20200911184417.GF91422@bastion.zyxst.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4Bp7RQ1Dq9z3cDd X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of olivier.freebsd@free.fr has no SPF policy when checking 212.27.42.2) smtp.mailfrom=olivier.freebsd@free.fr X-Spamd-Result: default: False [5.54 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[212.27.42.2:from]; FREEMAIL_FROM(0.00)[free.fr]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[free.fr]; MIME_TRACE(0.00)[0:+]; CTE_CASE(0.50)[]; ASN(0.00)[asn:12322, ipnet:212.27.32.0/19, country:FR]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.86)[0.862]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.82)[0.821]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[free.fr]; NEURAL_SPAM_LONG(0.96)[0.958]; RCVD_IN_DNSWL_NONE(0.00)[212.27.42.2:from]; R_SPF_NA(0.00)[no SPF record]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2020 20:59:31 -0000 Hi, > I *think* you can set MAILTO: to /dev/null but I'm not 100% sure. But if you > can, I think it'll do what you want, if that is to have no mail at all for > www user. I've been using `MAILTO=""` in the system crontab for years, seems to work well (I just get spurious messages "mailed 1 byte of output but got status 0xffffffff" in logs, not sure if they are related). This didn't work with the old `atrun`, which was then fixed as a side-effect of integration into `cron` (by the way, the `atrun` manpage in 12 still does not reflect it). -- Olivier Certner