From jdc@pentarou.parodius.com  Sun Nov 24 04:52:24 2002
Return-Path: <jdc@pentarou.parodius.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5836D37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 24 Nov 2002 04:52:24 -0800 (PST)
Received: from mail.parodius.com (mail.parodius.com [64.71.184.173])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B37B843EA9
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 24 Nov 2002 04:52:23 -0800 (PST)
	(envelope-from jdc@pentarou.parodius.com)
Received: from pentarou.parodius.com (jdc@localhost [127.0.0.1])
	by mail.parodius.com (8.12.6/8.12.6) with ESMTP id gAOCqDCQ028190
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 24 Nov 2002 04:52:13 -0800 (PST)
	(envelope-from jdc@pentarou.parodius.com)
Received: (from jdc@localhost)
	by pentarou.parodius.com (8.12.6/8.12.6/Submit) id gAOCqDB2028189;
	Sun, 24 Nov 2002 04:52:13 -0800 (PST)
	(envelope-from jdc)
Message-Id: <200211241252.gAOCqDB2028189@pentarou.parodius.com>
Date: Sun, 24 Nov 2002 04:52:13 -0800 (PST)
From: Jeremy Chadwick <freebsd@jdc.parodius.com>
Reply-To: Jeremy Chadwick <freebsd@jdc.parodius.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Makefile support for sendmail CIDR pre-parsing (cidrexpand)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         45672
>Category:       conf
>Synopsis:       Makefile support for sendmail CIDR pre-parsing (cidrexpand)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gshapiro
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 24 05:00:08 PST 2002
>Closed-Date:    Sat Feb 08 14:48:24 PST 2003
>Last-Modified:  Sat Feb 08 14:48:24 PST 2003
>Originator:     Jeremy Chadwick
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
Parodius Networking
>Environment:
System: FreeBSD pentarou.parodius.com 4.7-STABLE FreeBSD 4.7-STABLE #0: Thu Nov 14 01:41:15 PST 2002 root@pentarou.parodius.com:/usr/obj/usr/src/sys/PARODIUS-SMP i386


>Description:
        This is a request to add support for the contrib/cidrexpand script
        that comes with sendmail, into /etc/mail/Makefile.  The script is
        src/contrib/sendmail/contrib/cidrexpand.

        We maintain a fairly complex set of rules in /etc/mail/access,
        and for numerous reasons, sendmail does not have native support
        for CIDR notation within it's hash files.  The script in question
        addresses this issue.  It permits you to use CIDR notation inside
        /etc/mail/access and pre-parses the contents, generating all
        possible IP combos from that CIDR (while leaving non-CIDR lines
        alone), sending the results to stdout.

        It would be absolutely *fantastic* to have this as part of the
        /etc/mail/Makefile process.  It looks to be highly possible.

        My recommendation would be to add a new variable to defaults/make.conf
        called SENDMAIL_CIDR, which would define if the administrator desired
        using "contrib/cidrexpand | makemap" instead of just the normal
        makemap process.

>How-To-Repeat:
        Not applicable.
>Fix:
        Not applicable.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gshapiro 
Responsible-Changed-By: dwmalone 
Responsible-Changed-When: Sat Dec 21 04:45:06 PST 2002 
Responsible-Changed-Why:  
Sendmail related request for our sendmail maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45672 
State-Changed-From-To: open->feedback 
State-Changed-By: gshapiro 
State-Changed-When: Sat Feb 8 14:34:48 PST 2003 
State-Changed-Why:  
You can accomplish that via your own /etc/mail/Makefile.local (which 
/etc/mail/Makefile includes).  For example, to have the access DB 
built using cirdexpand, rename your access text file to access.in and 
use this /etc/mail/Makefile.local: 

.ORDER: makeaccess access 

access: makeaccess 

makeaccess: access.in 
/usr/src/contrib/sendmail/contrib/cidrexpand < ${.ALLSRC} > ${.ALLSRC:S/.in//} 


http://www.freebsd.org/cgi/query-pr.cgi?pr=45672 
State-Changed-From-To: feedback->closed 
State-Changed-By: gshapiro 
State-Changed-When: Sat Feb 8 14:48:09 PST 2003 
State-Changed-Why:  
Submitter accepted the solution. 

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

