VMS Help  —  PMDF
mapping information from the mapping file itself. When the /IMAGE_FILE qualifier is specified without an optional file name, PMDF will load the compiled configuration file PMDF_ CONFIG_DATA. If, instead, a file name is specified then that file, which is expected to be a compiled configuration image, will be loaded instead.

42.7.5.3    /MAPPING_FILE

       /MAPPING_FILE=filename

    This qualifier instructs TEST/MAPPING to use the specified
    mapping file rather than the default mapping file, PMDF_MAPPING_
    FILE.

    This qualifier has no effect unless /NOIMAGE_FILE is specified
    or no compiled configuration exists; use of any compiled
    configuration will preclude reading any sort of mapping file.

42.7.5.4    /OPTION_FILE

       /OPTION_FILE=filename
       /NOOPTION_FILE

    This qualifier instructs TEST/MAPPING to use the specified option
    file rather than the default option file PMDF_OPTION_FILE.

    This qualifier has no effect unless /NOIMAGE_FILE is specified
    or no compiled configuration exists; use of any compiled
    configuration will preclude reading any sort of option file.

    Use of the qualifier /NOOPTION_FILE will prevent the file
    PMDF_OPTION_FILE from being read in when there is no compiled
    configuration.

42.7.5.5    /TABLE

       /TABLE=table-name

    This qualifier specifies the name of the mapping table to test.
    If this qualifier is not specified, then TEST/MAPPING will prompt
    for the name of a table to use.

42.7.6  –  Examples

      In the following example, the sample PAGER mapping is tested.
      The /MAPPING_FILE qualifier is used to select the mapping file
      PAGER_TABLE.SAMPLE instead of the default mapping file.

 $ PMDF TEST/MAPPING/NOIMAGE/MAPPING_FILE=PMDF_TABLE:pager_table.sample
 Enter table name: PAGER
 Input string: H|From: "Daniel C. Newman"
 <dan@example.com> (Doof City)
 Output string: H|F:dan
 Output flags: [0, 1, 2, 'Y' 89]
 Input string: ^Z
 $

42.8    /MATCH

    Test a mapping wildcard pattern.

    Syntax

      PMDF TEST/MATCH

    Command Qualifiers    Defaults

    None.                 None.

42.8.1  –  Restrictions

    None.

42.8.2  –  Prompts

    Pattern:         mapping-pattern
    Target:          target-string

42.8.3  –  Parameters

    None.

42.8.4  –  Description

    TEST/MATCH may be used to test wildcard and glob matching, such
    as in a mapping pattern.

    When invoked, TEST/MATCH prompts for a pattern and then for a
    target string to compare against the pattern, and will output
    whether or not the target string matched and if it did match,
    which characters in the target string matched which wildcard or
    glob of the pattern. TEST/MATCH will loop, prompting for input,
    until exitted with a CTRL/Z.

42.8.5  –  Examples

      In the following example, the sample mapping pattern
      $[AX1]*@*.EXAMPLE.COM is tested for several sample target
      strings.

        $ PMDF TEST/MATCH
        Pattern: $[ax1]*@*.example.com
          [  1S] cglob [1ax]
          [  2] "@"
          [  3S] glob, req 109, reps 2
          [  4] "."
          [  5] "a"
          [  6] "c"
          [  7] "m"
          [  8] "e"
          [  9] "."
          [ 10] "c"
          [ 11] "o"
          [ 12] "m"
        Target: xx11a@sys1.example.com
        Match.
        0 - xx11a
        1 - sys1
        Pattern: $[ax1]*@*.example.com
          [  1S] cglob [1ax]
          [  2] "@"
          [  3S] glob, req 109, reps 2
          [  4] "."
          [  5] "a"
          [  6] "c"
          [  7] "m"
          [  8] "e"
          [  9] "."
          [ 10] "c"
          [ 11] "o"
          [ 12] "m"
        Target: 12a@node.example.com
        No match.
        Pattern: $[ax1]*@*.example.com
          [  1S] cglob [1ax]
          [  2] "@"
          [  3S] glob, req 109, reps 2
          [  4] "."
          [  5] "a"
          [  6] "c"
          [  7] "m"
          [  8] "e"
          [  9] "."
          [ 10] "c"
          [ 11] "o"
          [ 12] "m"
        Target: 1xa@node.example.com
        Match.
        0 - 1xa
        1 - node
        Pattern: ^Z
        $

