From owner-freebsd-questions@freebsd.org Tue Sep 1 12:33:56 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 422469C670F for ; Tue, 1 Sep 2015 12:33:56 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 08E0E1025 for ; Tue, 1 Sep 2015 12:33:56 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by iog7 with SMTP id 7so69642832iog.2 for ; Tue, 01 Sep 2015 05:33:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=nMX8xF/ze0Pcq31yYhryS3zi2SA5bYb4fJzqkYUSOJc=; b=Q9xMc+vlA5aW6OR6PZ4rM6g54stRlEyxZEDQSMO+AZRuqCjPKfo3u3aMBCfG2hgUgT 2rsZP0DUIufJ+GyFsSs3SY3j0FHRGDmuCt9GtmiEqFJSM6NwmllgcnZskm5gKr2sxVSG aV4szSwQEkw8GcdyhlTuUxeQ0ZQBycqSIn4CCvczZX2nqywK6pRJP3Aeki8wAowoToEL W3LZpSfqXU4wVH7EU6vFefEMwBehaMnm+H3PER12Ek7fUb9ZC9O0bQRNXx+E5VbI/uXb d7oxmX/CEL/07nxRxOokK1E9khyPoYFk/kFPaouSdJ2gnx3zq5xkHa3ZCJA3dY9K+AUA Y3YQ== X-Received: by 10.107.39.142 with SMTP id n136mr21927063ion.193.1441110834862; Tue, 01 Sep 2015 05:33:54 -0700 (PDT) Received: from [10.0.10.5] (cpe-76-190-244-6.neo.res.rr.com. [76.190.244.6]) by smtp.googlemail.com with ESMTPSA id x23sm7305175ioi.41.2015.09.01.05.33.53 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Sep 2015 05:33:54 -0700 (PDT) Message-ID: <55E59B36.1050606@gmail.com> Date: Tue, 01 Sep 2015 08:33:58 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: =?UTF-8?B?0KDRg9GB0LvQsNC9INCR0YPRgNGF0LDQvdC+0LI=?= CC: freebsd-questions Subject: Re: how to change daily cron emails to go to user account instead of root References: <55DF057F.6040205@gmail.com> <55DF0C75.5000907@qeng-ho.org> <55DF0DB3.3040400@qeng-ho.org> <55E2F727.2040804@gmail.com> <55E2FDFA.7090301@qeng-ho.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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: Tue, 01 Sep 2015 12:33:56 -0000 Руслан Бурханов wrote: > Ernie, look: > > Open you rc.conf, copy string and modify flags for cron daemon: > > cron_flags="-j 60 -m 'YOU@MAIL'" > > Then, restart cron daemon (it is not necessary reboot system): > > /etc/rc.d/cron restart > > Then take a look on cron process: > > ps auxww | grep cron > > If you doing all okey, it will be something like: > > root 561 0.0 0.1 7984 1528 ?? Is 3:16PM 0:00.01 > /usr/sbin/cron -j 60 -m YOU@MAIL -s > Thank you Руслан Бурханов for the informative reply. I did as you said and still the cron email went to root.instead of to bob. I edited rc.conf and added this cron_flags="-m 'bob@mydomain'" followed by "service cron restart" console command. ps auxww console command showed root 1953 0,0 0.2 10184 1940 - Is 1:05PM 0:00.30 /usr/sbin/cron -m bob@mydomain -s I am running version 10.2 on the host. In the /var/log/maillog file I can see postfix messages showing root receiving the emails. rc.conf hostname= option value is the same as the mydomain value in the cron_flags= option. Looks and acts like cron is not processing the over ride destination at daily cron security check time. Other than this problem of over ridding the cron email destination every thing seems to be working as one would expect. Is this enough to declare this a bug and submit a bug report? Can you suggest other tests I can do to help debug this problem? Thanks Ernie