CHAPTER 26 Mail
% /usr/lib/sendmail -bp or mailq.
You can test the address rewriting rules of the sendmail.cf file by running sendmail in test mode, e.g., to see how the mail server, will treat the address, frank@magnus, going through ruleset 0:
% /usr/lib/sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> 0 frank@magnus
rewrite: ruleset 0 input: frank @ magnus
rewrite: ruleset 98 input: frank @ magnus
rewrite: ruleset 98 returns: frank @ magnus
rewrite: ruleset 97 input: frank @ magnus
rewrite: ruleset 3 input: frank @ magnus
rewrite: ruleset 96 input: frank < @ magnus >
rewrite: ruleset 96 returns: frank < @ magnus . acs . ohio-state . edu . >
rewrite: ruleset 3 returns: frank < @ magnus . acs . ohio-state . edu . >
rewrite: ruleset 0 input: frank < @ magnus . acs . ohio-state . edu . >
rewrite: ruleset 98 input: frank < @ magnus . acs . ohio-state . edu . >
rewrite: ruleset 98 returns: frank < @ magnus . acs . ohio-state . edu . >
rewrite: ruleset 95 input: < > frank < @ magnus . acs . ohio-state . edu . >
rewrite: ruleset 95 returns: frank < @ magnus . acs . ohio-state . edu . >
rewrite: ruleset 0 returns: $# smtp $@ magnus . acs . ohio-state . edu . $: frank < @ magnus . acs . ohio-state . edu . >
rewrite: ruleset 97 returns: $# smtp $@ magnus . acs . ohio-state . edu . $: frank < @ magnus . acs . ohio-state . edu . >
rewrite: ruleset 0 returns: $# smtp $@ magnus . acs . ohio-state . edu . $: frank < @ magnus . acs . ohio-state . edu . >