Date: Tue, 2 Jul 2002 23:04:27 +0300 (EEST) From: "Oleg V. Naumann" <oleg@reis.zp.ua> To: FreeBSD-gnats-submit@FreeBSD.org Subject: conf/40120: Existing rc.sendmail in -STABLE doesn't allow to load mail filters before sendmail Message-ID: <200207022004.g62K4RAo078968@core.zp.ua>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207022004.g62K4RAo078968>
