13 \fBpostmap -q "\fIstring\fB" "nisplus:[\fIname\fB=%s];\fIname.name.\fB"\fR
15 \fBpostmap -q - "nisplus:[\fIname\fB=%s];\fIname.name.\fB"\fR <\fIinputfile\fR
19 The Postfix mail system uses optional lookup tables.
20 These tables are usually in \fBdbm\fR or \fBdb\fR format.
21 Alternatively, lookup tables can be specified as NIS+
24 To find out what types of lookup tables your Postfix system
25 supports use the "\fBpostconf -m\fR" command.
27 To test Postfix NIS+ lookup tables, use the "\fBpostmap -q\fR"
28 command as described in the SYNOPSIS above.
34 Most of the NIS+ query is specified via the NIS+ map name. The
35 general format of a Postfix NIS+ map name is as follows:
38 \fBnisplus:[\fIname\fB=%s];\fIname.name.name\fB.:\fIcolumn\fR
41 Postfix NIS+ map names differ from what one normally
42 would use with commands such as \fBniscat\fR:
44 With each NIS+ table lookup, "\fB%s\fR" is replaced by a
45 version of the lookup string. There can be only one
46 "\fB%s\fR" instance in a Postfix NIS+ map name.
48 Postfix NIS+ map names use "\fB;\fR" instead of "\fB,\fR",
49 because the latter character is special in the Postfix
50 main.cf file. Postfix replaces "\fB;\fR" characters in
51 the map name by "\fB,\fR" before making NIS+ queries.
53 The ":\fIcolumn\fR" part in the NIS+ map name is not part
54 of the actual NIS+ query. Instead, it specifies the number
55 of the table column that provides the lookup result. When
56 no ":\fIcolumn\fR" is specified the first column (1) is used.
62 A NIS+ aliases map might be queried as follows:
65 alias_maps = dbm:/etc/mail/aliases,
66 nisplus:[alias=%s];mail_aliases.org_dir.$mydomain.:1
69 This queries the local aliases file before the NIS+ file.
73 postmap(1), Postfix lookup table manager
79 Use "\fBpostconf readme_directory\fR" or
80 "\fBpostconf html_directory\fR" to locate this information.
83 DATABASE_README, Postfix lookup table overview
89 The Secure Mailer license must be distributed with this software.
99 Adopted and adapted by:
101 IBM T.J. Watson Research
103 Yorktown Heights, NY 10598, USA