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, 68 guest(s) and 0 member(s) that are online.

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

  

local



SYNOPSIS

       local [generic Postfix daemon options]


DESCRIPTION

       The  local  daemon  processes  delivery  requests from the
       Postfix queue manager to deliver mail to local recipients.
       Each  delivery  request  specifies  a queue file, a sender
       address, a domain or host to deliver to, and one  or  more
       recipients.   This program expects to be run from the mas­
       ter(8) process manager.

       The local daemon updates queue files and marks  recipients
       as finished, or it informs the queue manager that delivery
       should be tried again at a later  time.  Delivery  problem
       reports  are  sent  to the bounce(8) or defer(8) daemon as
       appropriate.


SYSTEM-WIDE AND USER-LEVEL ALIASING

       The system administrator can set up one  or  more  system-
       wide sendmail-style alias databases.  Users can have send­
       mail-style ~/.forward files.  Mail for name  is  delivered
       to  the  alias name, to destinations in ~name/.forward, to
       the mailbox owned by the user name, or it is sent back  as
       undeliverable.

       The  system  administrator can specify a comma/space sepa­
       rated list of  ~/.forward  like  files  through  the  for­
       ward_path  configuration  parameter.  Upon  delivery,  the
       local delivery agent tries each pathname in the list until
       a file is found.  The forward_path parameter is subject to
       interpolation of $user (recipient username), $home (recip­
       ient home directory), $shell (recipient shell), $recipient
       (complete  recipient   address),   $extension   (recipient
       address  extension),  $domain  (recipient  domain),  local
       (entire recipient address localpart) and $recipient_delim­
       iter.  The  forms  ${name?value}  and ${name:value} expand
       conditionally to value when $name  is  (is  not)  defined.
       Characters  that  may have special meaning to the shell or
       file system are replaced  by  underscores.   The  list  of
       acceptable characters is specified with the forward_expan­
       sion_filter configuration parameter.

       An alias or ~/.forward file may list  any  combination  of
       external   commands,  destination  file  names,  :include:
       directives, or mail addresses.  See aliases(5) for a  pre­
       cise  description. Each line in a user's .forward file has
       the same syntax as the right-hand part of an alias.

       When an address is  found  in  its  own  alias  expansion,
       delivery  is  made  to  the  user  instead. When a user is
       listed in the user's own ~/.forward file, delivery is made
       to  the  user's mailbox instead.  An empty ~/.forward file
       ted  as  a new message, so that each recipient has a sepa­
       rate on-file delivery status record.

       In order to stop mail forwarding loops early, the software
       adds  an  optional  Delivered-To: header with the envelope
       recipient address. If mail arrives for a recipient that is
       already  listed  in a Delivered-To: header, the message is
       bounced.


