mailertableの動作テストで使用した
sendmail -bt
root#>sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> >
Help for test mode:
? :this help message.
.Dmvalue :define macro `m' to `value'.
.Ccvalue :add `value' to class `c'.
=Sruleset :dump the contents of the indicated ruleset.
=M :display the known mailers.
-ddebug-spec :equivalent to the command-line -d debug flag.
$m :print the value of macro $m.
$=c :print the contents of class $=c.
/mx host :returns the MX records for `host'.
/parse address :parse address, returning the value of crackaddr, and
the parsed address.
/try mailer addr :rewrite address into the form it will have when
presented to the indicated mailer.
/tryflags flags :set flags used by parsing. The flags can be `H' for
Header or `E' for Envelope, and `S' for Sender or `R'
for Recipient. These can be combined, `HR' sets
flags for header recipients.
/canon hostname :try to canonify hostname.
/map mapname key :look up `key' in the indicated `mapname'.
/quit :quit address test mode.
rules addr :run the indicated address through the named rules.
Rules can be a comma separated list of rules.
End of HELP info
> /parse [email protected] Cracked address = $g Parsing envelope recipient address canonify input: hoge @ example . com Canonify2 input: hoge < @ example . com > Canonify2 returns: hoge < @ example . com . > canonify returns: hoge < @ example . com . > parse input: hoge < @ example . com . > Parse0 input: hoge < @ example . com . > Parse0 returns: hoge < @ example . com . > ParseLocal input: hoge < @ example . com . > ParseLocal returns: hoge < @ example . com . > Parse1 input: hoge < @ example . com . > Mailertable input: < example . com > hoge < @ example . com . > Mailertable input: example . < com > hoge < @ example . com . > Mailertable returns: hoge < @ example . com . > Mailertable returns: hoge < @ example . com . > MailerToTriple input: < [ 192 . 168 . 1 . 1 ] > hoge < @ example . com . > MailerToTriple returns: $# relay $@ [ 192 . 168 . 1 . 1 ] $: hoge < @ example . com . > Parse1 returns: $# relay $@ [ 192 . 168 . 1 . 1 ] $: hoge < @ example . com . > parse returns: $# relay $@ [ 192 . 168 . 1 . 1 ] $: hoge < @ example . com . > 2 input: hoge < @ example . com . > 2 returns: hoge < @ example . com . > MasqSMTP input: hoge < @ example . com . > MasqSMTP returns: hoge < @ example . com . > final input: hoge < @ example . com . > final returns: hoge @ example . com mailer relay, host [192.168.1.1], user [email protected]
[Ctrl] + [D]