From dgilbert@velocet.ca  Fri Nov  3 20:35:31 2000
Return-Path: <dgilbert@velocet.ca>
Received: from strike.velocet.ca (strike.velocet.ca [204.138.54.214])
	by hub.freebsd.org (Postfix) with ESMTP id 625E737B4D7
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  3 Nov 2000 20:35:31 -0800 (PST)
Received: by strike.velocet.ca (Postfix, from userid 101)
	id 16B24383AE; Fri,  3 Nov 2000 23:35:25 -0500 (EST)
Message-Id: <20001104043525.16B24383AE@strike.velocet.ca>
Date: Fri,  3 Nov 2000 23:35:25 -0500 (EST)
From: dgilbert@velocet.ca
To: FreeBSD-gnats-submit@freebsd.org
Subject: rmail recently broken (at least with postfix)
X-Send-Pr-Version: 3.2

>Number:         22598
>Category:       bin
>Synopsis:       rmail recently broken wrt (at least) postfix
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gshapiro
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 03 20:40:01 PST 2000
>Closed-Date:    Sun Jan 21 14:27:14 PST 2001
>Last-Modified:  Sun Jan 21 14:28:48 PST 2001
>Originator:     David Gilbert
>Release:        FreeBSD 4.1.1-STABLE i386
>Organization:
Velocet Communications
>Environment:

FreeBSD-4.1.1-STABLE and ( postfix-19991231.08 or postfix-20001030_1 )

>Description:

When uucp is being used with postfix, rmail (/bin/rmail) is still used.
Recently (sometime after 4.1.1) rmail broke wrt postfix.  Typical log
entries are:

Nov  3 22:27:03 strike postfix/sendmail[17795]: fatal: usage: sendmail [options]

and uucp logs say:

uuxqt sabre uucp (2000-11-03 23:14:23.71 23936) ERROR: Execution: Exit status 1
uuxqt sabre uucp (2000-11-03 23:14:23.71 23936) Execution failed (X.sabreN1YN9)

>How-To-Repeat:

use uucp to send/receive mail and postfix will a recent 4-STABLE

>Fix:

Substituting the 4.1-RELEASE /bin/rmail binary appears to fix things.




>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: dougb 
State-Changed-When: Sat Nov 4 13:54:14 PST 2000 
State-Changed-Why:  
Questioning originator about make.conf settings 


Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Sat Nov 4 13:54:14 PST 2000 
Responsible-Changed-Why:  
This might be related to my uucp conditionalizing commit 

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

From: Doug Barton <DougB@FreeBSD.org>
To: dgilbert@velocet.ca
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: bin/22598: rmail recently broken (at least with postfix)
Date: Sat, 04 Nov 2000 14:03:25 -0800

 dgilbert@velocet.ca wrote:
 
 > >Synopsis:       rmail recently broken wrt (at least) postfix
 
 > When uucp is being used with postfix, rmail (/bin/rmail) is still used.
 > Recently (sometime after 4.1.1) rmail broke wrt postfix.  
 
 	Can you let me know the results of 'ident /usr/src/bin/Makefile' (is it
 1.15.2.2?) and also let me know whether you have either of NO_SENDMAIL
 and/or NOUUCP defined in /etc/make.conf? I'm presuming you don't have
 the second, but building rmail in src/bin/Makefile is conditional on
 neither of them being defined:
 
 .if !defined(NO_SENDMAIL) && !defined(NOUUCP)
 SUBDIR+=rmail
 .endif
 
 I added the test for NOUUCP to RELENG_4	on the 31st, but the test for
 NO_SENDMAIL has been there since 1998, and since you're running postfix
 I'm assuming that you have that one defined?
 
 Doug
 
Responsible-Changed-From-To: dougb->gshapiro 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Sun Nov 5 20:36:24 PST 2000 
Responsible-Changed-Why:  
Originator confirms that his make.conf settings are 
not such that they would prevent rmail from 
building, therefore it's more likely a gshapiro 
problem.  

http://www.freebsd.org/cgi/query-pr.cgi?pr=22598 
State-Changed-From-To: feedback->analyzed 
State-Changed-By: gshapiro 
State-Changed-When: Mon Nov 13 23:15:57 PST 2000 
State-Changed-Why:  
From: "Frank J. Beckmann" <frank@vogon.agala.net>  
To: gshapiro@freebsd.org  
Subject: Re: bin/22598: rmail recently broken wrt at least postfix  
Date: Mon, 6 Nov 2000 21:29:21 +0100  

Hi,  

the new rmail calls sendmail with option -G. Postfix's sendmail doesn't know  
about that option and dies with an error.  

Hope that helps.  

Frank  


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