MAILBOX DELIVERY

       The default per-user mailbox is a file in  the  UNIX  mail
       spool  directory (/var/mail/user or /var/spool/mail/user);
       the location can be specified with  the  mail_spool_direc­
       tory  configuration  parameter. Specify a name ending in /
       for qmail-compatible maildir delivery.

       Alternatively, the per-user mailbox can be a file  in  the
       user's  home  directory  with  a  name  specified  via the
       home_mailbox configuration parameter. Specify  a  relative
       path name. Specify a name ending in / for qmail-compatible
       maildir delivery.

       Mailbox delivery can be delegated to an  external  command
       specified  with  the mailbox_command configuration parame­
       ter. The command  executes  with  the  privileges  of  the
       recipient  user  (exception:  in case of delivery as root,
       the   command   executes   with    the    privileges    of
       default_privs).

       Mailbox  delivery  can be delegated to alternative message
       transports specified in the  master.cf  file.   The  mail­
       box_transport  configuration parameter specifies a message
       transport that is to be used  for  all  local  recipients,
       regardless  of  whether  they are found in the UNIX passwd
       database.  The fallback_transport  parameter  specifies  a
       message transport for recipients that are not found in the
       UNIX passwd database.

       In the case of UNIX-style mailbox delivery, the local dae­
       mon prepends a "From sender time_stamp" envelope header to
       each message, prepends an X-Original-To: header  with  the
       recipient   address  as  given  to  Postfix,  prepends  an
       optional Delivered-To: header with the envelope  recipient
       address,  prepends a Return-Path: header with the envelope
       sender address, prepends a > character to lines  beginning
       with  "From  ", and appends an empty line.  The mailbox is
       locked for exclusive access while delivery is in progress.
       In  case  of  problems, an attempt is made to truncate the
       mailbox to its original length.

       In the case of maildir delivery, the local daemon prepends
       an  optional  Delivered-To: header with the final envelope

       A limited amount of command output  (standard  output  and
       standard  error) is captured for inclusion with non-deliv­
       ery status reports.  A command is forcibly  terminated  if
       it  does  not  complete within command_time_limit seconds.
       Command exit status codes are expected to follow the  con­
       ventions defined in <sysexits.h>.

       A  limited amount of message context is exported via envi­
       ronment variables. Characters that may have special  mean­
       ing to the shell are replaced by underscores.  The list of
       acceptable characters is specified with the command_expan­
       sion_filter configuration parameter.

       SHELL  The recipient user's login shell.

       HOME   The recipient user's home directory.

       USER   The bare recipient name.

       EXTENSION
              The optional recipient address extension.

       DOMAIN The recipient address domain part.

       LOGNAME
              The bare recipient name.

       LOCAL  The entire recipient address localpart (text to the
              left of the rightmost @ character).

       RECIPIENT
              The entire recipient address.

       SENDER The entire sender address.

       The PATH environment variable is always reset to a system-
       dependent  default  path,  and environment variables whose
       names are blessed by the export_environment  configuration
       parameter are exported unchanged.

       The current working directory is the mail queue directory.

       The local daemon prepends a "From sender time_stamp" enve­
       lope  header  to  each message, prepends an X-Original-To:
       header with the recipient address  as  given  to  Postfix,
       prepends an optional Delivered-To: header with the recipi­
       ent envelope address, prepends a Return-Path: header  with
       the sender envelope address, and appends no empty line.


EXTERNAL FILE DELIVERY

       The  delivery  format  depends on the destination filename
       "From ", and appends an empty line.  The  envelope  sender
       address is available in the Return-Path: header.  When the
       destination is a regular file, it is locked for  exclusive
       access while delivery is in progress. In case of problems,
       an attempt is made to truncate a regular file to its orig­
       inal length.

       In the case of maildir delivery, the local daemon prepends
       an optional Delivered-To: header with the envelope recipi­
       ent  address,  and  prepends an X-Original-To: header with
       the recipient address as given to Postfix.   The  envelope
       sender address is available in the Return-Path: header.


ADDRESS EXTENSION

       The  optional  recipient_delimiter configuration parameter
       specifies how to separate address  extensions  from  local
       recipient names.

       For  example,  with  "recipient_delimiter  =  +", mail for
       name+foo is delivered to the  alias  name+foo  or  to  the
       alias  name,  to  the  destinations  listed in ~name/.for­
       ward+foo or in ~name/.forward, to the mailbox owned by the
       user name, or it is sent back as undeliverable.

       In all cases the local daemon prepends an optional `Deliv­
       ered-To: name+foo' header line.


DELIVERY RIGHTS

       Deliveries to external files  and  external  commands  are
       made with the rights of the receiving user on whose behalf
       the delivery is made.  In the absence of a  user  context,
       the  local  daemon  uses the owner rights of the :include:
       file or alias database.  When those files are owned by the
       superuser, delivery is made with the rights specified with
       the default_privs configuration parameter.


STANDARDS

       RFC 822 (ARPA Internet Text Messages)


DIAGNOSTICS

       Problems and transactions are logged to syslogd(8).   Cor­
       rupted  message files are marked so that the queue manager
       can move them to the corrupt queue afterwards.

       Depending on the setting of the notify_classes  parameter,
       the  postmaster  is notified of bounces and of other trou­
       ble.


BUGS

       For security  reasons,  the  message  delivery  status  of
       external  commands  or  of  external files is never check­
       pointed to file. As a result, the program may occasionally
       alias_maps
              List of alias databases.

       biff   Enable  or disable notification of new mail via the
              comsat network service.

       expand_owner_alias
              When delivering to an alias that has an owner- com­
              panion  alias,  set  the envelope sender address to
              the right-hand side of  the  owner  alias,  instead
              using of the left-hand side address.

       export_environment
              List of names of environment parameters that can be
              exported to non-Postfix processes.

       forward_path
              Search list for .forward files.  The names are sub­
              ject to $name expansion.

       local_command_shell
              Shell  to  use  for external command execution (for
              example, /some/where/smrsh -c).  When  a  shell  is
              specified, it is invoked even when the command con­
              tains no shell built-in commands  or  meta  charac­
              ters.

       owner_request_special
              Give special treatment to owner-xxx and xxx-request
              addresses.

       prepend_delivered_header
              Prepend  an  optional  Delivered-To:  header   upon
              external  forwarding,  delivery to command or file.
              Specify zero or more of:  command,  file,  forward.
              Turning  off  Delivered-To: when forwarding mail is
              not recommended.

       recipient_delimiter
              Separator between username and address extension.

       require_home_directory
              Require that a recipient's home directory is acces­
              sible  by the recipient before attempting delivery.
              Defer delivery otherwise.


Mailbox delivery

       fallback_transport
              Message transport for recipients that are not found
              in  the UNIX passwd database.  This parameter over­
              rides luser_relay.


              Note:  you  must  specify  "local_recipient_maps ="
              (i.e. empty) in the  main.cf  file,  otherwise  the
              Postfix  SMTP  server will reject mail for non-UNIX
              accounts with  "User  unknown  in  local  recipient
              table".

       mail_spool_directory
              Directory  with  UNIX-style  mailboxes. The default
              pathname is system dependent.  Specify a path  end­
              ing in / for maildir-style delivery.

       mailbox_command
              External  command  to use for mailbox delivery. The
              command  executes  with  the  recipient  privileges
              (exception:  root).  The string is subject to $name
              expansions.

       mailbox_command_maps
              Lookup tables with per-recipient external  commands
              to  use  for  mailbox delivery. Behavior is as with
              mailbox_command.

       mailbox_transport
              Message transport to use for  mailbox  delivery  to
              all local recipients, whether or not they are found
              in the UNIX passwd database.  This parameter  over­
              rides  all other configuration parameters that con­
              trol mailbox delivery, including luser_relay.

              Note: if you use this feature to receive  mail  for
              non-UNIX   accounts   then   you  must  update  the
              local_recipient_maps setting in the  main.cf  file,
              otherwise  the Postfix SMTP server will reject mail
              for non-UNIX accounts with "User unknown  in  local
              recipient table".


Locking controls

       deliver_lock_attempts
              Limit  the  number of attempts to acquire an exclu­
              sive lock on a mailbox or external file.

       deliver_lock_delay
              Time in  seconds  between  successive  attempts  to
              acquire an exclusive lock.

       stale_lock_time
              Limit the time after which a stale lock is removed.

       mailbox_delivery_lock
              What file locking method(s) to use when  delivering
              to  a  UNIX-style  mailbox.  The default setting is
              partial input line.

       local_destination_concurrency_limit
              Limit the number of parallel deliveries to the same
              user.    The   default  limit  is  taken  from  the
              default_destination_concurrency_limit parameter.

       local_destination_recipient_limit
              Limit the number of recipients per  message  deliv­
              ery.    The   default   limit  is  taken  from  the
              default_destination_recipient_limit parameter.

       mailbox_size_limit
              Limit the size of a mailbox  etc.  file  (any  file
              that  is written to upon delivery).  Set to zero to
              disable the limit.


Security controls

       allow_mail_to_commands
              Restrict the usage of  mail  delivery  to  external
              command.   Specify zero or more of: alias, forward,
              include.

       allow_mail_to_files
              Restrict the usage of  mail  delivery  to  external
              file.   Specify  zero  or  more of: alias, forward,
              include.

       command_expansion_filter
              What characters are  allowed  to  appear  in  $name
              expansions  of  mailbox_command. Illegal characters
              are replaced by underscores.

       default_privs
              Default rights for delivery  to  external  file  or
              command.

       forward_expansion_filter
              What  characters  are  allowed  to  appear in $name
              expansions of forward_path. Illegal characters  are
              replaced by underscores.


HISTORY

       The  Delivered-To:  header  appears in the qmail system by
       Daniel Bernstein.

       The maildir structure  appears  in  the  qmail  system  by
       Daniel Bernstein.


SEE ALSO

       aliases(5) format of alias database
       bounce(8) non-delivery status reports

                                                         LOCAL(8)
  
Help us cut cost by not downloading the whole site!
Use of automated download sofware ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and therefore is expressedly prohibited. For more details on this, take a look here

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.09 Seconds