home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20110725.etc.tar.gz / bradford.20110725.etc.tar / etc / postfix / generic < prev    next >
Text File  |  2006-05-02  |  10KB  |  235 lines

  1. # GENERIC(5)                                             GENERIC(5)
  2. # NAME
  3. #        generic - Postfix generic table format
  4. # SYNOPSIS
  5. #        postmap /etc/postfix/generic
  6. #        postmap -q "string" /etc/postfix/generic
  7. #        postmap -q - /etc/postfix/generic <inputfile
  8. # DESCRIPTION
  9. #        The optional generic(5) table specifies an address mapping
  10. #        that applies when mail is delivered. This is the  opposite
  11. #        of  canonical(5)  mapping,  which  applies  when  mail  is
  12. #        received.
  13. #        Typically, one would use the generic(5) table on a  system
  14. #        that  does  not have a valid Internet domain name and that
  15. #        uses  something  like  localdomain.local   instead.    The
  16. #        generic(5)  table  is  then  used by the smtp(8) client to
  17. #        transform local mail addresses into  valid  Internet  mail
  18. #        addresses  when  mail  has to be sent across the Internet.
  19. #        See the EXAMPLE section at the end of this document.
  20. #        The  generic(5)  mapping  affects  both   message   header
  21. #        addresses (i.e. addresses that appear inside messages) and
  22. #        message envelope addresses  (for  example,  the  addresses
  23. #        that are used in SMTP protocol commands).
  24. #        Normally, the generic(5) table is specified as a text file
  25. #        that serves as  input  to  the  postmap(1)  command.   The
  26. #        result,  an  indexed file in dbm or db format, is used for
  27. #        fast searching by the mail  system.  Execute  the  command
  28. #        "postmap  /etc/postfix/generic"  in  order  to rebuild the
  29. #        indexed file after changing the text file.
  30. #        When the table is provided via other means  such  as  NIS,
  31. #        LDAP  or  SQL,  the  same lookups are done as for ordinary
  32. #        indexed files.
  33. #        Alternatively, the table can be  provided  as  a  regular-
  34. #        expression map where patterns are given as regular expres-
  35. #        sions, or lookups can be directed to TCP-based server.  In
  36. #        that  case,  the  lookups are done in a slightly different
  37. #        way as described below under "REGULAR  EXPRESSION  TABLES"
  38. #        and "TCP-BASED TABLES".
  39. # TABLE FORMAT
  40. #        The input format for the postmap(1) command is as follows:
  41. #        pattern result
  42. #               When pattern matches a mail address, replace it  by
  43. #               the corresponding result.
  44. #        blank lines and comments
  45. #               Empty  lines and whitespace-only lines are ignored,
  46. #               as are lines whose first  non-whitespace  character
  47. #               is a `#'.
  48. #        multi-line text
  49. #               A  logical  line starts with non-whitespace text. A
  50. #               line that starts with whitespace continues a  logi-
  51. #               cal line.
  52. # TABLE SEARCH ORDER
  53. #        With lookups from indexed files such as DB or DBM, or from
  54. #        networked tables such as NIS, LDAP or  SQL,  patterns  are
  55. #        tried in the order as listed below:
  56. #        user@domain address
  57. #               Replace  user@domain  by address. This form has the
  58. #               highest precedence.
  59. #        user address
  60. #               Replace user@site by address when site is equal  to
  61. #               $myorigin,  when  site is listed in $mydestination,
  62. #               or  when  it  is  listed  in  $inet_interfaces   or
  63. #               $proxy_interfaces.
  64. #        @domain address
  65. #               Replace other addresses in domain by address.  This
  66. #               form has the lowest precedence.
  67. # RESULT ADDRESS REWRITING
  68. #        The lookup result is subject to address rewriting:
  69. #        o      When the result  has  the  form  @otherdomain,  the
  70. #               result becomes the same user in otherdomain.
  71. #        o      When  "append_at_myorigin=yes", append "@$myorigin"
  72. #               to addresses without "@domain".
  73. #        o      When "append_dot_mydomain=yes", append ".$mydomain"
  74. #               to addresses without ".domain".
  75. # ADDRESS EXTENSION
  76. #        When a mail address localpart contains the optional recip-
  77. #        ient delimiter (e.g., user+foo@domain), the  lookup  order
  78. #        becomes: user+foo@domain, user@domain, user+foo, user, and
  79. #        @domain.
  80. #        The  propagate_unmatched_extensions   parameter   controls
  81. #        whether  an  unmatched  address extension (+foo) is propa-
  82. #        gated to the result of table lookup.
  83. # REGULAR EXPRESSION TABLES
  84. #        This section describes how the table lookups  change  when
  85. #        the table is given in the form of regular expressions. For
  86. #        a description of regular expression lookup  table  syntax,
  87. #        see regexp_table(5) or pcre_table(5).
  88. #        Each  pattern  is  a regular expression that is applied to
  89. #        the entire address being looked up. Thus, user@domain mail
  90. #        addresses  are  not  broken up into their user and @domain
  91. #        constituent parts, nor is user+foo broken up into user and
  92. #        foo.
  93. #        Patterns  are  applied  in  the  order as specified in the
  94. #        table, until a pattern is found that  matches  the  search
  95. #        string.
  96. #        Results  are  the  same as with indexed file lookups, with
  97. #        the additional feature that parenthesized substrings  from
  98. #        the pattern can be interpolated as $1, $2 and so on.
  99. # TCP-BASED TABLES
  100. #        This  section  describes how the table lookups change when
  101. #        lookups are directed to a TCP-based server. For a descrip-
  102. #        tion   of  the  TCP  client/server  lookup  protocol,  see
  103. #        tcp_table(5).  This feature is not  available  up  to  and
  104. #        including Postfix version 2.2.
  105. #        Each lookup operation uses the entire address once.  Thus,
  106. #        user@domain mail addresses are not broken  up  into  their
  107. #        user and @domain constituent parts, nor is user+foo broken
  108. #        up into user and foo.
  109. #        Results are the same as with indexed file lookups.
  110. # EXAMPLE
  111. #        The following shows a  generic  mapping  with  an  indexed
  112. #        file.   When  mail is sent to a remote host via SMTP, this
  113. #        replaces his@localdomain.local by his  ISP  mail  address,
  114. #        replaces  her@localdomain.local  by  her ISP mail address,
  115. #        and replaces other local addresses  by  his  ISP  account,
  116. #        with  an address extension of +local (this example assumes
  117. #        that the ISP supports "+" style address extensions).
  118. #        /etc/postfix/main.cf:
  119. #                smtp_generic_maps = hash:/etc/postfix/generic
  120. #        /etc/postfix/generic:
  121. #                his@localdomain.local   hisaccount@hisisp.example
  122. #                her@localdomain.local   heraccount@herisp.example
  123. #                @localdomain.local      hisaccount+local@hisisp.example
  124. #        Execute the command "postmap  /etc/postfix/generic"  when-
  125. #        ever  the table is changed.  Instead of hash, some systems
  126. #        use dbm database files. To find out what tables your  sys-
  127. #        tem supports use the command "postconf -m".
  128. # BUGS
  129. #        The  table format does not understand quoting conventions.
  130. # CONFIGURATION PARAMETERS
  131. #        The following main.cf parameters are especially  relevant.
  132. #        The  text  below  provides  only  a parameter summary. See
  133. #        postconf(5) for more details including examples.
  134. #        smtp_generic_maps
  135. #               Address  mapping  lookup  table  for  envelope  and
  136. #               header  sender and recipient addresses while deliv-
  137. #               ering mail via SMTP.
  138. #        propagate_unmatched_extensions
  139. #               A list of address rewriting  or  forwarding  mecha-
  140. #               nisms  that propagate an address extension from the
  141. #               original address to the result.   Specify  zero  or
  142. #               more   of   canonical,   virtual,  alias,  forward,
  143. #               include, or generic.
  144. #        Other parameters of interest:
  145. #        inet_interfaces
  146. #               The network interface addresses  that  this  system
  147. #               receives mail on.  You need to stop and start Post-
  148. #               fix when this parameter changes.
  149. #        proxy_interfaces
  150. #               Other interfaces that this machine receives mail on
  151. #               by way of a proxy agent or network address transla-
  152. #               tor.
  153. #        mydestination
  154. #               List of domains that  this  mail  system  considers
  155. #               local.
  156. #        myorigin
  157. #               The domain that is appended to locally-posted mail.
  158. #        owner_request_special
  159. #               Give special treatment to owner-xxx and xxx-request
  160. #               addresses.
  161. # SEE ALSO
  162. #        postmap(1), Postfix lookup table manager
  163. #        postconf(5), configuration parameters
  164. #        smtp(8), Postfix SMTP client
  165. # README FILES
  166. #        Use  "postconf  readme_directory" or "postconf html_direc-
  167. #        tory" to locate this information.
  168. #        ADDRESS_REWRITING_README, address rewriting guide
  169. #        DATABASE_README, Postfix lookup table overview
  170. #        STANDARD_CONFIGURATION_README, configuration examples
  171. # LICENSE
  172. #        The Secure Mailer license must be  distributed  with  this
  173. #        software.
  174. # HISTORY
  175. #        A genericstable feature appears in the Sendmail MTA.
  176. #        This feature is available in Postfix 2.2 and later.
  177. # AUTHOR(S)
  178. #        Wietse Venema
  179. #        IBM T.J. Watson Research
  180. #        P.O. Box 704
  181. #        Yorktown Heights, NY 10598, USA
  182. #                                                        GENERIC(5)
  183.