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

  1. # TRANSPORT(5)                                         TRANSPORT(5)
  2. # NAME
  3. #        transport - Postfix transport table format
  4. # SYNOPSIS
  5. #        postmap /etc/postfix/transport
  6. #        postmap -q "string" /etc/postfix/transport
  7. #        postmap -q - /etc/postfix/transport <inputfile
  8. # DESCRIPTION
  9. #        The  optional  transport(5) table specifies a mapping from
  10. #        email addresses  to  message  delivery  transports  and/or
  11. #        relay hosts. The mapping is used by the trivial-rewrite(8)
  12. #        daemon.
  13. #        This mapping overrides the default routing that  is  built
  14. #        into Postfix:
  15. #        mydestination
  16. #               A  list of domains that is by default delivered via
  17. #               $local_transport. This also includes  domains  that
  18. #               match $inet_interfaces or $proxy_interfaces.
  19. #        virtual_mailbox_domains
  20. #               A  list of domains that is by default delivered via
  21. #               $virtual_transport.
  22. #        relay_domains
  23. #               A list of domains that is by default delivered  via
  24. #               $relay_transport.
  25. #        any other destination
  26. #               Mail for any other destination is by default deliv-
  27. #               ered via $default_transport.
  28. #        Normally, the transport(5) table is specified  as  a  text
  29. #        file  that serves as input to the postmap(1) command.  The
  30. #        result, an indexed file in dbm or db format, is  used  for
  31. #        fast  searching  by  the  mail system. Execute the command
  32. #        "postmap /etc/postfix/transport" in order to  rebuild  the
  33. #        indexed file after changing the transport table.
  34. #        When  the  table  is provided via other means such as NIS,
  35. #        LDAP or SQL, the same lookups are  done  as  for  ordinary
  36. #        indexed files.
  37. #        Alternatively,  the  table  can  be provided as a regular-
  38. #        expression map where patterns are given as regular expres-
  39. #        sions,  or lookups can be directed to TCP-based server. In
  40. #        that case, the lookups are done in  a  slightly  different
  41. #        way  as  described below under "REGULAR EXPRESSION TABLES"
  42. #        and "TCP-BASED TABLES".
  43. # TABLE FORMAT
  44. #        The input format for the postmap(1) command is as follows:
  45. #        pattern result
  46. #               When  pattern  matches  the  recipient  address  or
  47. #               domain, use the corresponding result.
  48. #        blank lines and comments
  49. #               Empty lines and whitespace-only lines are  ignored,
  50. #               as  are  lines whose first non-whitespace character
  51. #               is a `#'.
  52. #        multi-line text
  53. #               A logical line starts with non-whitespace  text.  A
  54. #               line  that starts with whitespace continues a logi-
  55. #               cal line.
  56. #        The pattern specifies an email address, a domain name,  or
  57. #        a  domain  name  hierarchy, as described in section "TABLE
  58. #        LOOKUP".
  59. #        The result is of the form transport:nexthop and  specifies
  60. #        how or where to deliver mail. This is described in section
  61. #        "RESULT FORMAT".
  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+extension@domain transport:nexthop
  67. #               Deliver  mail  for  user+extension@domain   through
  68. #               transport to nexthop.
  69. #        user@domain transport:nexthop
  70. #               Deliver  mail  for user@domain through transport to
  71. #               nexthop.
  72. #        domain transport:nexthop
  73. #               Deliver mail for domain through transport  to  nex-
  74. #               thop.
  75. #        .domain transport:nexthop
  76. #               Deliver  mail  for  any subdomain of domain through
  77. #               transport to nexthop. This applies  only  when  the
  78. #               string  transport_maps  is  not  listed in the par-
  79. #               ent_domain_matches_subdomains  configuration   set-
  80. #               ting.   Otherwise, a domain name matches itself and
  81. #               its subdomains.
  82. #        Note 1: the special pattern * represents any address (i.e.
  83. #        it functions as the wild-card pattern).
  84. #        Note  2:  the  null  recipient  address  is  looked  up as
  85. #        $empty_address_recipient@$myhostname (default: mailer-dae-
  86. #        mon@hostname).
  87. #        Note  3:  user@domain  or  user+extension@domain lookup is
  88. #        available in Postfix 2.0 and later.
  89. # RESULT FORMAT
  90. #        The lookup result is of the form  transport:nexthop.   The
  91. #        transport  field  specifies a mail delivery transport such
  92. #        as smtp or local. The nexthop field  specifies  where  and
  93. #        how to deliver mail.
  94. #        The  transport field specifies the name of a mail delivery
  95. #        transport (the first name of a mail delivery service entry
  96. #        in the Postfix master.cf file).
  97. #        The  interpretation  of  the  nexthop  field  is transport
  98. #        dependent. In the case of SMTP, specify  a  service  on  a
  99. #        non-default  port  as  host:service,  and disable MX (mail
  100. #        exchanger) DNS lookups with [host] or [host]:port. The  []
  101. #        form is required when you specify an IP address instead of
  102. #        a hostname.
  103. #        A null transport and null nexthop  result  means  "do  not
  104. #        change":  use  the delivery transport and nexthop informa-
  105. #        tion that would be used when the  entire  transport  table
  106. #        did not exist.
  107. #        A  non-null  transport  field  with  a  null nexthop field
  108. #        resets the nexthop information to the recipient domain.
  109. #        A null transport field with non-null  nexthop  field  does
  110. #        not modify the transport information.
  111. # EXAMPLES
  112. #        In  order to deliver internal mail directly, while using a
  113. #        mail relay for all other mail, specify a  null  entry  for
  114. #        internal  destinations  (do not change the delivery trans-
  115. #        port or the nexthop information) and  specify  a  wildcard
  116. #        for all other destinations.
  117. #             my.domain    :
  118. #             .my.domain   :
  119. #             *         smtp:outbound-relay.my.domain
  120. #        In  order  to send mail for example.com and its subdomains
  121. #        via the uucp transport to the UUCP host named example:
  122. #             example.com      uucp:example
  123. #             .example.com     uucp:example
  124. #        When no nexthop host name is  specified,  the  destination
  125. #        domain  name  is  used instead. For example, the following
  126. #        directs mail for user@example.com via the  slow  transport
  127. #        to  a  mail exchanger for example.com.  The slow transport
  128. #        could be configured to run at most one delivery process at
  129. #        a time:
  130. #             example.com      slow:
  131. #        When no transport is specified, Postfix uses the transport
  132. #        that matches the address  domain  class  (see  DESCRIPTION
  133. #        above).   The following sends all mail for example.com and
  134. #        its subdomains to host gateway.example.com:
  135. #             example.com      :[gateway.example.com]
  136. #             .example.com     :[gateway.example.com]
  137. #        In the above example, the [] suppress  MX  lookups.   This
  138. #        prevents  mail  routing loops when your machine is primary
  139. #        MX host for example.com.
  140. #        In the case of delivery via SMTP, one  may  specify  host-
  141. #        name:service instead of just a host:
  142. #             example.com      smtp:bar.example:2025
  143. #        This directs mail for user@example.com to host bar.example
  144. #        port 2025. Instead of a numerical port a symbolic name may
  145. #        be used. Specify [] around the hostname if MX lookups must
  146. #        be disabled.
  147. #        The error mailer can be used to bounce mail:
  148. #             .example.com     error:mail for *.example.com is  not
  149. #        deliverable
  150. #        This  causes  all mail for user@anything.example.com to be
  151. #        bounced.
  152. # REGULAR EXPRESSION TABLES
  153. #        This section describes how the table lookups  change  when
  154. #        the table is given in the form of regular expressions. For
  155. #        a description of regular expression lookup  table  syntax,
  156. #        see regexp_table(5) or pcre_table(5).
  157. #        Each  pattern  is  a regular expression that is applied to
  158. #        the   entire    address    being    looked    up.    Thus,
  159. #        some.domain.hierarchy  is  not  looked  up  via its parent
  160. #        domains, nor is user+foo@domain looked up as  user@domain.
  161. #        Patterns  are  applied  in  the  order as specified in the
  162. #        table, until a pattern is found that  matches  the  search
  163. #        string.
  164. #        Results  are  the  same as with indexed file lookups, with
  165. #        the additional feature that parenthesized substrings  from
  166. #        the pattern can be interpolated as $1, $2 and so on.
  167. # TCP-BASED TABLES
  168. #        This  section  describes how the table lookups change when
  169. #        lookups are directed to a TCP-based server. For a descrip-
  170. #        tion   of  the  TCP  client/server  lookup  protocol,  see
  171. #        tcp_table(5).  This feature is not  available  up  to  and
  172. #        including Postfix version 2.2.
  173. #        Each  lookup  operation  uses the entire recipient address
  174. #        once.  Thus, some.domain.hierarchy is not  looked  up  via
  175. #        its  parent  domains,  nor is user+foo@domain looked up as
  176. #        user@domain.
  177. #        Results are the same as with indexed file lookups.
  178. # CONFIGURATION PARAMETERS
  179. #        The following main.cf parameters are especially  relevant.
  180. #        The  text  below  provides  only  a parameter summary. See
  181. #        postconf(5) for more details including examples.
  182. #        empty_address_recipient
  183. #               The address that is looked up instead of  the  null
  184. #               sender address.
  185. #        parent_domain_matches_subdomains
  186. #               List  of  Postfix features that use domain.tld pat-
  187. #               terns  to  match  sub.domain.tld  (as  opposed   to
  188. #               requiring .domain.tld patterns).
  189. #        transport_maps
  190. #               List of transport lookup tables.
  191. # SEE ALSO
  192. #        trivial-rewrite(8), rewrite and resolve addresses
  193. #        postconf(5), configuration parameters
  194. #        postmap(1), Postfix lookup table manager
  195. # README FILES
  196. #        Use  "postconf  readme_directory" or "postconf html_direc-
  197. #        tory" to locate this information.
  198. #        DATABASE_README, Postfix lookup table overview
  199. #        FILTER_README, external content filter
  200. # LICENSE
  201. #        The Secure Mailer license must be  distributed  with  this
  202. #        software.
  203. # AUTHOR(S)
  204. #        Wietse Venema
  205. #        IBM T.J. Watson Research
  206. #        P.O. Box 704
  207. #        Yorktown Heights, NY 10598, USA
  208. #                                                      TRANSPORT(5)
  209.