NISPLUS_TABLE(5)
β¨ NISPLUS_TABLE β¨
the manual page for nisplus_table (section 5, File Formats Manual, bestie, we're in file formats land) π
πΈ NAME πΈ
nisplus_table β Postfix NIS+ client π
π SYNOPSIS π
postmap -q "string" "nisplus:[name=%s];name.name."
postmap -q - "nisplus:[name=%s];name.name." <inputfile
π¦ DESCRIPTION π¦
okay so the Postfix mail system uses optional lookup tables β like, for rewriting and mail routing and all that. these tables are usually in lmdb:, cdb:, hash:, or dbm: format.
BUT. alternatively, lookup tables can be specified as NIS+ databases. to find out what types of lookup tables your Postfix system supports, use the postconf -m command. (go ahead, run it, she's not gonna bite π«Ά)
and if you wanna test Postfix NIS+ lookup tables? use the postmap -q command, exactly like the SYNOPSIS above describes. slay.
π QUERY SYNTAX π
most of the NIS+ query is specified via the NIS+ map name. the general format of a Postfix NIS+ map name is like this:
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. (one. just one. don't be greedy π) - Postfix NIS+ map names use
";"instead of",", because the latter character is special in the Postfixmain.cffile. Postfix replaces";"characters in the map name by","before making NIS+ queries. the way it just swaps them in, iconic. - 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. periodt.
π EXAMPLE π
a NIS+ aliases map might be queried as follows:
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. order matters, babes. π
β SEE ALSO β
postmap(1), Postfix lookup table manager
π README FILES π
use "postconf readme_directory" or "postconf html_directory" to locate this information.
DATABASE_README, Postfix lookup table overview
π LICENSE π
The Secure Mailer license must be distributed with this software. (yes, literally β it has to come along with the software, no cap π)
π§ AUTHOR(S) π§
- Geoff Gibbs UK-HGMP-RC Hinxton Cambridge CB10 1SB, UK
- Adopted and adapted by:
- Wietse Venema IBM T.J. Watson Research P.O. Box 704 Yorktown Heights, NY 10598, USA
- Wietse Venema Google, Inc. 111 8th Avenue New York, NY 10011, USA
and that's the whole thing, bestie β this cutie is NISPLUS_TABLE(5) from the File Formats Manual, and yeah, that same NISPLUS_TABLE(5) is stamped at the bottom of the page like a lil signature. go configure something gorgeous. π
β¨
π¦ where this page comes from
- alpine 3.24: postfix-doc 3.11.7-r0 Β· IPL-1.0 EPL-2.0
- arch rolling: postfix 3.11.7-1 Β· EPL-2.0 OR IPL-1.0 AND BSD-4-Clause-UC
- nixos 26.05: postfix 3.11.7
- nixpkgs unstable: postfix 3.11.7
- ubuntu stonking: postfix 3.11.7-1ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms