Date: Wed, 4 Sep 2013 06:02:58 GMT From: Karl Pielorz <kpielorz@tdx.co.uk> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/181795: Periodic daily/500.queuerun doesn't check 'sendmail_enable' in rc.conf Message-ID: <201309040602.r8462w6Q029608@oldred.freebsd.org> Resent-Message-ID: <201309040610.r846A1br071542@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 181795 >Category: misc >Synopsis: Periodic daily/500.queuerun doesn't check 'sendmail_enable' in rc.conf >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 04 06:10:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Karl Pielorz >Release: 9.2-BETA2 amd64 >Organization: >Environment: FreeBSD somehost.somedomain.com 9.2-BETA2 FreeBSD 9.2-BETA2 #0 r253951M: Mon Aug 12 09:39:57 BST 2013 kpielorz@somehost.somedomain.com:/sys/amd64/compile/GENERIC amd64 >Description: The periodic script '/etc/periodic/daily/500.queuerun' doesn't check any values from '/etc/rc.conf'. e.g. If in '/etc/rc.conf' you set 'sendmail_enable="NONE"' - 500.queuerun will still blindly fire up sendmail to do the 'daily queue run' by default, even if your system isn't using sendmail - or worse, even if you have set 'sendmail_enable="NONE"' - and have a very large queue of mail on there, 'on hold' - having not started any sendmail queue runners. 500.queuerun will start a queue runner for you - regardless when it runs, thus draining the queues over night (which is not what you'd expect if 'sendmail_enable="NONE"' is set?) The script does check for the presence of a sendmail executable - but not if the system has sendmail effectively 'disabled'. >How-To-Repeat: Set '/etc/rc.conf' so 'sendmail_enable="NONE"' - make sure no sendmail queue runner is running, and put a lot of mail on the host. When 500.queuerun runs, it will dequeue all the mail - even though rc.conf has 'sendmail_enable="NONE"'. >Fix: Make '/etc/periodic/daily/500.queurun' check/honour the value of 'sendmail_enable' in /etc/rc.conf. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309040602.r8462w6Q029608>