Annotation of 43BSDReno/usr.sbin/sendmail/cf/m4/nstcpldm.m4, revision 1.1

1.1     ! root        1: divert(10)
        !             2: #
        !             3: # Copyright (c) 1983 Eric P. Allman
        !             4: # Copyright (c) 1988 The Regents of the University of California.
        !             5: # All rights reserved.
        !             6: #
        !             7: # Redistribution and use in source and binary forms are permitted
        !             8: # provided that the above copyright notice and this paragraph are
        !             9: # duplicated in all such forms and that any documentation,
        !            10: # advertising materials, and other materials related to such
        !            11: # distribution and use acknowledge that the software was developed
        !            12: # by the University of California, Berkeley.  The name of the
        !            13: # University may not be used to endorse or promote products derived
        !            14: # from this software without specific prior written permission.
        !            15: # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
        !            16: # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
        !            17: # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
        !            18: #
        !            19: #      @(#)nstcpldm.m4 1.10 (Berkeley) 2/15/89
        !            20: #
        !            21: divert(0)
        !            22: ############################################################
        !            23: ############################################################
        !            24: #####
        !            25: #####          Local Domain SMTP Mailer specification
        !            26: #####
        !            27: #####  Messages processed by this specification are assumed to remain
        !            28: #####  the local domain.  Hence, they can refer to hosts that are
        !            29: #####  not registered in the NIC host table.
        !            30: #####
        !            31: ############################################################
        !            32: ############################################################
        !            33: 
        !            34: Mtcpld,        P=[IPC], F=mDFMueXLC, S=17, R=27, A=IPC $h, E=\r\n
        !            35: 
        !            36: S17
        !            37: 
        !            38: # cleanup forwarding a bit
        !            39: R$*<$*>$*              $1$2$3                          defocus
        !            40: R$*                    $:$>3$1                         canonicalize
        !            41: R$*%$*<@$w>            $:$>9$1%$2                      user%localhost@localdomain
        !            42: 
        !            43: # pass <route-addr>'s through
        !            44: R<@$+>$*               $@<@$[$1$]>$2                   resolve <route-addr>
        !            45: 
        !            46: # map colons to dots everywhere
        !            47: R$*:$*                 $1.$2                           map colons to dots
        !            48: 
        !            49: # output local host as [email protected]
        !            50: R$-                    $@$1<@$w>                       user w/o host
        !            51: R$+<@$w>               $@$1<@$w>                       this host
        !            52: R$+<@$=w>              $@$1<@$w>                       or an alias
        !            53: R$+<@$->               $:$1<@$[$2$]>                   ask nameserver
        !            54: R$+<@$w>               $@$1<@$w>                       this host
        !            55: R$+<@$->               $@$1<@$2.$D>                    if nameserver fails
        !            56: 
        !            57: # if not local, and not a "fake" domain, ask the nameserver
        !            58: R$+<@$+.$~I>           $@$1<@$[$2.$3$]>                [email protected]
        !            59: R$+<@[$+]>             $@$1<@[$2]>                     already ok
        !            60: 
        !            61: # output fake domains as user%fake@relay
        !            62: 
        !            63: ifdef(`BITNET_RELAY',
        !            64: R$+<@$+.BITNET>                $@$1%$2.BITNET<@$B>             [email protected])
        !            65: ifdef(`CSNET_RELAY',
        !            66: R$+<@$+.CSNET>         $@$1%$2.CSNET<@$C>              [email protected])
        !            67: R$+<@$+.UUCP>          $@$2!$1<@$w>                    [email protected]
        !            68: 
        !            69: 
        !            70: S27
        !            71: 
        !            72: # cleanup
        !            73: R$*<$*>$*              $1$2$3                          defocus
        !            74: R$*                    $:$>3$1                         now canonical form
        !            75: R$*%$*<@$w>            $:$>9$1%$2                      user%localhost@localdomain
        !            76: 
        !            77: # pass <route-addr>'s through
        !            78: R<@$+>$*               $@<@$[$1$]>$2                   resolve <route-addr>
        !            79: 
        !            80: # map colons to dots everywhere
        !            81: R$*:$*                 $1.$2                           map colons to dots
        !            82: 
        !            83: # output local host as [email protected]
        !            84: R$-                    $@$1<@$w>                       user w/o host
        !            85: R$+<@$w>               $@$1<@$w>                       this host
        !            86: R$+<@$=w>              $@$1<@$w>                       or an alias
        !            87: R$+<@$->               $:$1<@$[$2$]>                   ask nameserver
        !            88: R$+<@$w>               $@$1<@$w>                       this host
        !            89: R$+<@$->               $@$1<@$2.$D>                    if nameserver fails
        !            90: 
        !            91: # if not local, and not a "fake" domain, ask the nameserver
        !            92: R$+<@$+.$~I>           $@$1<@$[$2.$3$]>                [email protected]
        !            93: R$+<@[$+]>             $@$1<@[$2]>                     already ok
        !            94: 
        !            95: # output fake domains as user%fake@relay
        !            96: 
        !            97: ifdef(`BITNET_RELAY',
        !            98: R$+<@$+.BITNET>                $@$1%$2.BITNET<@$B>             [email protected])
        !            99: ifdef(`CSNET_RELAY',
        !           100: R$+<@$+.CSNET>         $@$1%$2.CSNET<@$C>              [email protected])
        !           101: R$+<@$+.UUCP>          $@$2!$1                         [email protected]
        !           102: 

unix.superglobalmegacorp.com

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