42.9    /MHS

    Test MHS channel address transformations.

    Syntax

      PMDF TEST/MHS  [test-address|test-time]

    Command Qualifiers             Defaults

    /822TOLAN                      /822TOLAN
    /BACKWARD                      /FORWARD
    /CHANNEL=channel-name          /CHANNEL=mhs_local
    /DEBUG                         /NODEBUG
    /ENVELOPE                      /HEADER
    /FORWARD                       /FORWARD
    /HEADER                        /HEADER
    /LANTO822                      /822TOLAN
    /TIME                          See text

42.9.1  –  Restrictions

    This utility is supplied only with the PMDF-LAN optional layered
    product.

42.9.2  –  Prompts

    Address:         test-address
    Time:       test-time

42.9.3  –  Parameters

 test-address

    Optional address to test.

 test-time

    Optional time to test.

42.9.4  –  Description

    Test a MHS Mail channel's transformation of an address or time.

42.9.5  –  Command Qualifiers

42.9.5.1    /822TOLAN

       /822TOLAN (default)
       /LANTO822

    The testing process can test conversion of RFC 822 addresses to
    MHS format, /822TOLAN, or test conversion of MHS format addresses
    to RFC 822 format, /LANTO822.

42.9.5.2    /BACKWARD

       /BACKWARD
       /FORWARD (default)

    The testing process can test conversion of backwards or forwards
    pointing addresses; the default is forward pointing addresses.

42.9.5.3    /CHANNEL

       /CHANNEL=channel-name

    Different MHS channels may be configured to perform different
    transformations. If this option is not specified, the default is
    to test the mhs_local channel.

42.9.5.4    /DEBUG

       /DEBUG
       /NODEBUG (default)

    The testing process is capable of producing detailed processing
    information. The /DEBUG qualifier enables this output; it is
    disabled by default.

42.9.5.5    /ENVELOPE

       /ENVELOPE
       /HEADER (default)

    The testing process can test envelope or header addresses; the
    default is header addresses.

42.9.5.6    /TIME

    The testing process by default tests address transformations, but
    the /TIME qualifier specifies that it should instead test time
    transformations.

42.9.6  –  Examples

  $ PMDF TEST/MHS adam@mhs.example.com
  ADAM@EXAMPLE
  $ PMDF TEST/MHS postmaster@example.com
  POSTMASTER@PMDF
  $ PMDF TEST/MHS service@example.com
  MAILER@PMDF {smtp:SERVICE@example.COM}

      This example shows testing an mhs_local channel's
      transformation of several addresses. The output shown
      corresponds to a mhs_local channel with official host
      name mhs.example.com and channel options MHS_DEFAULT_
      WORKGROUP=EXAMPLE, MHS_GATEWAY_WORKGROUP=PMDF, MHS_GATEWAY_
      USERNAME=MAILER, and MHS_GATEWAY_TYPE=SMTP, and where the site
      has example.com as the official local host name.

42.10    /REWRITE

    Test address rewriting specified by a PMDF configuration

    Syntax

      PMDF TEST/REWRITE  [test-address[,...]]

    Command Qualifiers             Defaults

    /ALIAS_FILE=file-spec          /ALIAS_FILE=PMDF_ALIAS_FILE
    /CHANNEL                       /CHANNEL
    /CHECK_EXPANSIONS              /NOCHECK_EXPANSIONS
    /CONFIGURATION_FILE=file-spec  /CONFIGURATION_FILE=PMDF_CONFIG_FILE
    /DATABASE=database-list        See text
    /DEBUG                         /NODEBUG
    /DELIVERY_RECEIPT              See text
    /DESTINATION_CHANNEL=channel   None
    /FILTER                        /NOFILTER
    /FROM=address                  /FROM=postmaster@localhost
    /GREY=setting                  /GREY=0
    /IMAGE_FILE=file-spec          /IMAGE_FILE=PMDF_CONFIG_DATA
    /LOCAL_ALIAS=value             None
    /MAPPING_FILE=file-spec        /MAPPING_FILE=PMDF_MAPPING_FILE
    /OPTION_FILE=file-spec         /OPTION_FILE=PMDF_OPTION_FILE
    /READ_RECEIPT                  See text
    /REPROCESSING                  /REPROCESSING
    /RESTRICTED=setting            /RESTRICTED=0
    /SOURCE_CHANNEL=channel        /SOURCE_CHANNEL=L

