info > postmap(1)

POSTMAP(1) General Commands Manual POSTMAP(1)

📛 NAME

postmap - Postfix lookup table management

🚀 Quick Reference

Use CaseCommandDescription
Create/Update mappostmap file_nameCreate or update a Postfix lookup table from a source file.
Query mappostmap -q key file_type:file_nameSearch a map for a key and print the value.
Delete keypostmap -d key file_type:file_nameSearch a map for a key and remove the entry.
List allpostmap -s file_type:file_nameRetrieve all database elements.
Incremental updatepostmap -i file_type:file_nameRead entries from stdin and do not truncate existing database.
Verbose loggingpostmap -v file_nameEnable verbose logging for debugging.

📋 SYNOPSIS

postmap [-bfFhimnNoprsuUvw] [-c config_dir] [-d key] [-q key]
       [file_type:]file_name ...

📖 DESCRIPTION

The postmap(1) command creates or queries one or more Postfix lookup tables, or updates an existing one.

If the result files do not exist they will be created with the same group and other read permissions as their source file.

While the table update is in progress, signal delivery is postponed, and an exclusive, advisory, lock is placed on the entire table, in order to avoid surprises in spectator processes.

📄 INPUT FILE FORMAT

The format of a lookup table input file is as follows:

The key and value are processed as is, except that surrounding white space is stripped off. Whitespace in lookup keys is supported as of Postfix 3.2.

When the -F option is given, the value must specify one or more filenames separated by comma and/or whitespace; postmap(1) will concatenate the file content (with a newline character inserted between files) and will store the base64-encoded result instead of the value.

When the key specifies email address information, the localpart should be enclosed with double quotes if required by RFC 5322. For example, an address localpart that contains ";", or a localpart that starts or ends with ".".

By default the lookup key is mapped to lowercase to make the lookups case insensitive; as of Postfix 2.3 this case folding happens only with tables whose lookup keys are fixed-case strings such as btree:, dbm: or hash:. With earlier versions, the lookup key is folded even with tables where a lookup field can match both upper and lower case text, such as regexp: and pcre:. This resulted in loss of information with $number substitutions.

⚙️ COMMAND-LINE ARGUMENTS

📌 Arguments

🩺 DIAGNOSTICS

Problems are logged to the standard error stream and to syslogd(8) or postlogd(8). No output means that no problems were detected. Duplicate entries are skipped and are flagged with a warning.

postmap(1) terminates with zero exit status in case of success (including successful "postmap -q" lookup) and terminates with non-zero exit status in case of failure.

🌳 ENVIRONMENT

⚙️ CONFIGURATION PARAMETERS

The following main.cf parameters are especially relevant to this program. The text below provides only a parameter summary. See postconf(5) for more details including examples.

📚 SEE ALSO

📖 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.

✍️ AUTHOR(S)

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

postmap(1)
POSTMAP(1) General Commands Manual POSTMAP(1) 📛 NAME 🚀 Quick Reference 📋 SYNOPSIS 📖 DESCRIPTION 📄 INPUT FILE FORMAT ⚙️ COMMAND-LINE ARGUMENTS
📌 Arguments
🩺 DIAGNOSTICS 🌳 ENVIRONMENT ⚙️ CONFIGURATION PARAMETERS 📚 SEE ALSO 📖 README FILES 📜 LICENSE ✍️ AUTHOR(S)

Generated by phpman v4.9.26-1-g511901d Author: Che Dong Under GNU General Public License
2026-08-08 15:15 @216.73.216.150
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format