# @(#)samples/generic/routers 1.3 8/8/92 16:40:26 # # 05-Jan-97 amo Modified to show Virtual Domain Section # # # Virtual Domain Names.... use mutually exclusive: domains or gateways # -------------------- # # 23-Aug-96 amo Catch MX domains vor virtual hosts ( per johnl@iecc.com ) # domains: driver=pathalias, transport=domaint, # deliver using shell script always; # force use even if some other # router gets a more complete match file=domainaddr, # plain ASCII file (unsorted) proto=lsearch, # use linear search optional, # ignore if the file does not exist -required, # no required domains # # 30-Aug-96 amo Modified per Dan Trottier # Create a file map/gateway.map # # gateways: # +always, # driver = pathalias, # transport = smtp; # # file = maps/gateway.map, # proto = lsearch, # I added a , after lsearch # --- seems to fail.... infinite loop # # inet_addrs and inet_hosts are only defined when BSD networking exists # inet_addrs - match domain literals containing literal IP addresses # # For example, [128.103.1.1] will match harvard.harvard.edu on the internet. # The library routine gethostbyaddr(3N) will be called to see if a reverse # mapping to the cononical hostname is available. inet_addrs: driver=gethostbyaddr, # router to match IP domain literals transport=smtp; # deliver using SMTP over TCP/IP fail_if_error, # fail malformed domain literal addrs check_for_local, # see if this is really the local host # # 15-May-96 amo inet_hosts: comment out gethostbyname() and use BIND instead # # inet_hosts - match hostnames with gethostbyname(3N) # # Comment this out if you wish to use the bind version below, instead. # inet_hosts: # driver=gethostbyname, # match hosts with the library function # transport=smtp; # use default SMTP (may be UUCP-style) # # -required, # no required domains # -domain, # no defined domain suffixes # -only_local_domain, # don't restrict to defined domains # inet_hosts - alternate version using BIND to access the DNS # # This router is not compiled-in by default. It can be used as a # replacement for the above inet_hosts router, if your system supports # a bind compatible DNS resolver library. This should be used for # systems on the internet. inet_hosts: driver=bind, transport=smtp; # use TCP/IP SMTP for delivery defnames, # use standard domain searching defer_no_connect, # try again if the nameserver is down -local_mx_okay, # fail (don't pass through) an MX # to the local host # paths - route using a paths file, like that produced by the pathalias program paths: driver=pathalias, # general-use paths router transport=uux; # for matches, deliver over UUCP file=paths, # sorted file containing path info proto=bsearch, # use a binary search # proto=dbm, # use a dbm files optional, # ignore if the file does not exist -required, # no required domains domain=uucp, # strip ending ".uucp" before searching # uucp_neighbors - match neighbors accessible over UUCP # uucp_neighbors: driver=uuname, # use a program which returns neighbors transport=uux; cmd=/usr/bin/uuname, # specifically, use the uuname program domain=uucp, # strip ending ".uucp" before searching # smart_host - a partically specified smarthost director # # If the config file attribute smart_path is defined as a path from the # local host to a remote host, then hostnames not matched otherwise will # be sent off to the stated remote host. The config file attribute # smart_transport can be used to specify a different transport. # # If the smart_path attribute is not defined, this router is ignored. # smart_host: driver=smarthost, # special-case driver transport=uux; # by default deliver over UUCP -path, # use smart_path config file variable # path=uunet, # alternate, set path in this file # end of file