Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Child Fund

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 214 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

postmap



SYNOPSIS

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


DESCRIPTION

       The postmap command creates or queries one or more Postfix
       lookup  tables,  or updates an existing one. The input and
       output file formats are expected to be compatible with:

           makemap file_type file_name < file_name

       If the result files do not exist they will be created with
       the  same  group  and other read permissions as the 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
       programs.

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

       ·      A table entry has the form

                   key whitespace value

       ·      Empty  lines and whitespace-only lines are ignored,
              as are lines whose first  non-whitespace  character
              is a `#'.

       ·      A  logical  line starts with non-whitespace text. A
              line that starts with whitespace continues a  logi­
              cal line.

       The  key  and  value are processed as is, except that sur­
       rounding white space is stripped off. Unlike with  Postfix
       alias  databases,  quotes cannot be used to protect lookup
       keys that  contain  special  characters  such  as  `#'  or
       whitespace. The key is mapped to lowercase to make mapping
       lookups case insensitive.

       Options:

       -N     Include the terminating null character that  termi­
              nates  lookup  keys and values. By default, Postfix
              does whatever is the default for the host operating
              system.

       -c config_dir
              Read  the  main.cf  configuration file in the named
              directory  instead  of  the  default  configuration
              directory.
              and  do  not  truncate  an  existing  database.  By
              default,  postmap  creates  a new database from the
              entries in file_name.

       -n     Don't include the terminating null  character  that
              terminates  lookup  keys  and  values.  By default,
              Postfix does whatever is the default for  the  host
              operating system.

       -o     Do  not  release  root privileges when processing a
              non-root input file. By default, postmap drops root
              privileges  and  runs  as  the  source  file  owner
              instead.

       -q key Search the specified maps for  key  and  write  the
              first  value  found  to the standard output stream.
              The exit status is zero when the requested informa­
              tion was found.

              If a key value of - is specified, the program reads
              key values  from  the  standard  input  stream  and
              writes  one  line  of key value output for each key
              that was found. The exit status  is  zero  when  at
              least one of the requested keys was found.

       -r     When  updating a table, do not warn about duplicate
              entries; silently replace them.

       -v     Enable verbose logging for debugging purposes. Mul­
              tiple  -v  options  make  the software increasingly
              verbose.

       -w     When updating a table, do not warn about  duplicate
              entries; silently ignore them.

       Arguments:

       file_type
              The type of database to be produced.

              btree  The  output  file  is  a  btree  file, named
                     file_name.db.  This  is  available  only  on
                     systems with support for db databases.

              dbm    The  output  consists  of  two  files, named
                     file_name.pag and  file_name.dir.   This  is
                     available  only  on systems with support for
                     dbm databases.

              hash   The output file  is  a  hashed  file,  named
                     file_name.db.   This  is  available  only on
                     systems with support for db databases.

       stream. No output means no problems. Duplicate entries are
       skipped and are flagged with a warning.

       postmap  terminates  with zero exit status in case of suc­
       cess (including successful postmap -q lookup)  and  termi­
       nates with non-zero exit status in case of failure.


ENVIRONMENT

       MAIL_CONFIG
              Directory with Postfix configuration files.

       MAIL_VERBOSE
              Enable verbose logging for debugging purposes.


CONFIGURATION PARAMETERS

       default_database_type
              Default  output  database  type.  On many UNIX sys­
              tems, the default database type is either  hash  or
              dbm.

       berkeley_db_create_buffer_size
              Amount  of buffer memory to be used when creating a
              Berkeley DB hash or btree lookup table.

       berkeley_db_read_buffer_size
              Amount of buffer memory to be used when  reading  a
              Berkeley DB hash or btree lookup table.


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

                                                       POSTMAP(1)
  

More information about the site can be found in the FAQ


Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
You can help in many different ways.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.12 Seconds