When you build a configuration table,
you can do a certain amount of testing
using the test mode of
sendmail. For example:
sendmail -bt -Ctest.cf
would read the configuration file
test.cf and enter test mode.
In this mode, you enter lines of the form:
where rwset is the rewriting set you want to use and 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. For example:
3,1,21,4 monet:bollardfirst 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.
If you need more detail,
you can also use the -d21
flag to turn on more debugging.
sendmail -bt -d21.99
turns on an incredible amount of information; a single word address is probably going to print out several pages worth of information.
0 firstname.lastname@example.orgThis version requires that you use:
As of version 8.7, additional syntaxes are available in test mode: