1 OpenLDAP rcpt500 mail query server README
5 This is a mail-query server that answers LDAP white pages queries.
6 It is designed to be run out of your mail systems alias file, or the
7 equivalent. It expects to be fed the entire contents (including
8 headers) of an RFC822 message via standard input. It parses the
9 message, looking in the Subject: field or the body of the message
10 for a command that it recognizes.
12 The commands currently recognized are listed in the file cmd.c. They
13 all map into two actual operations the server performs: an X.500 query
14 or a help command. If no recognizable command is found in the
15 Subject: or body of the message, help is assumed. An appropriate
16 reply is sent to the sender of the message in response to the command.
18 The help command returns the contents of the file rcpt500.help. You
19 can modify the contents as appropriate for your local site.
21 The query command performs a series of LDAP searches to try to find
22 a person that matches the object of the query. If more than one
23 X.500 entry matches, a list is returned. If exactly one is matched,
24 detailed information is returned. Here is an example message and rcpt500
28 Mail ldap-query@example.com
29 Subject: find tim howes
33 Message-Id: <199209161526.AA12041@example.com>
34 Date: Wed, 16 Sep 1992 11:26:17 -0400
35 From: "LDAP Query Program" <ldap-query@example.com>
36 Subject: Re: find tim howes
37 In-Reply-To: Your message of "Wed, 16 Sep 1992 11:26:12 -0400"
38 <199209161526.AA26144@terminator.cc.example.com>
39 To: "Mark Smith" <mcs@terminator.cc.example.com>
41 One exact match was found for 'tim howes':
42 "Timothy A Howes, Information Technology Division, Faculty and Staff"
49 tim@terminator.cc.umich.edu
51 +1 313 764 5140 (argus building)
57 Ann Arbor, MI 48103-4943
59 Systems Research Programmer II, Research Systems
63 If you want to try out rcpt500 yourself before installing it at your site,
64 send a message to ldap-query@umich.edu (we have a server running
65 there that serves University of Michigan white pages information).
68 CONFIGURING AND RUNNING rcpt500 AT YOUR LOCAL SITE
69 You will probably need to make changes to the file ldapconfig.h.edit to
70 configure rcpt500 for your local site. There are comments in the file
71 describing each variable you might need to change. Then type make in
72 the rcpt500 directory to make sure things are up to date. You will
73 need to install the rcpt500 binary and help files (make install). This
74 all assumes you have built the LDAP libraries already. If in doubt,
75 just do a make from the top of the LDAP distribution.
77 You will then need to set up an alias that your users can send mail
78 to that will feed the messages to rcpt500. At our site, we run sendmail
79 so the alias is in /usr/lib/aliases and looks like:
81 ldap-query: "|/usr/local/etc/rcpt500 -l"
83 The available command line options for rcpt500 are:
84 -l enable logging of requests via the syslog
86 -h ldaphost specify LDAP server host to connect to
87 -b searchbase specify starting point of LDAP searches
88 -a don't deference aliases during searches
89 -s stripcount remove "stripcount" DN components from user
90 friendly form names that are displayed
91 -z sizelimit return at most "sizelimit" entries
92 -u dapuser DN to bind to LDAP as when searching
94 The search and display behavior is defined in the ldapfilter.conf and
95 ldaptemplates.conf files.
98 FEEDBACK / PROBLEM REPORTS / DISCUSSIONS
100 The software is provided as is without any express or implied
101 warranty, but you can report problems using our Issue Tracking
104 http://www.OpenLDAP.com/its/
106 or by sending e-mail to:
108 OpenLDAP-its@OpenLDAP.org
110 Mailing lists are available. Please see:
112 http://www.OpenLDAP.com/lists/