NISPLUS_TABLE(5) | NISPLUS_TABLE(5) |
postmap -q - "nisplus:[name=%s];name.name." <inputfile
To find out what types of lookup tables your Postfix system supports use the " postconf -m" command.
To test Postfix NIS+ lookup tables, use the "postmap -q" command as described in the SYNOPSIS above.
nisplus:[name=%s];name.name.name.:column
Postfix NIS+ map names differ from what one normally would use with commands such as niscat:
• | With each NIS+ table lookup, "%s" is replaced by a version of the lookup string. There can be only one " %s" instance in a Postfix NIS+ map name. |
• | Postfix NIS+ map names use ";" instead of ",", because the latter character is special in the Postfix main.cf file. Postfix replaces " ;" characters in the map name by " ," before making NIS+ queries. |
• | The ":column" part in the NIS+ map name is not part of the actual NIS+ query. Instead, it specifies the number of the table column that provides the lookup result. When no ": column" is specified the first column (1) is used. |
alias_maps = dbm:/etc/mail/aliases,
nisplus:[alias=%s];mail_aliases.org_dir.$mydomain.:1
This queries the local aliases file before the NIS+ file.
Adopted and adapted by:
Wietse Venema
IBM T.J. Watson Research
P.O. Box 704
Yorktown Heights, NY 10598, USA
August 25, 2011 |