Adding cidrexpand support to the /etc/mail/Makefile would be handy; then we could use CIDR notation in /etc/mail/access. I've edited the /etc/mail/Makefile (patch attached), and it seems to work.

The question would be: have I done this in an appropriate way?

Feedback would be appreciated before I submit a send-pr.

-Warren Block * Rapid City, South Dakota USA
--- Makefile.bak        Sat Jun  5 15:32:45 2004
+++ Makefile    Sat Jun  5 16:17:58 2004
@@ -109,6 +109,7 @@
 SENDMAIL?=             /usr/sbin/sendmail
 MAKEMAP?=              /usr/sbin/makemap
 M4?=                   /usr/bin/m4
+CIDREXPAND?=           /usr/src/contrib/sendmail/contrib/cidrexpand
 # Permissions for generated maps
@@ -125,11 +126,11 @@
 # type to use when calling makemap.
 SENDMAIL_MAP_SRC+=     mailertable domaintable bitdomain uucpdomain \
-                       genericstable virtusertable access
+                       genericstable virtusertable
-.for _f in ${SENDMAIL_MAP_SRC} userdb
+.for _f in ${SENDMAIL_MAP_SRC} access userdb
 .if exists(${_f})
 SENDMAIL_MAP_OBJ+=     ${_f}.db
@@ -148,6 +149,10 @@
        chmod ${SENDMAIL_MAP_PERMS} ${.TARGET}
+access.db: access
+       chmod ${SENDMAIL_MAP_PERMS} ${.TARGET}
 userdb.db: userdb
        ${MAKEMAP} btree ${.TARGET} < ${.OODATE}
[EMAIL PROTECTED] mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to