From: Blaz Zupan <blaz@amis.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc: dgilbert@velocet.ca
Subject: Re: bin/22598: rmail recently broken wrt (at least) postfix
Date: Wed, 20 Dec 2000 18:54:02 +0100 (CET)

 The following patch fixes the problem for the postfix port. The
 postfix-current port already works because the latest postfix snapshot
 recognizes the -G flag.
 
 Blaz Zupan,  Medinet d.o.o, Linhartova 21, 2000 Maribor, Slovenia
 E-mail: blaz@amis.net, Tel: +386-2-320-6320, Fax: +386-2-320-6325
 
 diff -urN postfix.old/files/patch-cb postfix/files/patch-cb
 --- postfix.old/files/patch-cb	Tue Nov 14 07:28:57 2000
 +++ postfix/files/patch-cb	Wed Dec 20 18:38:09 2000
 @@ -1,20 +1,25 @@
 -*** ./man/man1/sendmail.1.orig	Thu Mar 30 14:05:28 2000
 ---- ./man/man1/sendmail.1	Thu Jun  1 22:39:16 2000
 -***************
 -*** 63,65 ****
 -  The path name of the \fBsendmail.cf\fR file. Postfix configuration
 -! files are kept in \fB/etc/postfix\fR.
 -  .IP "\fB-F \fIfull_name\fR
 ---- 63,65 ----
 -  The path name of the \fBsendmail.cf\fR file. Postfix configuration
 -! files are kept in \fB!!PREFIX!!/etc/postfix\fR.
 -  .IP "\fB-F \fIfull_name\fR
 -***************
 -*** 173,175 ****
 -  /var/spool/postfix, mail queue
 -! /etc/postfix, configuration files
 -  .SH CONFIGURATION PARAMETERS
 ---- 173,175 ----
 -  /var/spool/postfix, mail queue
 -! !!PREFIX!!/etc/postfix, configuration files
 -  .SH CONFIGURATION PARAMETERS
 +--- man/man1/sendmail.1.orig	Thu Mar 30 17:46:10 2000
 ++++ man/man1/sendmail.1	Wed Dec 20 18:37:45 2000
 +@@ -61,10 +61,12 @@
 + \fBjust-send-eight\fR.
 + .IP "\fB-C \fIconfig_file\fR (ignored :-)"
 + The path name of the \fBsendmail.cf\fR file. Postfix configuration
 +-files are kept in \fB/etc/postfix\fR.
 ++files are kept in \fB!!PREFIX!!/etc/postfix\fR.
 + .IP "\fB-F \fIfull_name\fR
 + Set the sender full name. This is used only with messages that
 + have no \fBFrom:\fR message header.
 ++.IP "\fB-G\fR (ignored)"
 ++Gateway (relay) submission, as opposed to initial user submission.
 + .IP \fB-I\fR
 + Initialize alias database. See the \fBnewaliases\fR
 + command above.
 +@@ -171,7 +173,7 @@
 + .na
 + .nf
 + /var/spool/postfix, mail queue
 +-/etc/postfix, configuration files
 ++!!PREFIX!!/etc/postfix, configuration files
 + .SH CONFIGURATION PARAMETERS
 + .na
 + .nf
 diff -urN postfix.old/files/patch-eg postfix/files/patch-eg
 --- postfix.old/files/patch-eg	Tue Nov 14 07:28:57 2000
 +++ postfix/files/patch-eg	Wed Dec 20 18:18:12 2000
 @@ -1,20 +1,34 @@
 -*** ./sendmail/sendmail.c.orig	Tue Mar 14 10:42:06 2000
 ---- ./sendmail/sendmail.c	Thu Jun  1 22:47:24 2000
 -***************
 -*** 57,59 ****
 -  /*	The path name of the \fBsendmail.cf\fR file. Postfix configuration
 -! /*	files are kept in \fB/etc/postfix\fR.
 -  /* .IP "\fB-F \fIfull_name\fR
 ---- 57,59 ----
 -  /*	The path name of the \fBsendmail.cf\fR file. Postfix configuration
 -! /*	files are kept in \fB!!PREFIX!!/etc/postfix\fR.
 -  /* .IP "\fB-F \fIfull_name\fR
 -***************
 -*** 159,161 ****
 -  /*	/var/spool/postfix, mail queue
 -! /*	/etc/postfix, configuration files
 -  /* CONFIGURATION PARAMETERS
 ---- 159,161 ----
 -  /*	/var/spool/postfix, mail queue
 -! /*	!!PREFIX!!/etc/postfix, configuration files
 -  /* CONFIGURATION PARAMETERS
 +--- sendmail/sendmail.c.orig	Sun Mar 26 22:51:33 2000
 ++++ sendmail/sendmail.c	Wed Dec 20 18:17:31 2000
 +@@ -55,10 +55,12 @@
 + /*	\fBjust-send-eight\fR.
 + /* .IP "\fB-C \fIconfig_file\fR (ignored :-)"
 + /*	The path name of the \fBsendmail.cf\fR file. Postfix configuration
 +-/*	files are kept in \fB/etc/postfix\fR.
 ++/*	files are kept in \fB!!PREFIX!!/etc/postfix\fR.
 + /* .IP "\fB-F \fIfull_name\fR
 + /*	Set the sender full name. This is used only with messages that
 + /*	have no \fBFrom:\fR message header.
 ++/* .IP "\fB-G \fR (ignored)"
 ++/*	Gateway (relay) submission, as opposed to initial user submission.
 + /* .IP \fB-I\fR
 + /*	Initialize alias database. See the \fBnewaliases\fR
 + /*	command above.
 +@@ -157,7 +159,7 @@
 + /*	\fBdebugger_command\fR configuration parameter.
 + /* FILES
 + /*	/var/spool/postfix, mail queue
 +-/*	/etc/postfix, configuration files
 ++/*	!!PREFIX!!/etc/postfix, configuration files
 + /* CONFIGURATION PARAMETERS
 + /* .ad
 + /* .fi
 +@@ -710,6 +712,8 @@
 + 	    break;
 + 	case 'F':				/* full name */
 + 	    full_name = optarg;
 ++	    break;
 ++	case 'G':				/* gateway submission */
 + 	    break;
 + 	case 'I':				/* newaliases */
 + 	    mode = SM_MODE_NEWALIAS;
 
 
 
State-Changed-From-To: analyzed->closed 
State-Changed-By: gshapiro 
State-Changed-When: Sun Jan 21 14:27:14 PST 2001 
State-Changed-Why:  
sendmail 8.11.2 has been imported into the HEAD.  rmail no longer uses -G. 
Additionally, postfix has been updated to accept the -G option. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=22598 
>Unformatted:
