Bug 22598

Summary: rmail recently broken wrt (at least) postfix
Product: Base System Reporter: dgilbert <dgilbert>
Component: binAssignee: Gregory Neil Shapiro <gshapiro>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1.1-STABLE   
Hardware: Any   
OS: Any   

Description dgilbert 2000-11-04 04:40:01 UTC
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)

Fix: 

Substituting the 4.1-RELEASE /bin/rmail binary appears to fix things.
How-To-Repeat: 
use uucp to send/receive mail and postfix will a recent 4-STABLE
Comment 1 Doug Barton freebsd_committer freebsd_triage 2000-11-04 21:54:14 UTC
State Changed
From-To: open->feedback

Questioning originator about make.conf settings 


Comment 2 Doug Barton freebsd_committer freebsd_triage 2000-11-04 21:54:14 UTC
Responsible Changed
From-To: freebsd-bugs->dougb

This might be related to my uucp conditionalizing commit
Comment 3 Doug Barton freebsd_committer freebsd_triage 2000-11-04 22:03:25 UTC
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
Comment 4 Doug Barton freebsd_committer freebsd_triage 2000-11-06 04:36:24 UTC
Responsible Changed
From-To: dougb->gshapiro

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.
Comment 5 Gregory Neil Shapiro freebsd_committer freebsd_triage 2000-11-14 07:15:57 UTC
State Changed
From-To: feedback->analyzed

Comment 6 blaz 2000-12-20 17:54:02 UTC
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;
Comment 7 Gregory Neil Shapiro freebsd_committer freebsd_triage 2001-01-21 22:27:14 UTC
State Changed
From-To: analyzed->closed

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.