All rights reserved.
312 | Chapter 8: Test Rule Sets with -bt
If the address is missing, sendmail prints the following usage message:
Usage: /parse address
The following example shows a local address being fed into /parse. Note that the
numbers on the left are for later reference and are not part of sendmail??™s output:
> /parse you@localhost (Your Name)
Cracked address = $g (Your Name)
Parsing envelope-recipient address
canonify input: you @ localhost
Canonify2 input: you < @ localhost >
Canonify2 returns: you < @ here . our. domain . >
canonify returns: you < @ here . our. domain . >
parse input: you < @ here . our. domain . >
Parse0 input: you < @ here . our. domain . >
Parse0 returns: you < @ here . our. domain . >
ParseLocal input: you < @ here . our. domain . >
ParseLocal returns: you < @ here . our. domain . >
Parse1 input: you < @ here . our. domain . >
Parse1 returns: $# local $: you
parse returns: $# local $: you
2 input: you
2 returns: you
EnvToL input: you
EnvToL returns: you
final input: you
final returns: you
??“ mailer local, user you
The address you@localhost is first fed into crackaddr (line ) to separate it from any
surrounding RFC822 comments suchas ???(Your Name).??? If mail were actually to be
sent, the address would be stored in the $g macro before being passed to rules.
Pages:
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573