42.10.1  –  Restrictions

    None.

42.10.2  –  Prompts

    Address:  test-address[,...]

42.10.3  –  Parameters

 test-address

    Optional parameter specifying one or more addresses to rewrite.

42.10.4  –  Description

    TEST/REWRITE provides a straightforward test facility for
    examining PMDF's address rewriting and channel mapping process
    without actually sending any message. Various qualifiers can be
    used to control whether TEST/REWRITE uses the configuration text
    files or the compiled configuration (if present), the amount of
    output produced, and so on.

    If one or more test addresses are specified on the command
    line, TEST/REWRITE applies PMDF address rewriting to those
    addresses, reports the results, and exits. If no test address
    is specified TEST/REWRITE will enter a loop, prompting for
    addresses, rewriting them, and prompting again for more
    addresses. TEST/REWRITE will exit when a CTRL/Z is entered.

    When testing rewriting of a alias corresponding to a mailing list
    which has an AUTH_ or CANT_ type of named parameter controlling
    who is authorized to post to the list, or when testing rewriting
    when SEND_ACCESS or related mapping tables are in effect, note
    that by default TEST/REWRITE uses as the posting address the
    return address of the local postmaster as specified by the
    RETURN_ADDRESS option in the PMDF option file. To specify a
    different posting address for the rewriting process, use the
    /FROM qualifier.

42.10.5  –  Command Qualifiers

42.10.5.1    /ALIAS_FILE

       /ALIAS_FILE=filename

    TEST/REWRITE normally consults the default alias file PMDF_ALIAS_
    FILE during the rewriting process. The /ALIAS_FILE qualifier
    specified an alternate file for TEST/REWRITE to use.

    This qualifier has no effect unless /NOIMAGE_FILE is specified
    or no compiled configuration exists; use of any compiled
    configuration precludes reading any sort of alias file.

42.10.5.2    /CHANNEL

       /CHANNEL (default)
       /NOCHANNEL

    This qualifier controls whether the utility outputs detailed
    information, e.g., channel flags, regarding the channel an
    address matches.

42.10.5.3    /CHECK_EXPANSIONS

       /CHECK_EXPANSIONS
       /NOCHECK_EXPANSIONS (default)

    This qualifier controls checking of alias address expansion.
    Normally PMDF considers the expansion of an alias to have been
    successful if any of the addresses the alias expands to are
    legal. The /CHECK_EXPANSIONS qualifier causes a much stricter
    policy to be applied; TEST/REWRITE checks each expanded address
    in detail and reports a list of any addresses, expanded or
    otherwise, that fail to rewrite properly. For addresses that
    match the L channel, PMDF also performs validity checks.

42.10.5.4    /CONFIGURATION_FILE

       /CONFIGURATION_FILE=filename

    TEST/REWRITE normally consults the default configuration
    file PMDF_CONFIG_FILE during the rewriting process. The
    /CONFIGURATION_FILE qualifier specifies an alternate file to
    use in place of the file PMDF_CONFIG_FILE.

    This qualifier has no effect unless /NOIMAGE_FILE is specified
    or no compiled configuration exists; use of any compiled
    configuration will preclude reading any sort of configuration
    file.

42.10.5.5    /DEBUG

       /DEBUG
       /NODEBUG (default)

    The address rewriting process is capable of producing additional,
    detailed explanations of what actions are taken and why. The
    /DEBUG qualifier enables this output; it is disabled by default.

42.10.5.6    /DATABASE

       /DATABASE=database-list

    TEST/REWRITE normally consults the usual PMDF databases
    during its operation. This qualifier is used to either disable
    references to various databases or to redirect the database paths
    to nonstandard locations.

    The allowed list items are ALIAS, NOALIAS, PERSONAL_ALIAS,
    NOPERSONAL_ALIAS, DOMAIN, NODOMAIN, FORWARD, NOFORWARD, GENERAL,
    NOGENERAL, REVERSE, and NOREVERSE. The list items beginning with
    "NO" disable use of the corresponding database. The remaining
    items require an associated value, which is taken to be the name
    of that database.

