8.8 Batch Rule-Set Testing

The
output that is produced by sendmail can become
huge, especially when many addresses need testing. To simplify the
process (and to help bulletproof your configuration file), consider
using a shell script such as the following:

Note that the address.list file should contain
every conceivable kind of address. The output from the shell script
should be saved. At a later time, after the configuration file is
changed, diff(1) can be used to see if the saved
output differs from the new output (to see whether anything
unexpected changed as a result of your modifications).

Also note that directly calling the canonify and
parse rule sets 0 produces less useful information
than does the /parse rule-testing command (Section 8.5.5). If you use that command, a
diff(1) against prior output can provide more
interesting and complete information.