EDITMAP(8)
π EDITMAP π
okay bestie, so editmap is a System Manager's Manual girly (section 8, we love a root-coded queen π) and she's here to query and edit single records in database maps for sendmail. let's get into it β¨
πΈ NAME πΈ
editmap β query and edit single records in database maps for sendmail π¦
β¨ SYNOPSIS β¨
editmap [-C file] [-N] [-f] [-q|-u|-x] maptype mapname key [ "value ..."
]
π DESCRIPTION π
so basically, editmap queries or edits one record in database maps used by the keyed map lookups in sendmail(8). you pass the arguments on the command line, and the output (for queries, obvi) goes straight to standard output. main character energy fr fr π
depending on how it was compiled, editmap handles different database formats β and you pick which one with the maptype parameter. the options are:
dbmβ DBM format maps. this one needs thendbm(3)library. lowkey vintage πbtreeβ B-Tree format maps. this needs the new Berkeley DB library.hashβ Hash format maps. also needs the Berkeley DB library.cdbβ CDB (Constant DataBase) format maps. this one needs thetinycdblibrary. β¨
and here's a lil detail that matters: if the TrustedUser option is set in the sendmail configuration file and editmap is invoked as root, then the generated files will be owned by the specified TrustedUser. no cap π
π© Flags π©
-Cβ use the specifiedsendmailconfiguration file when it's looking up theTrustedUseroption. π-Nβ include the null byte that terminates strings in the map (this is for alias maps, iykyk). π«Ά-fβ normally all upper case letters in the key get folded to lower case. this flag disables that behaviour. it's meant to mesh with the-fflag in theKline insendmail.cf. and heads up: the value is never case folded. periodt π-qβ query the map for the specified key. if it's found, print the value to standard output and exit with0. if it's not found, print an error message to stdout and exit withEX_UNAVAILABLE. π-uβ update the record for key with value, or insert a new record if one doesn't exist yet. exits with0on success orEX_IOERRon failure. slay when it works, tragic when it doesn't π-xβ deletes the specific key from the map. exits with0on success orEX_IOERRon failure. bye bestie π
π SEE ALSO π
sendmail(8), makemap(8) β go read your sisters, they're iconic too π
π HISTORY π
the editmap command has no history. not me being mysterious on purpose πβ¨
and that's the whole page bestie, you ate it up π
this was from the System Manager's Manual, dated $Date: 2013-11-22 20:51:26 $ β yeah she's a 2013 baddie and she still runs the group chat. love that for her πβ
π¦ where this page comes from
- debian bookworm: sendmail-bin 8.17.1.9-2+deb12u2 Β· other-Sendmail
- debian trixie: sendmail-bin 8.18.1-6+b1 Β· other-Sendmail
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- opensuse-leap 16.0: sendmail 8.18.1-160000.3.1 Β· Sendmail
- opensuse-leap 16.0: sendmail 8.18.1-160000.3.1 Β· Sendmail
- opensuse-leap 16.0: sendmail 8.18.1-160000.3.1 Β· Sendmail
- opensuse-leap 16.0: sendmail 8.18.1-160000.3.1 Β· Sendmail
- ubuntu noble: sendmail-bin 8.18.1-2 Β· other-Sendmail
- ubuntu questing: sendmail-bin 8.18.1-6
- ubuntu resolute: sendmail-bin 8.18.2-1 Β· other-Sendmail
- ubuntu stonking: sendmail-bin 8.18.2-2build1 Β· other-Sendmail
- Copyright (c) 2000-2001, 2003 Proofpoint, Inc. and its suppliers
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms