xref: /freebsd/contrib/sendmail/cf/feature/virtusertable.m4 (revision ee7b0571c2c18bdec848ed2044223cc88db29bd8)
1c2aa98e2SPeter Wemmdivert(-1)
2c2aa98e2SPeter Wemm#
35dd76dd0SGregory Neil Shapiro# Copyright (c) 1998, 1999, 2001-2002 Proofpoint, Inc. and its suppliers.
406f25ae9SGregory Neil Shapiro#	All rights reserved.
5c2aa98e2SPeter Wemm# Copyright (c) 1983 Eric P. Allman.  All rights reserved.
6c2aa98e2SPeter Wemm# Copyright (c) 1988, 1993
7c2aa98e2SPeter Wemm#	The Regents of the University of California.  All rights reserved.
8c2aa98e2SPeter Wemm#
9c2aa98e2SPeter Wemm# By using this file, you agree to the terms and conditions set
10c2aa98e2SPeter Wemm# forth in the LICENSE file which can be found at the top level of
11c2aa98e2SPeter Wemm# the sendmail distribution.
12c2aa98e2SPeter Wemm#
13c2aa98e2SPeter Wemm#
14c2aa98e2SPeter Wemm
15c2aa98e2SPeter Wemmdivert(0)
16*4313cc83SGregory Neil ShapiroVERSIONID(`$Id: virtusertable.m4,v 8.24 2013-11-22 20:51:11 ca Exp $')
17c2aa98e2SPeter Wemmdivert(-1)
18c2aa98e2SPeter Wemm
1906f25ae9SGregory Neil Shapirodefine(`_VIRTUSER_TABLE_', `')
2006f25ae9SGregory Neil Shapiro
2106f25ae9SGregory Neil ShapiroLOCAL_CONFIG
2206f25ae9SGregory Neil Shapiro# Virtual user table (maps incoming users)
2340266059SGregory Neil ShapiroKvirtuser ifelse(defn(`_ARG_'), `', DATABASE_MAP_TYPE MAIL_SETTINGS_DIR`virtusertable',
24e92d3f3fSGregory Neil Shapiro		 defn(`_ARG_'), `LDAP', `ldap -1 -v sendmailMTAMapValue,sendmailMTAMapSearch:FILTER:sendmailMTAMapObject,sendmailMTAMapURL:URL:sendmailMTAMapObject -k (&(objectClass=sendmailMTAMapObject)(|(sendmailMTACluster=${sendmailMTACluster})(sendmailMTAHost=$j))(sendmailMTAMapName=virtuser)(sendmailMTAKey=%0))',
2506f25ae9SGregory Neil Shapiro		 `_ARG_')
26