28.06.2014 Views

Postfix Overview - Introduction - SCN Research

Postfix Overview - Introduction - SCN Research

Postfix Overview - Introduction - SCN Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

POSTMAP(1)<br />

POSTMAP(1)<br />

Page 1 of 3<br />

NAME<br />

postmap - <strong>Postfix</strong> lookup table management<br />

SYNOPSIS<br />

postmap [-Ninrvw] [-c config_dir] [-d key] [-q key]<br />

[file_type:]file_name ...<br />

DESCRIPTION<br />

The postmap command creates or queries one or more <strong>Postfix</strong><br />

lookup tables, or updates an existing one. The input and<br />

output file formats are expected to be compatible with:<br />

makemap file_type file_name < file_name<br />

While the table update is in progress, signal delivery is<br />

postponed, and an exclusive, advisory, lock is placed on<br />

the entire table, in order to avoid surprises in spectator<br />

programs.<br />

The format of a lookup table input file is as follows:<br />

o<br />

o<br />

Blank lines are ignored. So are lines beginning<br />

with `#'.<br />

A table entry has the form<br />

key whitespace value<br />

o<br />

A line that starts with whitespace continues the<br />

preceding line.<br />

The key and value are processed as is, except that surrounding<br />

white space is stripped off. Unlike with <strong>Postfix</strong><br />

alias databases, quotes cannot be used to protect lookup<br />

keys that contain special characters such as `#' or<br />

whitespace. The key is mapped to lowercase to make mapping<br />

lookups case insensitive.<br />

Options:<br />

-N Include the terminating null character that terminates<br />

lookup keys and values. By default, <strong>Postfix</strong><br />

does whatever is the default for the host operating<br />

system.<br />

-c config_dir<br />

Read the main.cf configuration file in the named<br />

directory instead of the default configuration<br />

directory.<br />

-d key Search the specified maps for key and remove one<br />

entry per map. The exit status is zero when the<br />

requested information was found.<br />

If a key value of - is specified, the program reads<br />

key values from the standard input stream. The exit<br />

status is zero when at least one of the requested<br />

keys was found.<br />

-i Incremental mode. Read entries from standard input<br />

and do not truncate an existing database. By<br />

http://www.porcupine.org/postfix-mirror/postmap.1.html<br />

6/26/01

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!