MAKEMAP(8)
π MAKEMAP β bestie edition π
okay so this is the makemap page from section 8 of the System Manager's Manual (yes, the system manager has a manual, and this is one of its pages, slay). it makes database maps for sendmail. buckle up π
β¨ NAME β¨
makemap β create database maps for sendmail πΊοΈβ¨
πΈ SYNOPSIS πΈ
makemap [-C file] [-N] [-c cachesize] [-d] [-D commentchar] [-e] [-f]
[-i type] [-l] [-o] [-r] [-s] [-t delim] [-u] [-v] maptype mapnam
π¦ DESCRIPTION π¦
so makemap creates the database maps that the keyed map lookups in sendmail(8) use. it reads input from standard input and outputs them to the mapname you indicate. no cap. π
depending on how it's compiled, makemap handles different database formats, and you pick which one with the maptype parameter. they may be:
btreeβ B-Tree format maps. this one requires the new Berkeley DB library.hashβ Hash format maps. this also requires the Berkeley DB library.cdbβ CDB (Constant DataBase) format maps. this requires the tinycdb library.implicitβ the first available format in this order:hash,dbm, andcdb. it's giving "whichever one shows up first gets the job".
in all cases, makemap reads lines from the standard input consisting of two words separated by white space. first word = the database key, second word = the value. the value may contain `%n` strings to indicate parameter substitution, and literal percents should be doubled (`%%`). blank lines and lines beginning with `#` are ignored. periodt. π§
β οΈ notice: do not usemakemapto create the aliases data base, bestie β usenewaliasesinstead, because it puts a special token into the data base thatsendmailrequires. the way that matters π
if the TrustedUser option is set in the sendmail configuration file and makemap is invoked as root, the generated files will be owned by the specified TrustedUser. π
π Flags π
-Cβ use the specified sendmail configuration file for looking up the TrustedUser option.-Nβ include the null byte that terminates strings in the map. this must match the-Nflag in thesendmail.cf`K`line. match it or suffer π-cβ use the specified hash and B-Tree cache size.-Dβ use this to specify the character to use to indicate a comment (which is ignored) instead of the default of`'#'`.-dβ allow duplicate keys in the map. this is only allowed on B-Tree format maps. if two identical keys are read, they will both be inserted into the map. double trouble π₯-eβ allow empty value (right hand side).-fβ normally all upper case letters in the key are folded to lower case. this flag disables that behaviour. it's intended to mesh with the-fflag in theKline insendmail.cf. the value is never case folded, just so you know. π-iβ use the specified type as fallback if the given maptype is not available.-lβ list supported map types. a little show-and-tell, we love it β¨-oβ append to an old file. this allows you to augment an existing file. Note: this might not be supported by all database types, e.g.,cdb. π-rβ allow replacement of existing keys. normallymakemapcomplains if you repeat a key, and does not do the insert.-sβ ignore safety checks on maps being created. this includes checking for hard or symbolic links in world writable directories. (yes that's as spicy as it sounds π₯)-tβ use the specified delim instead of white space (also for dumping a map).-uβ dump (unmap) the content of the database to standard output.-vβ verbosely print what it is doing. main character energy, narrating their own life π¬
π Example π
makemap hash /etc/mail/access < /etc/mail/access
π SEE ALSO π
π HISTORY π
the makemap command appeared in 4.4BSD. an icon, a legend, a moment in time β
and that's the whole page bestie π this one's from the System Manager's Manual, dated $Date: 2013-11-22 20:51:52 $ β yes it's been around since before you were born and it still ate. go forth and map π¦β¨
π¦ where this page comes from
- epel 10: sendmail 8.18.1-4.el10_0 Β· sendmail-8.23 AND MIT AND MIT-CMU AND BSD-3-Clause AND CDDL-1.0 AND BSD-4-Clause AND BSD-4-Clause-UC AND PostgreSQL AND ISC AND HPND-sell-variant AND mailprio
- fedora 43: sendmail 8.18.1-13.fc43 Β· sendmail-8.23 AND MIT AND MIT-CMU AND BSD-3-Clause AND CDDL-1.0 AND BSD-4-Clause AND BSD-4-Clause-UC AND PostgreSQL AND ISC AND HPND-sell-variant AND mailprio
- fedora 44: sendmail 8.18.2-2.fc44 Β· sendmail-8.23 AND MIT AND MIT-CMU AND BSD-3-Clause AND CDDL-1.0 AND BSD-4-Clause AND BSD-4-Clause-UC AND PostgreSQL AND ISC AND HPND-sell-variant AND mailprio
- fedora 44: sendmail 8.18.2-4.fc44 Β· sendmail-8.23 AND MIT AND MIT-CMU AND BSD-3-Clause AND CDDL-1.0 AND BSD-4-Clause AND BSD-4-Clause-UC AND PostgreSQL AND ISC AND HPND-sell-variant AND mailprio
- Copyright (c) 1998-2002 Proofpoint, Inc. and its suppliers
- Copyright (c) 1988, 1991, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms