1*0Sstevel@tonic-gatedivert(-1) 2*0Sstevel@tonic-gate# 3*0Sstevel@tonic-gate# Copyright (c) 1998-2002, 2004 Sendmail, Inc. and its suppliers. 4*0Sstevel@tonic-gate# All rights reserved. 5*0Sstevel@tonic-gate# 6*0Sstevel@tonic-gate# By using this file, you agree to the terms and conditions set 7*0Sstevel@tonic-gate# forth in the LICENSE file which can be found at the top level of 8*0Sstevel@tonic-gate# the sendmail distribution. 9*0Sstevel@tonic-gate# 10*0Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 11*0Sstevel@tonic-gate# 12*0Sstevel@tonic-gate 13*0Sstevel@tonic-gatedivert(0) 14*0Sstevel@tonic-gateVERSIONID(`$Id: access_db.m4,v 8.26 2004/06/24 18:10:02 ca Exp $') 15*0Sstevel@tonic-gatedivert(-1) 16*0Sstevel@tonic-gate 17*0Sstevel@tonic-gatedefine(`_ACCESS_TABLE_', `') 18*0Sstevel@tonic-gatedefine(`_TAG_DELIM_', `:')dnl should be in OperatorChars 19*0Sstevel@tonic-gateifelse(lower(_ARG2_),`skip',`define(`_ACCESS_SKIP_', `1')') 20*0Sstevel@tonic-gateifelse(lower(_ARG2_),`lookupdotdomain',`define(`_LOOKUPDOTDOMAIN_', `1')') 21*0Sstevel@tonic-gateifelse(lower(_ARG3_),`skip',`define(`_ACCESS_SKIP_', `1')') 22*0Sstevel@tonic-gateifelse(lower(_ARG3_),`lookupdotdomain',`define(`_LOOKUPDOTDOMAIN_', `1')') 23*0Sstevel@tonic-gatedefine(`_ATMPF_', `<TMPF>')dnl 24*0Sstevel@tonic-gatednl check whether arg contains -T`'_ATMPF_ 25*0Sstevel@tonic-gatednl unless it is a sequence map 26*0Sstevel@tonic-gateifelse(defn(`_ARG_'), `', `', 27*0Sstevel@tonic-gate defn(`_ARG_'), `LDAP', `', 28*0Sstevel@tonic-gate `ifelse(index(_ARG_, `sequence '), `0', `', 29*0Sstevel@tonic-gate `ifelse(index(_ARG_, _ATMPF_), `-1', 30*0Sstevel@tonic-gate `errprint(`*** WARNING: missing -T'_ATMPF_` in argument of FEATURE(`access_db',' defn(`_ARG_')`) 31*0Sstevel@tonic-gate') 32*0Sstevel@tonic-gate define(`_ABP_', index(_ARG_, ` ')) 33*0Sstevel@tonic-gate define(`_NARG_', `substr(_ARG_, 0, _ABP_) -T'_ATMPF_` substr(_ARG_, _ABP_)') 34*0Sstevel@tonic-gate ') 35*0Sstevel@tonic-gate ') 36*0Sstevel@tonic-gate ') 37*0Sstevel@tonic-gateifdef(`_GREET_PAUSE_', 38*0Sstevel@tonic-gate `errprint(`*** WARNING: FEATURE(`greet_pause') before FEATURE(`access_db') 39*0Sstevel@tonic-gate greet_pause will not use access_db!')') 40*0Sstevel@tonic-gate 41*0Sstevel@tonic-gateLOCAL_CONFIG 42*0Sstevel@tonic-gate# Access list database (for spam stomping) 43*0Sstevel@tonic-gateKaccess ifelse(defn(`_ARG_'), `', DATABASE_MAP_TYPE -T`'_ATMPF_ MAIL_SETTINGS_DIR`access', 44*0Sstevel@tonic-gate defn(`_ARG_'), `LDAP', `ldap -T`'_ATMPF_ -1 -v sendmailMTAMapValue,sendmailMTAMapSearch:FILTER:sendmailMTAMapObject,sendmailMTAMapURL:URL:sendmailMTAMapObject -k (&(objectClass=sendmailMTAMapObject)(|(sendmailMTACluster=${sendmailMTACluster})(sendmailMTAHost=$j))(sendmailMTAMapName=access)(sendmailMTAKey=%0))', 45*0Sstevel@tonic-gate defn(`_NARG_'), `', `_ARG_', `_NARG_') 46