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.20120521.etc.tar.gz / bradford.20120521.etc.tar / etc / postfix / canonical < prev    next >
Text File  |  2006-05-02  |  11KB  |  267 lines

  1. # CANONICAL(5)                                                      CANONICAL(5)
  2. # NAME
  3. #        canonical - Postfix canonical table format
  4. # SYNOPSIS
  5. #        postmap /etc/postfix/canonical
  6. #        postmap -q "string" /etc/postfix/canonical
  7. #        postmap -q - /etc/postfix/canonical <inputfile
  8. # DESCRIPTION
  9. #        The  optional canonical(5) table specifies an address map-
  10. #        ping for local and non-local  addresses.  The  mapping  is
  11. #        used  by the cleanup(8) daemon, before mail is stored into
  12. #        the queue.  The address mapping is recursive.
  13. #        Normally, the canonical(5) table is specified  as  a  text
  14. #        file  that serves as input to the postmap(1) command.  The
  15. #        result, an indexed file in dbm or db format, is  used  for
  16. #        fast  searching  by  the  mail system. Execute the command
  17. #        "postmap /etc/postfix/canonical" in order to  rebuild  the
  18. #        indexed file after changing the text file.
  19. #        When  the  table  is provided via other means such as NIS,
  20. #        LDAP or SQL, the same lookups are  done  as  for  ordinary
  21. #        indexed files.
  22. #        Alternatively,  the  table  can  be provided as a regular-
  23. #        expression map where patterns are given as regular expres-
  24. #        sions,  or lookups can be directed to TCP-based server. In
  25. #        that case, the lookups are done in  a  slightly  different
  26. #        way  as  described below under "REGULAR EXPRESSION TABLES"
  27. #        and "TCP-BASED TABLES".
  28. #        By default the canonical(5) mapping affects  both  message
  29. #        header  addresses  (i.e. addresses that appear inside mes-
  30. #        sages) and message envelope addresses  (for  example,  the
  31. #        addresses  that are used in SMTP protocol commands). Think
  32. #        Sendmail rule set S3, if you  like.   This  is  controlled
  33. #        with the canonical_classes parameter.
  34. #        NOTE: Postfix versions 2.2 and later rewrite message head-
  35. #        ers from remote SMTP clients only if  the  client  matches
  36. #        the  local_header_rewrite_clients  parameter,  or  if  the
  37. #        remote_header_rewrite_domain configuration parameter spec-
  38. #        ifies  a non-empty value. To get the behavior before Post-
  39. #        fix   2.2,   specify    "local_header_rewrite_clients    =
  40. #        static:all".
  41. #        Typically, one would use the canonical(5) table to replace
  42. #        login  names  by  Firstname.Lastname,  or  to   clean   up
  43. #        addresses produced by legacy mail systems.
  44. #        The  canonical(5)  mapping is not to be confused with vir-
  45. #        tual domain support. Use the virtual(5) map for that  pur-
  46. #        pose.
  47. #        The  canonical(5) mapping is not to be confused with local
  48. #        aliasing.  Use the aliases(5) map for that purpose.
  49. # TABLE FORMAT
  50. #        The input format for the postmap(1) command is as follows:
  51. #        pattern result
  52. #               When  pattern matches a mail address, replace it by
  53. #               the corresponding result.
  54. #        blank lines and comments
  55. #               Empty lines and whitespace-only lines are  ignored,
  56. #               as  are  lines whose first non-whitespace character
  57. #               is a `#'.
  58. #        multi-line text
  59. #               A logical line starts with non-whitespace  text.  A
  60. #               line  that starts with whitespace continues a logi-
  61. #               cal line.
  62. # TABLE SEARCH ORDER
  63. #        With lookups from indexed files such as DB or DBM, or from
  64. #        networked  tables  such  as NIS, LDAP or SQL, patterns are
  65. #        tried in the order as listed below:
  66. #        user@domain address
  67. #               Replace user@domain by address. This form  has  the
  68. #               highest precedence.
  69. #               This  is  useful  to clean up addresses produced by
  70. #               legacy mail systems.  It can also be used  to  pro-
  71. #               duce  Firstname.Lastname  style  addresses, but see
  72. #               below for a simpler solution.
  73. #        user address
  74. #               Replace user@site by address when site is equal  to
  75. #               $myorigin,  when  site is listed in $mydestination,
  76. #               or  when  it  is  listed  in  $inet_interfaces   or
  77. #               $proxy_interfaces.
  78. #               This  form  is  useful for replacing login names by
  79. #               Firstname.Lastname.
  80. #        @domain address
  81. #               Replace other addresses in domain by address.  This
  82. #               form has the lowest precedence.
  83. # RESULT ADDRESS REWRITING
  84. #        The lookup result is subject to address rewriting:
  85. #        o      When  the  result  has  the  form @otherdomain, the
  86. #               result becomes the same user in otherdomain.
  87. #        o      When "append_at_myorigin=yes", append  "@$myorigin"
  88. #               to addresses without "@domain".
  89. #        o      When "append_dot_mydomain=yes", append ".$mydomain"
  90. #               to addresses without ".domain".
  91. # ADDRESS EXTENSION
  92. #        When a mail address localpart contains the optional recip-
  93. #        ient  delimiter  (e.g., user+foo@domain), the lookup order
  94. #        becomes: user+foo@domain, user@domain, user+foo, user, and
  95. #        @domain.
  96. #        The   propagate_unmatched_extensions   parameter  controls
  97. #        whether an unmatched address extension  (+foo)  is  propa-
  98. #        gated to the result of table lookup.
  99. # REGULAR EXPRESSION TABLES
  100. #        This  section  describes how the table lookups change when
  101. #        the table is given in the form of regular expressions. For
  102. #        a  description  of regular expression lookup table syntax,
  103. #        see regexp_table(5) or pcre_table(5).
  104. #        Each pattern is a regular expression that  is  applied  to
  105. #        the entire address being looked up. Thus, user@domain mail
  106. #        addresses are not broken up into their  user  and  @domain
  107. #        constituent parts, nor is user+foo broken up into user and
  108. #        foo.
  109. #        Patterns are applied in the order as specified in the  ta-
  110. #        ble,  until  a  pattern  is  found that matches the search
  111. #        string.
  112. #        Results are the same as with indexed  file  lookups,  with
  113. #        the  additional feature that parenthesized substrings from
  114. #        the pattern can be interpolated as $1, $2 and so on.
  115. # TCP-BASED TABLES
  116. #        This section describes how the table lookups  change  when
  117. #        lookups are directed to a TCP-based server. For a descrip-
  118. #        tion of the TCP client/server lookup protocol, see tcp_ta-
  119. #        ble(5).  This feature is not available up to and including
  120. #        Postfix version 2.2.
  121. #        Each lookup operation uses the entire address once.  Thus,
  122. #        user@domain  mail  addresses  are not broken up into their
  123. #        user and @domain constituent parts, nor is user+foo broken
  124. #        up into user and foo.
  125. #        Results are the same as with indexed file lookups.
  126. # BUGS
  127. #        The  table format does not understand quoting conventions.
  128. # CONFIGURATION PARAMETERS
  129. #        The following main.cf parameters are especially  relevant.
  130. #        The  text  below  provides  only  a parameter summary. See
  131. #        postconf(5) for more details including examples.
  132. #        canonical_classes
  133. #               What addresses are  subject  to  canonical  address
  134. #               mapping.
  135. #        canonical_maps
  136. #               List of canonical mapping tables.
  137. #        recipient_canonical_maps
  138. #               Address  mapping  lookup  table  for  envelope  and
  139. #               header recipient addresses.
  140. #        sender_canonical_maps
  141. #               Address  mapping  lookup  table  for  envelope  and
  142. #               header sender addresses.
  143. #        propagate_unmatched_extensions
  144. #               A  list  of  address rewriting or forwarding mecha-
  145. #               nisms that propagate an address extension from  the
  146. #               original  address  to  the result.  Specify zero or
  147. #               more  of  canonical,   virtual,   alias,   forward,
  148. #               include, or generic.
  149. #        Other parameters of interest:
  150. #        inet_interfaces
  151. #               The  network  interface  addresses that this system
  152. #               receives mail on.  You need to stop and start Post-
  153. #               fix when this parameter changes.
  154. #        local_header_rewrite_clients
  155. #               Rewrite message header addresses in mail from these
  156. #               clients and update incomplete  addresses  with  the
  157. #               domain name in $myorigin or $mydomain; either don't
  158. #               rewrite message headers from other clients at  all,
  159. #               or  rewrite  message  headers and update incomplete
  160. #               addresses  with  the  domain   specified   in   the
  161. #               remote_header_rewrite_domain parameter.
  162. #        proxy_interfaces
  163. #               Other interfaces that this machine receives mail on
  164. #               by way of a proxy agent or network address transla-
  165. #               tor.
  166. #        masquerade_classes
  167. #               List  of  address  classes subject to masquerading:
  168. #               zero or more of  envelope_sender,  envelope_recipi-
  169. #               ent, header_sender, header_recipient.
  170. #        masquerade_domains
  171. #               List  of  domains  that hide their subdomain struc-
  172. #               ture.
  173. #        masquerade_exceptions
  174. #               List of user names that are not subject to  address
  175. #               masquerading.
  176. #        mydestination
  177. #               List  of  domains  that  this mail system considers
  178. #               local.
  179. #        myorigin
  180. #               The domain that is appended to locally-posted mail.
  181. #        owner_request_special
  182. #               Give special treatment to owner-xxx and xxx-request
  183. #               addresses.
  184. #        remote_header_rewrite_domain
  185. #               Don't rewrite message headers from  remote  clients
  186. #               at all when this parameter is empty; otherwise, re-
  187. #               write message  headers  and  append  the  specified
  188. #               domain name to incomplete addresses.
  189. # SEE ALSO
  190. #        cleanup(8), canonicalize and enqueue mail
  191. #        postmap(1), Postfix lookup table manager
  192. #        postconf(5), configuration parameters
  193. #        virtual(5), virtual aliasing
  194. # README FILES
  195. #        Use  "postconf  readme_directory" or "postconf html_direc-
  196. #        tory" to locate this information.
  197. #        DATABASE_README, Postfix lookup table overview
  198. #        ADDRESS_REWRITING_README, address rewriting guide
  199. # LICENSE
  200. #        The Secure Mailer license must be  distributed  with  this
  201. #        software.
  202. # AUTHOR(S)
  203. #        Wietse Venema
  204. #        IBM T.J. Watson Research
  205. #        P.O. Box 704
  206. #        Yorktown Heights, NY 10598, USA
  207. #                                                                   CANONICAL(5)
  208.