From nobody@FreeBSD.org  Wed Feb 25 18:51:35 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 862511065702
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 25 Feb 2009 18:51:35 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 7026E8FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 25 Feb 2009 18:51:35 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n1PIpZSf011693
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 25 Feb 2009 18:51:35 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n1PIpZnT011692;
	Wed, 25 Feb 2009 18:51:35 GMT
	(envelope-from nobody)
Message-Id: <200902251851.n1PIpZnT011692@www.freebsd.org>
Date: Wed, 25 Feb 2009 18:51:35 GMT
From: Josef Grosch <jgrosch@juniper.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Hard coded variables in the postfix install script
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         132108
>Category:       ports
>Synopsis:       Hard coded variables in the mail/postfix install script
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 25 19:00:09 UTC 2009
>Closed-Date:    Thu Apr 30 14:57:44 EDT 2009
>Last-Modified:  Thu Apr 30 14:57:44 EDT 2009
>Originator:     Josef Grosch
>Release:        FreeBSD 7.1-RELEASE
>Organization:
Juniper Networks
>Environment:
FreeBSD danai-27.juniper.net 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Tue Feb 24 12:24:17 PST 2009     root@danai-27.juniper.net:/usr/obj/usr/src/sys/DANAI  i386
>Description:
The UID and GID for postfix and the GID for maildrop is hard coded into the postfix install script (/usr/ports/mail/postfix/pkg-install). This is fine and dandy if no user has these UID and/or GID however if postfix is being installed in an existing environment it causes all sorts of problems. Please modify the install script to check the environment for a variable(s) that will define a UID & GID for postfix and maildrop

>How-To-Repeat:
read the file /usr/ports/mail/postfix/pkg-install like this

vi +56 /usr/ports/mail/postfix/pkg-install
>Fix:


>Release-Note:
>Audit-Trail:

From: Andrej Zverev <andrej.zverev@gmail.com>
To: bug-followup@FreeBSD.org, jgrosch@juniper.net
Cc:  
Subject: Re: ports/132108: Hard coded variables in the mail/postfix install 
	script
Date: Mon, 2 Mar 2009 09:41:26 +0300

 Hello,
 We have lists of reserved UIDs and GIDs you can read about here
 http://www.freebsd.org/doc/en/books/porters-handbook/dads-uid-and-gids.html
 While you are using ports you must respect this issue.

From: Vick Khera <khera@kcilink.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/132108: Hard coded variables in the mail/postfix install script
Date: Mon, 13 Apr 2009 15:28:10 -0400

 The postfix port uses the registered UID and GIDs as per the  
 handbook.  This is a user conflict with how ports are managed.
 
State-Changed-From-To: open->closed 
State-Changed-By: glarkin 
State-Changed-When: Thu Apr 30 14:56:41 EDT 2009 
State-Changed-Why:  
This PR has been answered, and mail/postfix pkg-install behavior 
is correct. 

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