From owner-freebsd-questions@freebsd.org Mon Aug 31 11:30:06 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 30E049C7646 for ; Mon, 31 Aug 2015 11:30:06 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-io0-x234.google.com (mail-io0-x234.google.com [IPv6:2607:f8b0:4001:c06::234]) (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 EBEB4FC for ; Mon, 31 Aug 2015 11:30:05 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by iods203 with SMTP id s203so154298846iod.0 for ; Mon, 31 Aug 2015 04:30:05 -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:subject :content-type:content-transfer-encoding; bh=pojDJUG3jnngPYljFq1ibsNp97xqrgy3Coi83PHejN4=; b=QEFWYv+Z+fU+CyJ4Q6idJSasjuKvunPcmJeMQo7VjN8SMshL+PxbhfOYgBQ4AVwnfE sTH4WlLrM4Ud1wHpoYZ/yzvsHquNZPKedzO6AJZao7KbvPgbRlTp+eQTcXDZhC7f11R9 zSXgAlcBLI4OIe/DWCA75KMKF4tmDyIm1bbdmPcgkPEuKHc/IdmgNXol9WrDsn3Wtdz7 l90ePSG3Mawmhc7SO8VsWqRJNmzIPKijGLiM21FHl6gd5lMhur4aKUB0iyIndps3Z0kO cLw6l3Wsyl07wo/3/wa7kr5jb9r1aSNrCVWurWmrkvDdohPUXFwZ5qbtaEPAmTB47KDV jtJg== X-Received: by 10.107.162.9 with SMTP id l9mr23921434ioe.76.1441020605318; Mon, 31 Aug 2015 04:30:05 -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 j13sm10429509igf.6.2015.08.31.04.30.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 31 Aug 2015 04:30:04 -0700 (PDT) Message-ID: <55E43ABA.4090509@gmail.com> Date: Mon, 31 Aug 2015 07:30:02 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: freebsd-questions Subject: cron_flags="-m not working 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: Mon, 31 Aug 2015 11:30:06 -0000 The host has a user account called bob. I want all cron email to go to bob and not root. I use postfix and sendmail is disabled. man cron says -m mailto Overrides the default recipient for cron mail. Each crontab(5) without MAILTO explicitly set will send mail to the mailto mail‐ box. Sending mail will be disabled by default if mailto set to a null string, usually specified in a shell as '' or "". I interpret that to mean I add cron_flags="-m option to /etc/rc.conf like this: cron_flags="-m bob@mymail.com" and reboot the host. I tried cron_flags="-m bob" cron_flags="-m 'bob'" cron_flags="-m bob@mymail.com" cron_flags="-m 'bob@mymail.com'" In all cases the daily cron email still went to root. Any ideas why it did not work and no errors were generated?