xref: /titanic_41/usr/src/cmd/sendmail/cf/feature/virtusertable.m4 (revision 70025d765b044c6d8594bb965a2247a61e991a99)
1divert(-1)
2#
3# Copyright (c) 1998, 1999, 2001-2002 Sendmail, Inc. and its suppliers.
4#	All rights reserved.
5# Copyright (c) 1983 Eric P. Allman.  All rights reserved.
6# Copyright (c) 1988, 1993
7#	The Regents of the University of California.  All rights reserved.
8#
9# By using this file, you agree to the terms and conditions set
10# forth in the LICENSE file which can be found at the top level of
11# the sendmail distribution.
12#
13# ident	"%Z%%M%	%I%	%E% SMI"
14#
15
16divert(0)
17VERSIONID(`$Id: virtusertable.m4,v 8.23 2002/06/27 23:23:57 gshapiro Exp $')
18divert(-1)
19
20define(`_VIRTUSER_TABLE_', `')
21
22LOCAL_CONFIG
23# Virtual user table (maps incoming users)
24Kvirtuser ifelse(defn(`_ARG_'), `', DATABASE_MAP_TYPE MAIL_SETTINGS_DIR`virtusertable',
25		 defn(`_ARG_'), `LDAP', `ldap -1 -v sendmailMTAMapValue,sendmailMTAMapSearch:FILTER:sendmailMTAMapObject,sendmailMTAMapURL:URL:sendmailMTAMapObject -k (&(objectClass=sendmailMTAMapObject)(|(sendmailMTACluster=${sendmailMTACluster})(sendmailMTAHost=$j))(sendmailMTAMapName=virtuser)(sendmailMTAKey=%0))',
26		 `_ARG_')
27