From wolfgang@lyxys.ka.sub.org  Tue Oct 10 17:21:03 2000
Return-Path: <wolfgang@lyxys.ka.sub.org>
Received: from subnet.sub.net (subnet.sub.net [212.227.14.21])
	by hub.freebsd.org (Postfix) with ESMTP id 615E637B502
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 10 Oct 2000 17:21:02 -0700 (PDT)
Received: from lyxys.ka.sub.org (uucp@localhost)
	by subnet.sub.net (8.8.8/8.8.8/1.2subnet-linux) with bsmtp id CAA12291
	for FreeBSD-gnats-submit@freebsd.org; Wed, 11 Oct 2000 02:20:59 +0200
Received: from localhost (1442 bytes) by lyxys.ka.sub.org
	via sendmail with P:stdio/R:smart_host/T:inet_uusmtp
	(sender: <wolfgang>) (ident <wolfgang> using unix)
	id <m13j9Ws-003pRvC@lyxys.ka.sub.org>
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Oct 2000 02:13:54 +0200 (CEST)
	(Smail-3.2.0.111 2000-Feb-17 #1 built 2000-Aug-23)
Message-Id: <m13j9Ws-003pRvC@lyxys.ka.sub.org>
Date: Wed, 11 Oct 2000 02:13:54 +0200 (CEST)
From: wolfgang@lyxys.ka.sub.org
Reply-To: wolfgang@lyxys.ka.sub.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: mailwrapper(8) does not wrap /bin/rmail
X-Send-Pr-Version: 3.2

>Number:         21899
>Category:       bin
>Synopsis:       mailwrapper does not wrap /bin/rmail
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gshapiro
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 10 17:30:02 PDT 2000
>Closed-Date:    Sun Feb 4 17:06:10 PST 2001
>Last-Modified:  Thu May 17 07:10:11 PDT 2001
>Originator:     Wolfgang Zenker
>Release:        FreeBSD 4.1.1-STABLE i386
>Organization:
private site
>Environment:

	FreeBSD 4.* after switching to different MTA after
	previous use of sendmail

>Description:

	When you switch from sendmail to a different mailer by configuring
	this different mailer in /etc/mail/mailer.conf, sendmails old
	/bin/rmail still stays around and is not redirected via mailwrapper.
	At least in the case of the new mailer being smail (installed from
	ports), /bin/rmail no longer works. I did not check the details,
	maybe it calls sendmail with options not supported by smail.
	The mailwrapper(8) man-page gives no caveat about /bin/rmail.

>How-To-Repeat:

	Install smail from ports; do NOT "make replace" (this tries to
	overwrite sendmail instead of using mailwrapper) and configure
	/etc/mail/mailer.conf to use smail.

>Fix:

	Delete /bin/rmail and tell uucp to use /usr/local/bin/rmail.
	Add a warning about /bin/rmail to BUGS-Section of mailwrapper
	-manpage.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gshapiro 
Responsible-Changed-By: johan 
Responsible-Changed-When: Sat Oct 14 07:50:08 PDT 2000 
Responsible-Changed-Why:  
Even if this is not stricly sendmail can you please have 
a look at it, since it deals with a sendmail program. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21899 
State-Changed-From-To: open->analyzed 
State-Changed-By: gshapiro 
State-Changed-When: Mon Nov 13 23:13:56 PST 2000 
State-Changed-Why:  
I don't see the need for rmail to be wrapped.  rmail is a mail injection 
tool that uses sendmail just as other MUA/auto-responders use sendmail 
(pine, elm, vacation, procmail, etc).  There is currently one inter-op 
problem with rmail's method of calling sendmail that may cause problems 
with non-sendmail MTAs.  This is already being researched under PR bin/22598. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21899 
State-Changed-From-To: analyzed->closed 
State-Changed-By: gshapiro 
State-Changed-When: Sun Feb 4 17:06:10 PST 2001 
State-Changed-Why:  
rmail no longer uses the -G flag 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21899 

From: Brian Candler <B.Candler@pobox.com>
To: freebsd-gnats-submit@freebsd.org, wolfgang@lyxys.ka.sub.org
Cc:  
Subject: Re: bin/21899: mailwrapper does not wrap /bin/rmail
Date: Thu, 17 May 2001 15:07:13 +0100

 I would like to second the request that /bin/rmail be indirected via
 mailwrapper.
 
 The reason is that I might actually _want_ to use the rmail provided by a
 different MTA. If I have installed a different MTA, with its own rmail, I do
 not want my system to break every time the sendmail people decide to make a
 stupid change (like introducing the '-G' flag, or deciding that rmail should
 invoke sendmail with flags requesting queued rather than immediate delivery)
 
 Of course, I am at liberty to delete /bin/rmail and replace it with a
 symlink to my new MTA. But this is exactly what mailwrapper was supposed to
 eliminate.
 
 So my vote is that rmail move to /usr/libexec/sendmail/rmail, and /bin/rmail
 become a symlink to /usr/sbin/mailwrapper
 
 Regards,
 
 Brian.
>Unformatted:
