1N/Adivert(-1)
1N/A#
1N/A# Copyright (c) 1998-2002, 2004 Sendmail, Inc. and its suppliers.
1N/A# All rights reserved.
1N/A#
1N/A# By using this file, you agree to the terms and conditions set
1N/A# forth in the LICENSE file which can be found at the top level of
1N/A# the sendmail distribution.
1N/A#
1N/A# ident "%Z%%M% %I% %E% SMI"
1N/A#
1N/A
1N/Adivert(0)
1N/AVERSIONID(`$Id: access_db.m4,v 8.26 2004/06/24 18:10:02 ca Exp $')
1N/Adivert(-1)
1N/A
1N/Adefine(`_ACCESS_TABLE_', `')
1N/Adefine(`_TAG_DELIM_', `:')dnl should be in OperatorChars
1N/Aifelse(lower(_ARG2_),`skip',`define(`_ACCESS_SKIP_', `1')')
1N/Aifelse(lower(_ARG2_),`lookupdotdomain',`define(`_LOOKUPDOTDOMAIN_', `1')')
1N/Aifelse(lower(_ARG3_),`skip',`define(`_ACCESS_SKIP_', `1')')
1N/Aifelse(lower(_ARG3_),`lookupdotdomain',`define(`_LOOKUPDOTDOMAIN_', `1')')
1N/Adefine(`_ATMPF_', `<TMPF>')dnl
1N/Adnl check whether arg contains -T`'_ATMPF_
1N/Adnl unless it is a sequence map
1N/Aifelse(defn(`_ARG_'), `', `',
1N/A defn(`_ARG_'), `LDAP', `',
1N/A `ifelse(index(_ARG_, `sequence '), `0', `',
1N/A `ifelse(index(_ARG_, _ATMPF_), `-1',
1N/A `errprint(`*** WARNING: missing -T'_ATMPF_` in argument of FEATURE(`access_db',' defn(`_ARG_')`)
1N/A')
1N/A define(`_ABP_', index(_ARG_, ` '))
1N/A define(`_NARG_', `substr(_ARG_, 0, _ABP_) -T'_ATMPF_` substr(_ARG_, _ABP_)')
1N/A ')
1N/A ')
1N/A ')
1N/Aifdef(`_GREET_PAUSE_',
1N/A `errprint(`*** WARNING: FEATURE(`greet_pause') before FEATURE(`access_db')
1N/A greet_pause will not use access_db!')')
1N/A
1N/ALOCAL_CONFIG
1N/A# Access list database (for spam stomping)
1N/AKaccess ifelse(defn(`_ARG_'), `', DATABASE_MAP_TYPE -T`'_ATMPF_ MAIL_SETTINGS_DIR`access',
1N/A 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))',
1N/A defn(`_NARG_'), `', `_ARG_', `_NARG_')