Bug 31134

Summary: /etc/rc doesn't allow you to specify a different sendmail daemon
Product: Base System Reporter: Sean Chittenden <seanc>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
file.diff none

Description Sean Chittenden freebsd_committer freebsd_triage 2001-10-08 13:10:01 UTC
	I use the postfix mailer instead of sendmail and would like to continue to
	use sendmail -bd as the way of starting postfix.  That said, /etc/rc and
	/etc/defaults/rc.conf need to be updated to include a sendmail_program
	variable.  /etc/rc also relies on /etc/mail/sendmail.cf to be present for
	sendmail to be enabled: this is not true for postfix and has been disabled.
Comment 1 Peter Pentchev 2001-10-08 13:16:32 UTC
On Mon, Oct 08, 2001 at 05:06:28AM -0700, sean@chittenden.org wrote:
> 
> >Number:         31134
> >Category:       conf
> >Synopsis:       /etc/rc doesn't allow you to specify a different sendmail daemon
> >Originator:     Sean Chittenden
> >Release:        FreeBSD 4.4-RELEASE i386
> >Organization:
> >Environment:
> System: FreeBSD tim1.hosting.flyingcroc.net 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Sep 18 11:57:08 PDT 2001 murray@builder.FreeBSD.org:/usr/src/sys/compile/GENERIC i386
> 
> 
> 	
> >Description:
> 	I use the postfix mailer instead of sendmail and would like to continue to
> 	use sendmail -bd as the way of starting postfix.  That said, /etc/rc and
> 	/etc/defaults/rc.conf need to be updated to include a sendmail_program
> 	variable.  /etc/rc also relies on /etc/mail/sendmail.cf to be present for
> 	sendmail to be enabled: this is not true for postfix and has been disabled.

The sendmail.cf part might be a real problem.  Specifying the program to run
though is actually done via mailer.conf(5) - this is a greatly thought out
way to ensure that all legacy applications may still invoke sendmail(8),
newaliases(8), mailq and such, while mailwrapper(8) transparently runs
the actual executable of your choice.

So, just edit the /etc/mail/mailer.conf file and specify the appropriate
program from the Postfix package to run instead of sendmail.

The sendmail.cf thing might be a real issue, but I've never seen any harm
in just leaving it there, and I've never actually removed it :)

G'luck,
Peter

-- 
This sentence every third, but it still comprehensible.
Comment 2 Dima Dorfman 2001-10-08 13:19:22 UTC
sean@chittenden.org wrote:
> >Description:

> 	I use the postfix mailer instead of sendmail and would like to
> continue to use sendmail -bd as the way of starting postfix.  That
> said, /etc/rc and /etc/defaults/rc.conf need to be updated to
> include a sendmail_program variable.

This is not the correct way to change MTAs.  See mailwrapper(8) and
how the various MTA ports do it (e.g., ports/mail/postfix,
post/mail/qmail).
Comment 3 Sean Chittenden freebsd_committer freebsd_triage 2001-10-08 13:29:36 UTC
> > >Description:
> > 	I use the postfix mailer instead of sendmail and would like to continue to
> > 	use sendmail -bd as the way of starting postfix.  That said, /etc/rc and
> > 	/etc/defaults/rc.conf need to be updated to include a sendmail_program
> > 	variable.  /etc/rc also relies on /etc/mail/sendmail.cf to be present for
> > 	sendmail to be enabled: this is not true for postfix and has been disabled.
> 
> The sendmail.cf part might be a real problem.  Specifying the program to run
> though is actually done via mailer.conf(5) - this is a greatly thought out
> way to ensure that all legacy applications may still invoke sendmail(8),
> newaliases(8), mailq and such, while mailwrapper(8) transparently runs
> the actual executable of your choice.
> 
> So, just edit the /etc/mail/mailer.conf file and specify the appropriate
> program from the Postfix package to run instead of sendmail.

Howdy.  I've setup my mailer.conf but spaced on realizing it'd be in
effect on the system's startup. If mailer.conf takes care of this for
me, then groovy and feel free to close this PR.

> The sendmail.cf thing might be a real issue, but I've never seen any harm
> in just leaving it there, and I've never actually removed it :)

I'm confused as to why it'd be an issue to remove the sendmail.cf, but 
I'll have to take your word on it: sendmail hasn't been in my repretoir 
for quite some time.  <:~)  Thanks.  -sc

-- 
Sean Chittenden
Comment 4 Peter Pentchev 2001-10-08 13:47:41 UTC
On Mon, Oct 08, 2001 at 05:30:02AM -0700, Sean Chittenden wrote:
> The following reply was made to PR conf/31134; it has been noted by GNATS.
> 
> From: Sean Chittenden <sean@chittenden.org>
> To: Peter Pentchev <roam@ringlet.net>
> Cc: FreeBSD-gnats-submit@freebsd.org
> Subject: Re: conf/31134: /etc/rc doesn't allow you to specify a different sendmail daemon
> Date: Mon, 8 Oct 2001 05:29:36 -0700
> 
>  > > >Description:
>  > > 	I use the postfix mailer instead of sendmail and would like to continue to
>  > > 	use sendmail -bd as the way of starting postfix.  That said, /etc/rc and
>  > > 	/etc/defaults/rc.conf need to be updated to include a sendmail_program
>  > > 	variable.  /etc/rc also relies on /etc/mail/sendmail.cf to be present for
>  > > 	sendmail to be enabled: this is not true for postfix and has been disabled.

[snip]

>  > The sendmail.cf thing might be a real issue, but I've never seen any harm
>  > in just leaving it there, and I've never actually removed it :)
>  
>  I'm confused as to why it'd be an issue to remove the sendmail.cf, but 
>  I'll have to take your word on it: sendmail hasn't been in my repretoir 
>  for quite some time.  <:~)  Thanks.  -sc

I meant that it could be an issue that /etc/rc relies on sendmail.cf;
I did not mean that the system would fall over if sendmail.cf was not
present.  All I meant was that, yes, /etc/rc still wants sendmail.cf to
be there, even if you don't use it, but there's no harm in just leaving
it there so /etc/rc is happy.

G'luck,
Peter

-- 
Hey, out there - is it *you* reading me, or is it someone else?
Comment 5 Doug Barton freebsd_committer freebsd_triage 2001-10-10 08:30:43 UTC
State Changed
From-To: open->closed


As discussed, /etc/mail/mailer.conf provides this mechanism already.