Bug 14339

Summary: sendmail_enable should specify the path to sendmail
Product: Base System Reporter: Anarcat <beaupran>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Anarcat 1999-10-15 03:40:00 UTC
	It could be nice to be able to sepcify the sendmail program to start
	if we have an alternative to the standard sendmail. For example, run
	"/usr/local/postfix start".

Fix: Here's a patch that could be usei (!!!!!UNTESTED!!!!!):



I hope I made that PR correctly... :)--Jh0TOPRRFSNVG7YaBYULlvcPQBOD1aOKB918VJBXmFr5Gfes
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

*** rc  Fri Sep 10 19:52:29 1999
--- /tmp/rc     Thu Oct 14 22:09:57 1999
***************
*** 326,333 ****
        echo -n ' printer';             ${lpd_program} ${lpd_flags}
  fi
  
! if [ "X${sendmail_enable}" = X"YES" -a -r /etc/sendmail.cf ]; then
!       echo -n ' sendmail';    /usr/sbin/sendmail ${sendmail_flags}
  fi
  
  if [ "X${usbd_enable}" = X"YES" ]; then
--- 326,333 ----
        echo -n ' printer';             ${lpd_program} ${lpd_flags}
  fi
  
! if [ ! "X${sendmail_enablE}" = X"NO" -a -r /etc/sendmail.cf ]; then
!       echo -n ' sendmail';    ${sendmail_enable} ${sendmail_flags}
  fi
  
  if [ "X${usbd_enable}" = X"YES" ]; then
How-To-Repeat: 
	N/A
Comment 1 Alexey Zelkin freebsd_committer freebsd_triage 1999-10-15 05:29:59 UTC
hi,

On Thu, Oct 14, 1999 at 10:30:28PM -0400, Anarcat wrote:

> >Number:         14339
> >Category:       conf
> >Synopsis:       sendmail_enable should specify the path to sendmail
 
> 	It could be nice to be able to sepcify the sendmail program to start
> 	if we have an alternative to the standard sendmail. For example, run
> 	"/usr/local/postfix start".

Postfix is port. So it should be started by script located in ports startup
directory (it's usualy /usr/local/etc/rc.d/). It applies to all other
_thrid-parat_ applications.

-- 
/* Alexey Zelkin                       && phantom@cris.net    */
/* Tavric National University          && phantom@crimea.edu  */
/* http://www.ccssu.crimea.ua/~phantom && phantom@FreeBSD.org */
Comment 2 Sheldon Hearn freebsd_committer freebsd_triage 1999-10-15 10:12:37 UTC
State Changed
From-To: open->closed

A more comprehensive approach can be found in PR 13609.