42.10.5.7    /DELIVERY_RECEIPT

       /DELIVERY_RECEIPT
       /NODELIVERY_RECEIPT

    The /DELIVERY_RECEIPT and /NODELIVERY_RECEIPT qualifiers, which
    explicitly set the corresponding receipt request flags, can
    be useful when testing the handling of receipt requests when
    rewriting forwarded addresses or mailing lists.

42.10.5.8    /DESTINATION_CHANNEL

       /DESTINATION_CHANNEL=channel

    The /DESTINATION_CHANNEL qualifier controls what destination or
    target channel TEST/REWRITE rewrites addresses for. Some address
    rewriting is destination channel specific; this qualifier allows
    control of the assumed destination channel.

42.10.5.9    /FILTER

       /FILTER
       /NOFILTER (default)

    The /FILTER qualifier may be used to have PMDF TEST/REWRITE
    output any filters (personal mailbox, channel, or system)
    applying for the address in question.

42.10.5.10    /FROM

       /FROM=address
       /NOFROM

    This qualifier controls what envelope From: address is used for
    access control probes and mailing list access probes. If the
    /FROM qualifier is omitted, then the address used for access
    checks is the postmaster return address. Specifying either
    /FROM=<> or /NOFROM tells the utility to use an empty envelope
    From: address for access checks.

42.10.5.11    /GREY

       /GREY=setting
       /NOGREY (default)

    This qualifier controls the setting of the Grey Book flag. By
    default, this flag has value 0. When set to 1, /GREY=1, the Grey
    Book flag will be set on and addresses will be rewritten using
    the Grey Book format.

    This flag is used to force rewriting of address in accordance
    with the JANET (Grey Book) specifications. The most significant
    effect is that domain specifications appear in reverse order,
    e.g., edu.claremont.ymir and not ymir.claremont.edu. See the PMDF
    System Manager's Guide for further details.

    Grey Book address formats are not currently used in PMDF, so this
    qualifier's usefulness is problematic at best.

42.10.5.12    /IMAGE_FILE

       /IMAGE_FILE[=filename]
       /NOIMAGE_FILE

    The /IMAGE_FILE qualifier serves two purposes. The first is
    when /NOIMAGE_FILE is specified; this instructs TEST/REWRITE
    to ignore any compiled configuration unconditionally and to read
    configuration information from the various text files instead.

    When the /IMAGE_FILE qualifier is specified without an optional
    file name, PMDF TEST/REWRITE will load the compiled configuration
    from the file PMDF_CONFIG_DATA. If, instead, a file name is
    specified then TEST/REWRITE will load the compiled configuration
    from the specified file.

42.10.5.13    /LOCAL_ALIAS

       /LOCAL_ALIAS=value
       /NOLOCAL_ALIAS (default)

    This qualifier controls the setting of an alias for the local
    host. PMDF supports multiple "identities" for the local host;
    the local host may have a different identity on each channel.
    This qualifier may be used to set the local host alias to the
    specified value; appearances of the local host in rewritten
    addresses will be replaced by this value.

42.10.5.14    /MAPPING_FILE

       /MAPPING_FILE[=filename]
       /NOMAPPING_FILE

    This qualifier instructs TEST/REWRITE to use the specified
    mapping file rather than the default mapping file named by the
    PMDF_MAPPING_FILE logical name, usually PMDF_TABLE:MAPPINGS.

    This qualifier has no effect unless /NOIMAGE_FILE was specified
    or no compiled configuration exists; use of any compiled
    configuration will preclude reading the mapping file.

    Use of the /NOMAPPING_FILE qualifier will prevent the PMDF_
    MAPPING_FILE file from being read in when there is no compiled
    configuration.

42.10.5.15    /OPTION_FILE

       /OPTION_FILE=filename
       /NOOPTION_FILE

    This qualifier instructs TEST/REWRITE to use the specified option
    file rather than the default option file PMDF_OPTION_FILE.

    This qualifier has no effect unless /NOIMAGE_FILE is specified
    or no compiled configuration exists; use of any compiled
    configuration will preclude reading any sort of option file.

    Use of the qualifier /NOOPTION_FILE will prevent the file
    PMDF_OPTION_FILE from being read in when there is no compiled
    configuration.

