Annotation of 43BSDTahoe/usr.lib/sendmail/cf/m4/nstcpldm.m4, revision 1.1.1.1

1.1       root        1: divert(10)
                      2: #
                      3: #  Sendmail
                      4: #  Copyright (c) 1983  Eric P. Allman
                      5: #  Berkeley, California
                      6: #
                      7: #  Copyright (c) 1983 Regents of the University of California.
                      8: #  All rights reserved.  The Berkeley software License Agreement
                      9: #  specifies the terms and conditions for redistribution.
                     10: #
                     11: #      @(#)nstcpldm.m4 1.7 (Berkeley) 3/31/88
                     12: #
                     13: divert(0)
                     14: ############################################################
                     15: ############################################################
                     16: #####
                     17: #####          Local Domain TCP Mailer specification
                     18: #####
                     19: #####  Messages processed by this specification are assumed to remain
                     20: #####  the local domain -- hence, they must be canonical according to
                     21: #####  RFC822 etc.
                     22: #####
                     23: #####  This mailer is to be used with the Berkeley Name Server.
                     24: #####
                     25: ############################################################
                     26: ############################################################
                     27: 
                     28: Mtcpld,        P=[IPC], F=mDFMueXLC, S=17, R=27, A=IPC $h, E=\r\n
                     29: 
                     30: S17
                     31: 
                     32: # cleanup forwarding a bit
                     33: R$*<$*>$*              $1$2$3                          defocus
                     34: R$*                    $:$>3$1                         canonicalize
                     35: R$*%$*<@$w>            $:$>9$1%$2                      user%localhost@localdomain
                     36: 
                     37: # pass <route-addr>'s through
                     38: R<@$+>$*               $@<@$[$1$]>$2                   resolve <route-addr>
                     39: 
                     40: # map colons to dots everywhere
                     41: R$*:$*                 $1.$2                           map colons to dots
                     42: 
                     43: # output local host as [email protected]
                     44: R$-                    $@$1<@$w>                       user w/o host
                     45: R$+<@$w>               $@$1<@$w>                       this host
                     46: R$+<@$=w>              $@$1<@$w>                       or an alias
                     47: R$+<@$->               $:$1<@$[$2$]>                   ask nameserver
                     48: R$+<@$w>               $@$1<@$w>                       this host
                     49: R$+<@$->               $@$1<@$2.$D>                    if nameserver fails
                     50: 
                     51: # if not local, and not a "fake" domain, ask the nameserver
                     52: R$+<@$+.$~I>           $@$1<@$[$2.$3$]>                [email protected]
                     53: R$+<@[$+]>             $@$1<@[$2]>                     already ok
                     54: 
                     55: # output fake domains as user%fake@relay
                     56: 
                     57: R$+<@$+.CSNET>         $@$1%$2.CSNET<@relay.cs.net>    [email protected]
                     58: R$+<@$+.BITNET>                $@$1%$2.BITNET<@jade.berkeley.edu>       [email protected]
                     59: R$+<@$+.UUCP>          $@$2!$1<@$w>                    [email protected]
                     60: 
                     61: 
                     62: S27
                     63: 
                     64: # cleanup
                     65: R$*<$*>$*              $1$2$3                          defocus
                     66: R$*                    $:$>3$1                         now canonical form
                     67: R$*%$*<@$w>            $:$>9$1%$2                      user%localhost@localdomain
                     68: 
                     69: # pass <route-addr>'s through
                     70: R<@$+>$*               $@<@$[$1$]>$2                   resolve <route-addr>
                     71: 
                     72: # map colons to dots everywhere
                     73: R$*:$*                 $1.$2                           map colons to dots
                     74: 
                     75: # output local host as [email protected]
                     76: R$-                    $@$1<@$w>                       user w/o host
                     77: R$+<@$w>               $@$1<@$w>                       this host
                     78: R$+<@$=w>              $@$1<@$w>                       or an alias
                     79: R$+<@$->               $:$1<@$[$2$]>                   ask nameserver
                     80: R$+<@$w>               $@$1<@$w>                       this host
                     81: R$+<@$->               $@$1<@$2.$D>                    if nameserver fails
                     82: 
                     83: # if not local, and not a "fake" domain, ask the nameserver
                     84: R$+<@$+.$~I>           $@$1<@$[$2.$3$]>                [email protected]
                     85: R$+<@[$+]>             $@$1<@[$2]>                     already ok
                     86: 
                     87: # output fake domains as user%fake@relay
                     88: 
                     89: R$+<@$+.CSNET>         $@$1%$2.CSNET<@relay.cs.net>    [email protected]
                     90: R$+<@$+.BITNET>                $@$1<@$2.BITNET>                [email protected]
                     91: R$+<@$+.UUCP>          $@$2!$1                         [email protected]
                     92: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.