From spell@mermaid.itl.net.ua  Thu Dec 25 04:41:16 2003
Return-Path: <spell@mermaid.itl.net.ua>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 83E0B16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 25 Dec 2003 04:41:16 -0800 (PST)
Received: from mermaid.itl.net.ua (ns.itl.net.ua [217.12.192.65])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 52C2843D41
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 25 Dec 2003 04:41:14 -0800 (PST)
	(envelope-from spell@mermaid.itl.net.ua)
Received: from localhost (vault.itl.net.ua [217.12.192.68])
	by mermaid.itl.net.ua (Postfix) with ESMTP id A21072154F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 25 Dec 2003 14:41:09 +0200 (EET)
Received: from mermaid.itl.net.ua ([217.12.192.65])
 by localhost (vault.itl.net.ua [217.12.192.68]) (amavisd-new, port 10024)
 with ESMTP id 24902-08 for <FreeBSD-gnats-submit@freebsd.org>;
 Thu, 25 Dec 2003 14:41:09 +0200 (EET)
Received: by mermaid.itl.net.ua (Postfix, from userid 111)
	id 57DE82154D; Thu, 25 Dec 2003 14:41:09 +0200 (EET)
Message-Id: <20031225124109.57DE82154D@mermaid.itl.net.ua>
Date: Thu, 25 Dec 2003 14:41:09 +0200 (EET)
From: Irina Liakh <spell@itl.ua>
Reply-To: Irina Liakh <spell@itl.ua>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] Default freebsd.submit.mc file should contain OSTYPE(freebsd5) macro
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         60556
>Category:       conf
>Synopsis:       [patch] Default freebsd.submit.mc file should contain OSTYPE(freebsd5) macro
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gshapiro
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 25 04:50:17 PST 2003
>Closed-Date:    Mon Feb 16 11:07:36 PST 2004
>Last-Modified:  Mon Feb 16 11:07:36 PST 2004
>Originator:     Irina Liakh
>Release:        FreeBSD 5.1-CURRENT
>Organization:
ITL ISP
>Environment:
FreeBSD 5.1-CURRENT Oct 25, sendmail 8.12.10, port net/freebsd-uucp-1.07

>Description:
		In CURRENT, UUCP has moved from base system to ports
collection, but submit.cf still expects the uux binary to be in /usr/bin
rather than /usr/local/bin.
	This does not apply to sendmail.cf because of presence
"OSTYPE(freebsd5)" macro in it's source file freebsd.mc, that
properly initializes UUCP_MAILER_PATH (the path to the uux binary).
	There is some other tweaking that engaged by this macro,
such as adding `S' flag to mailer local, that intended specially
for FreeBSD-5 and hereby should be toggled in freebsd.submit.mc.

>How-To-Repeat:
		Seems to be obvious.

>Fix:
		Just remove define(`__OSTYPE__',`')
and add OSTYPE(`freebsd5') to file freebsd.submit.mc.

This is patch for complete report:

--- freebsd.submit.mc.or        Thu Dec 25 14:25:39 2003
+++ freebsd.submit.mc   Thu Dec 25 14:26:10 2003
@@ -18,7 +18,7 @@
 divert(0)dnl
 VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.submit.mc,v 1.1 2003/10/19 00:03:13 gshapiro Exp $')
 define(`confCF_VERSION', `Submit')dnl
-define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining
+OSTYPE(`freebsd5')dnl
 define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet
 define(`confTIME_ZONE', `USE_TZ')dnl
 define(`confDONT_INIT_GROUPS', `True')dnl

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gshapiro 
Responsible-Changed-By: osa 
Responsible-Changed-When: Thu Dec 25 05:19:12 PST 2003 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60556 
State-Changed-From-To: open->feedback 
State-Changed-By: gshapiro 
State-Changed-When: Thu Dec 25 09:41:18 PST 2003 
State-Changed-Why:  
The submit.cf's sole purpose is to relay mail to a real MTA via SMTP 
usually on localhost.  It should not be doing any actual delivery, 
including UUCP.  That is meant for the real MTA, not the submission 
agent.  Therefore, UUCP (and any other OS dependent settings) are not 
needed.  I would need more justification for why UUCP is needed in 
the submission configuration before this change is made. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=60556 
State-Changed-From-To: feedback->closed 
State-Changed-By: gshapiro 
State-Changed-When: Mon Feb 16 11:06:25 PST 2004 
State-Changed-Why:  
This was discussed offline and the changes needed by the bug reporter 
should be made to their local `hostname`.submit.mc file. 


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