From owner-freebsd-bugs Tue Jul 2 14:27: 5 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 055C237BF1C for ; Tue, 2 Jul 2002 14:20:10 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A51943E3B for ; Tue, 2 Jul 2002 14:20:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g62LK8JU004918 for ; Tue, 2 Jul 2002 14:20:08 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g62LK8bK004917; Tue, 2 Jul 2002 14:20:08 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 008A337C5E9 for ; Tue, 2 Jul 2002 14:13:17 -0700 (PDT) Received: from core.zp.ua (core.zp.ua [193.108.112.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id B161844BD2 for ; Tue, 2 Jul 2002 13:04:41 -0700 (PDT) (envelope-from oleg@core.zp.ua) Received: from core.zp.ua (oleg@localhost [127.0.0.1]) by core.zp.ua with ESMTP id g62K4SSa078969 for ; Tue, 2 Jul 2002 23:04:28 +0300 (EEST) (envelope-from oleg@core.zp.ua) Received: (from oleg@localhost) by core.zp.ua id g62K4RAo078968; Tue, 2 Jul 2002 23:04:27 +0300 (EEST) Message-Id: <200207022004.g62K4RAo078968@core.zp.ua> Date: Tue, 2 Jul 2002 23:04:27 +0300 (EEST) From: "Oleg V. Naumann" Reply-To: "Oleg V. Naumann" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: conf/40120: Existing rc.sendmail in -STABLE doesn't allow to load mail filters before sendmail Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 40120 >Category: conf >Synopsis: Existing rc.sendmail in -STABLE doesn't allow to load mail filters before sendmail >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Jul 02 14:20:07 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Oleg V. Naumann >Release: FreeBSD 4.6-STABLE i386 >Organization: ReIS Ltd. >Environment: System: FreeBSD core.zp.ua 4.6-STABLE FreeBSD 4.6-STABLE #1: Sat Jun 29 10:41:35 EEST 2002 root@core.zp.ua:/usr/obj/usr/src/sys/core i386 >Description: I have some milter-written mail filters, which I need to load before sendmail. Existing /etc/rc.sendmail doesn't have any capabilities for this purpose. So I have patch for /etc/rc.sendmail, which allows load any sendmail companions from /etc/rc.sendmail.early just before sendmail. >How-To-Repeat: Try to load any milter-written filters before sendmail. >Fix: *** /etc/rc.sendmail Thu Jun 20 14:10:34 2002 --- rc.sendmail Tue Jul 2 13:12:56 2002 *************** *** 54,77 **** --- 54,103 ---- sendmail_pidfile=${sendmail_pidfile:-/var/run/sendmail.pid} sendmail_mspq_pidfile=${sendmail_mspq_pidfile:-/var/spool/clientmqueue/sm-client.pid} + sendmail_early="NONE" + start_mta() { case ${sendmail_enable} in [Nn][Oo][Nn][Ee]) ;; [Yy][Ee][Ss]) + if [ -r /etc/rc.sendmail.early ]; then + sh /etc/rc.sendmail.early + fi + sendmail_early="YES" echo -n ' sendmail' ${sendmail_program} ${sendmail_flags} ;; *) case ${sendmail_submit_enable} in [Yy][Ee][Ss]) + case ${sendmail_early} in + [Nn][Oo][Nn][Ee]) + if [ -r /etc/rc.sendmail.early ]; then + sh /etc/rc.sendmail.early + fi + sendmail_early="YES" + ;; + *) + ;; + esac echo -n ' sendmail-submit' ${sendmail_program} ${sendmail_submit_flags} ;; *) case ${sendmail_outbound_enable} in [Yy][Ee][Ss]) + case ${sendmail_early} in + [Nn][Oo][Nn][Ee]) + if [ -r /etc/rc.sendmail.early ]; then + sh /etc/rc.sendmail.early + fi + sendmail_early="YES" + ;; + *) + ;; + esac echo -n ' sendmail-outbound' ${sendmail_program} ${sendmail_outbound_flags} ;; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message