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 / virtual < prev    next >
Text File  |  2006-05-02  |  12KB  |  280 lines

  1. # VIRTUAL(5)                                                          VIRTUAL(5)
  2. # NAME
  3. #        virtual - Postfix virtual alias table format
  4. # SYNOPSIS
  5. #        postmap /etc/postfix/virtual
  6. #        postmap -q "string" /etc/postfix/virtual
  7. #        postmap -q - /etc/postfix/virtual <inputfile
  8. # DESCRIPTION
  9. #        The  optional  virtual(5)  alias  table rewrites recipient
  10. #        addresses for all local, virtual and remote mail  destina-
  11. #        tions.   This is unlike the aliases(5) table which is used
  12. #        only for local(8) delivery.  Virtual  aliasing  is  recur-
  13. #        sive,  and is implemented by the Postfix cleanup(8) daemon
  14. #        before mail is queued.
  15. #        The main applications of virtual aliasing are:
  16. #        o      To redirect mail for one address  to  one  or  more
  17. #               addresses.
  18. #        o      To   implement  virtual  alias  domains  where  all
  19. #               addresses  are  aliased  to  addresses   in   other
  20. #               domains.
  21. #               Virtual  alias  domains are not to be confused with
  22. #               the virtual mailbox domains  that  are  implemented
  23. #               with  the  Postfix  virtual(8) mail delivery agent.
  24. #               With  virtual  mailbox  domains,   each   recipient
  25. #               address can have its own mailbox.
  26. #        Virtual  aliasing  is  applied  only to recipient envelope
  27. #        addresses, and does not  affect  message  headers.   Think
  28. #        Sendmail  rule  set S0, if you like. Use canonical(5) map-
  29. #        ping to rewrite header and envelope addresses in  general.
  30. #        Normally,  the  virtual(5)  alias  table is specified as a
  31. #        text file that serves as input to the postmap(1)  command.
  32. #        The  result,  an indexed file in dbm or db format, is used
  33. #        for fast searching by the mail system. Execute the command
  34. #        "postmap  /etc/postfix/virtual"  in  order  to rebuild the
  35. #        indexed file after changing the text file.
  36. #        When the table is provided via other means  such  as  NIS,
  37. #        LDAP  or  SQL,  the  same lookups are done as for ordinary
  38. #        indexed files.
  39. #        Alternatively, the table can be  provided  as  a  regular-
  40. #        expression map where patterns are given as regular expres-
  41. #        sions, or lookups can be directed to TCP-based server.  In
  42. #        that  case,  the  lookups are done in a slightly different
  43. #        way as described below under "REGULAR  EXPRESSION  TABLES"
  44. #        and "TCP-BASED TABLES".
  45. # TABLE FORMAT
  46. #        The input format for the postmap(1) command is as follows:
  47. #        pattern result
  48. #               When pattern matches a mail address, replace it  by
  49. #               the corresponding result.
  50. #        blank lines and comments
  51. #               Empty  lines and whitespace-only lines are ignored,
  52. #               as are lines whose first  non-whitespace  character
  53. #               is a `#'.
  54. #        multi-line text
  55. #               A  logical  line starts with non-whitespace text. A
  56. #               line that starts with whitespace continues a  logi-
  57. #               cal line.
  58. # TABLE SEARCH ORDER
  59. #        With lookups from indexed files such as DB or DBM, or from
  60. #        networked tables such as NIS, LDAP or  SQL,  patterns  are
  61. #        tried in the order as listed below:
  62. #        user@domain address, address, ...
  63. #               Redirect  mail  for  user@domain  to address.  This
  64. #               form has the highest precedence.
  65. #        user address, address, ...
  66. #               Redirect mail for user@site to address when site is
  67. #               equal  to $myorigin, when site is listed in $mydes-
  68. #               tination, or when it is listed in  $inet_interfaces
  69. #               or $proxy_interfaces.
  70. #               This  functionality  overlaps with functionality of
  71. #               the local aliases(5) database.  The  difference  is
  72. #               that virtual(5) mapping can be applied to non-local
  73. #               addresses.
  74. #        @domain address, address, ...
  75. #               Redirect mail for other users in domain to address.
  76. #               This form has the lowest precedence.
  77. # RESULT ADDRESS REWRITING
  78. #        The lookup result is subject to address rewriting:
  79. #        o      When  the  result  has  the  form @otherdomain, the
  80. #               result becomes the same user in otherdomain.   This
  81. #               works only for the first address in a multi-address
  82. #               lookup result.
  83. #        o      When "append_at_myorigin=yes", append  "@$myorigin"
  84. #               to addresses without "@domain".
  85. #        o      When "append_dot_mydomain=yes", append ".$mydomain"
  86. #               to addresses without ".domain".
  87. # ADDRESS EXTENSION
  88. #        When a mail address localpart contains the optional recip-
  89. #        ient  delimiter  (e.g., user+foo@domain), the lookup order
  90. #        becomes: user+foo@domain, user@domain, user+foo, user, and
  91. #        @domain.
  92. #        The   propagate_unmatched_extensions   parameter  controls
  93. #        whether an unmatched address extension  (+foo)  is  propa-
  94. #        gated to the result of table lookup.
  95. # VIRTUAL ALIAS DOMAINS
  96. #        Besides  virtual aliases, the virtual alias table can also
  97. #        be used to implement virtual alias domains. With a virtual
  98. #        alias  domain,  all  recipient  addresses  are  aliased to
  99. #        addresses in other domains.
  100. #        Virtual alias domains are not to be confused with the vir-
  101. #        tual mailbox domains that are implemented with the Postfix
  102. #        virtual(8)  mail  delivery  agent.  With  virtual  mailbox
  103. #        domains,  each recipient address can have its own mailbox.
  104. #        With a virtual alias domain, the virtual  domain  has  its
  105. #        own  user  name  space. Local (i.e. non-virtual) usernames
  106. #        are not visible in a virtual alias domain. In  particular,
  107. #        local  aliases(5)  and local mailing lists are not visible
  108. #        as localname@virtual-alias.domain.
  109. #        Support for a virtual alias domain looks like:
  110. #        /etc/postfix/main.cf:
  111. #            virtual_alias_maps = hash:/etc/postfix/virtual
  112. #            Note: some systems use dbm databases instead of  hash.
  113. #            See  the output from "postconf -m" for available data-
  114. #            base types.
  115. #        /etc/postfix/virtual:
  116. #            virtual-alias.domain anything (right-hand content does not matter)
  117. #            postmaster@virtual-alias.domain      postmaster
  118. #            user1@virtual-alias.domain   address1
  119. #            user2@virtual-alias.domain   address2, address3
  120. #        The virtual-alias.domain anything entry is required for  a
  121. #        virtual alias domain. Without this entry, mail is rejected
  122. #        with "relay access denied", or bounces  with  "mail  loops
  123. #        back to myself".
  124. #        Do  not  specify virtual alias domain names in the main.cf
  125. #        mydestination or relay_domains configuration parameters.
  126. #        With a virtual  alias  domain,  the  Postfix  SMTP  server
  127. #        accepts   mail  for  known-user@virtual-alias.domain,  and
  128. #        rejects  mail  for  unknown-user@virtual-alias.domain   as
  129. #        undeliverable.
  130. #        Instead  of  specifying  the virtual alias domain name via
  131. #        the virtual_alias_maps table, you may also specify it  via
  132. #        the main.cf virtual_alias_domains configuration parameter.
  133. #        This latter parameter uses the same syntax as the  main.cf
  134. #        mydestination configuration parameter.
  135. # REGULAR EXPRESSION TABLES
  136. #        This  section  describes how the table lookups change when
  137. #        the table is given in the form of regular expressions. For
  138. #        a  description  of regular expression lookup table syntax,
  139. #        see regexp_table(5) or pcre_table(5).
  140. #        Each pattern is a regular expression that  is  applied  to
  141. #        the entire address being looked up. Thus, user@domain mail
  142. #        addresses are not broken up into their  user  and  @domain
  143. #        constituent parts, nor is user+foo broken up into user and
  144. #        foo.
  145. #        Patterns are applied in the order as specified in the  ta-
  146. #        ble,  until  a  pattern  is  found that matches the search
  147. #        string.
  148. #        Results are the same as with indexed  file  lookups,  with
  149. #        the  additional feature that parenthesized substrings from
  150. #        the pattern can be interpolated as $1, $2 and so on.
  151. # TCP-BASED TABLES
  152. #        This section describes how the table lookups  change  when
  153. #        lookups are directed to a TCP-based server. For a descrip-
  154. #        tion of the TCP client/server lookup protocol, see tcp_ta-
  155. #        ble(5).  This feature is not available up to and including
  156. #        Postfix version 2.2.
  157. #        Each lookup operation uses the entire address once.  Thus,
  158. #        user@domain  mail  addresses  are not broken up into their
  159. #        user and @domain constituent parts, nor is user+foo broken
  160. #        up into user and foo.
  161. #        Results are the same as with indexed file lookups.
  162. # BUGS
  163. #        The  table format does not understand quoting conventions.
  164. # CONFIGURATION PARAMETERS
  165. #        The following main.cf parameters are  especially  relevant
  166. #        to  this  topic.  See  the Postfix main.cf file for syntax
  167. #        details and for default values. Use the  "postfix  reload"
  168. #        command after a configuration change.
  169. #        virtual_alias_maps
  170. #               List of virtual aliasing tables.
  171. #        virtual_alias_domains
  172. #               List  of  virtual alias domains. This uses the same
  173. #               syntax as the mydestination parameter.
  174. #        propagate_unmatched_extensions
  175. #               A list of address rewriting  or  forwarding  mecha-
  176. #               nisms  that propagate an address extension from the
  177. #               original address to the result.   Specify  zero  or
  178. #               more   of   canonical,   virtual,  alias,  forward,
  179. #               include, or generic.
  180. #        Other parameters of interest:
  181. #        inet_interfaces
  182. #               The network interface addresses  that  this  system
  183. #               receives mail on.  You need to stop and start Post-
  184. #               fix when this parameter changes.
  185. #        mydestination
  186. #               List of domains that  this  mail  system  considers
  187. #               local.
  188. #        myorigin
  189. #               The  domain  that  is  appended to any address that
  190. #               does not have a domain.
  191. #        owner_request_special
  192. #               Give special treatment to owner-xxx and xxx-request
  193. #               addresses.
  194. #        proxy_interfaces
  195. #               Other interfaces that this machine receives mail on
  196. #               by way of a proxy agent or network address transla-
  197. #               tor.
  198. # SEE ALSO
  199. #        cleanup(8), canonicalize and enqueue mail
  200. #        postmap(1), Postfix lookup table manager
  201. #        postconf(5), configuration parameters
  202. #        canonical(5), canonical address mapping
  203. # README FILES
  204. #        Use  "postconf  readme_directory" or "postconf html_direc-
  205. #        tory" to locate this information.
  206. #        DATABASE_README, Postfix lookup table overview
  207. #        ADDRESS_REWRITING_README, address rewriting guide
  208. #        VIRTUAL_README, domain hosting guide
  209. # LICENSE
  210. #        The Secure Mailer license must be  distributed  with  this
  211. #        software.
  212. # AUTHOR(S)
  213. #        Wietse Venema
  214. #        IBM T.J. Watson Research
  215. #        P.O. Box 704
  216. #        Yorktown Heights, NY 10598, USA
  217. #                                                                     VIRTUAL(5)
  218.