When you build a configuration table,
you can do a certain amount of testing
test mode of
sendmail. For example,
you could invoke
which would read the configuration file
test.cf and enter test mode.
In this mode,
you enter lines of the form:
- sendmail -bt -Ctest.cf
rwset is the rewriting set you want to use
address is an address to apply the set to.
Test mode shows you the steps it takes
as it proceeds,
finally showing you the address it ends up with.
You may use a comma separated list of rwsets
for sequential application of rules to an input.
- rwset address
first applies ruleset three to the input
monet:bollard. Ruleset one is then applied to the output of ruleset three,
followed similarly by rulesets twenty-one and four.
- 3,1,21,4 monet:bollard
If you need more detail,
you can also use the
-d21 flag to turn on more debugging.
turns on an incredible amount of information;
a single word address
is probably going to print out several pages worth of information.
- sendmail -bt -d21.99
You should be warned that internally,
sendmail applies ruleset 3 to all addresses.
In test mode
you will have to do that manually.
For example, older versions allowed you to use
This version requires that you use:
- 0 email@example.com
- 3,0 firstname.lastname@example.org
As of version 8.7,
some other syntaxes are available in test mode:
x to have the indicated
value. This is useful when debugging rules that use the
adds the indicated
value to class
dumps the contents of the indicated ruleset.
is equivalent to the command-line flag.
[Contents] [Previous] [Next]
Questions or problems regarding this web site should be directed to Steve Gielda.
Copyright © 1999 www.cotse.com. All rights reserved.
Last modified: Friday April 02, 1999.