42.10.5.16    /READ_RECEIPT

       /READ_RECEIPT
       /NOREAD_RECEIPT

    The /READ_RECEIPT and /NOREAD_RECEIPT qualifiers, which
    explicitly set the corresponding receipt request flags, can
    be useful when testing the handling of receipt requests when
    rewriting forwarded addresses or mailing lists.

42.10.5.17    /REPROCESSING

       /REPROCESSING (default)
       /NOREPROCESSING

    This qualifier allows the utility to display the contents of a
    mailing list which uses the [REPROCESS] named parameter in its
    alias definition.

42.10.5.18    /RESTRICTED

       /RESTRICTED=value
       /NORESTRICTED

    This qualifier controls the setting of the restricted flag. By
    default, this flag has value 0. When set to 1, /RESTRICTED=1, the
    restricted flag will be set on and addresses will be rewritten
    using the restricted mailbox encoding format recommend by
    RFC1137.

    This flag is used to force rewriting of address mailbox names in
    accordance with the RFC1137 specifications; see the PMDF System
    Manager's Guide for further details.

42.10.5.19    /SOURCE_CHANNEL

       /SOURCE_CHANNEL=channel

    The /SOURCE_CHANNEL qualifier controls what source channel to
    rewrite addresses for. Some address rewriting is source channel
    specific; TEST/REWRITE normally pretends that the channel source
    it is rewriting for is the local channel, L.

42.10.6  –  Examples

      This example shows the typical output generated by
      TEST/REWRITE. Perhaps the single most important piece of
      information generated by TEST/REWRITE is the last few lines
      of the TEST/REWRITE output, 6, which give the channel to
      which TEST/REWRITE would submit a message with the specified
      test address and the form in which the test address would be
      rewritten for that channel. This output is invaluable when
      debugging configuration problems.

 $ PMDF TEST/REWRITE DAN@EXAMPLE.COM
    forward channel       = tcp_local
   channel description    =
   channel user filter    =
   dest channel filter    =
   source channel filter  =
    channel flags #0      = BIDIRECTIONAL SINGLE_SYSTEM IMMNORMAL NOSERVICEALL
   channel flags #1       = SMTP RANDOMMX MAYTLS DEFAULT
   channel flags #2       = NOLOCALPOST POSTHEADBODY HEADERINC NOEXPROUTE
   channel flags #3       = LOGGING NOGREY NORESTRICTED
   channel flags #4       = EIGHTNEGOTIATE NOHEADERTRIM NOHEADERREAD RULES
   channel flags #5       = MASTER_DEBUG
   channel flags #6       = LOCALUSER REPORTHEADER
   channel flags #7       = SWITCHCHANNEL NOREMOTEHOST DATEFOUR DAYOFWEEK
   channel flags #8       = NODEFRAGMENT EXQUOTA REVERSE NOCONVERT_OCTET_STREAM
   channel flags #9       = NOTHURMAN INTERPRETENCODING INCLUDEFINAL RECEIVEDFROM
   linelength             = 998
   addrsperfile           = 127
   channel env addr type  = SOURCEROUTE
   channel hdr addr type  = SOURCEROUTE
    channel official host = TCP-DAEMON
   channel local alias    =
    channel queue name    = MAIL_TCP_BATCH
   channel after param    = 60
   channel daemon name    = fw.example.com
   channel user name      =
   urgentnotices          = 1 4 8 12
   normalnotices          = 1 4 8 12
   nonurgentnotices       = 1 4 8 12
    channel rightslist ids =
    backward channel      = tcp_local
   header To: address     = DAN@EXAMPLE.COM
   header From: address   = DAN@EXAMPLE.COM
   envelope To: address   = DAN@EXAMPLE.COM  (route (TCP-DAEMON,TCP-DAEMON))
   envelope From: address = DAN@EXAMPLE.COM
   name                   =
   mbox                   = DAN
 Extracted address action list:
     DAN@EXAMPLE.COM
 Extracted 733 address action list:
     DAN@EXAMPLE.COM
 Address list expansion:
Close Help