Bug 40120

Summary: Existing rc.sendmail in -STABLE doesn't allow to load mail filters before sendmail
Product: Base System Reporter: Oleg V. Naumann <oleg>
Component: confAssignee: Gregory Neil Shapiro <gshapiro>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.6-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Oleg V. Naumann 2002-07-02 22:20:07 UTC
	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.
Comment 1 Doug Barton freebsd_committer freebsd_triage 2002-07-06 09:05:18 UTC
Responsible Changed
From-To: freebsd-bugs->gshapiro


Over to Mr. Sendmail.
Comment 2 Gregory Neil Shapiro freebsd_committer freebsd_triage 2003-02-08 23:04:19 UTC
State Changed
From-To: open->feedback

Your method could break post-boot rc.sendmail calls (e.g., using 
`/etc/rc.sendmail restart` would run rc.sendmail.early every time). 

Instead, I suggest putting this in your /etc/rc.conf: 

mta_start_script="/etc/rc.mta"		# (or pick a different name) 

Then create /etc/rc.mta which starts your filters and at the end, runs 
/etc/rc.sendmail to start sendmail.
Comment 3 Gregory Neil Shapiro freebsd_committer freebsd_triage 2003-02-09 18:38:26 UTC
State Changed
From-To: feedback->closed

Submitter accepted solution.