From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 26 18:18:25 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47A87106564A; Thu, 26 Apr 2012 18:18:25 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9E8168FC0A; Thu, 26 Apr 2012 18:18:24 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so1634889bkc.13 for ; Thu, 26 Apr 2012 11:18:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:subject:date:in-reply-to:references:x-mailer; bh=s06/1feZdLzhDQFxmtzZGkESMdiNZTsuSeUuNt0eQPw=; b=ftLWgSbx0HudFGLwNf75YuaAsdryDmtjTuWpIgzulxNW5CCjnwXqKu0ipU4HekPiiD wjRzjd+bHxWulieJdh10f7fQERbnNU4Min+NQLoGT1sS3QF42cWQVdj4504FNbeW1MzV 3GxhBO9GGq3SBVb19Z49sZXy3neYsrz2RSQNdB05R4u1UpwFXfYY0hVmHpib6VE3i+Nj eywshsxYxoyyoXf6QFaBeu2jle8CoIMEfBabuvytyEgftAsbrO0OILdnMyvuAsm4BR7f Y/bSeDB61aqW1i+3qp1r9W6h9CGKXDhHSZEKdcir5mHr8UDxid338OHP0xZYnbQMNYbV EWOg== Received: by 10.205.129.4 with SMTP id hg4mr2892769bkc.16.1335464303697; Thu, 26 Apr 2012 11:18:23 -0700 (PDT) Received: from DOMYPC ([82.193.208.173]) by mx.google.com with ESMTPS id s16sm7228765bkt.3.2012.04.26.11.17.34 (version=SSLv3 cipher=OTHER); Thu, 26 Apr 2012 11:18:22 -0700 (PDT) Message-ID: <20120426.181745.913.5@DOMY-PC> From: rank1seeker@gmail.com To: "Jonathan McKeown" , "Greg Larkin" , hackers@freebsd.org Date: Thu, 26 Apr 2012 20:17:45 +0200 In-Reply-To: <201204260852.25101.j.mckeown@ru.ac.za> References: <20120425.180906.586.4@DOMY-PC> <4F9848D6.5040703@FreeBSD.org> <201204260852.25101.j.mckeown@ru.ac.za> X-Mailer: POP Peeper (3.8.1.0) Cc: Subject: Re: sendmail disabled, but 'service -e' lists it as enabled X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2012 18:18:25 -0000 ----- Original Message ----- From: Jonathan McKeown To: freebsd-hackers@freebsd.org Date: Thu, 26 Apr 2012 08:52:25 +0200 Subject: Re: sendmail disabled, but 'service -e' lists it as enabled > On Wednesday 25 April 2012 20:56:22 Greg Larkin wrote: > > On 4/25/12 2:09 PM, rank1seeker@gmail.com wrote: > > > # grep sendmail /etc/rc.conf sendmail_enable="NONE" # service -e | > > > grep sendmail /etc/rc.d/sendmail # ps -U root | grep sendmail > > > > /etc/rc.d/sendmail explicitly sets some variables to "NO" when > > sendmail_enable is "NONE". Unfortunately, the service script does not > > take that into account, so if you want it to report correctly, place > > these lines in /etc/rc.conf: > > > > sendmail_enable="NONE" > > sendmail_submit_enable="NO" > > sendmail_outbound_enable="NO" > > sendmail_msp_queue_enable="NO" > > And in fact man 8 rc.sendmail says (under sendmail_enable in the RC.CONF > VARIABLES section): > > The ``NONE'' option is deprecated and should not be used. It will be removed > in a future release. > > and later in the manpage: > > To completely prevent any sendmail(8) daemons from starting, you must set the > following variables in /etc/rc.conf: > > sendmail_enable="NO" > sendmail_submit_enable="NO" > sendmail_outbound_enable="NO" > sendmail_msp_queue_enable="NO" > > Jonathan I've thought NONE was a new, advanced form, which saves 4 lines of NO It ended up being deprecated one. Setting them all to NO, doesn't confuse 'service -e' anymore. Thx! Domagoj