Feed an RFC-style message to a sendmail-compatible command and obtain recipients from To, Cc, and Bcc headers.
Which option is appropriate?
sendmail -t extracts recipients from message headers supplied on standard input.
Detailed explanation
sendmail -bpIncorrect. -bp lists the queue.
Incorrect. -bp lists the queue.
sendmail -biIncorrect. -bi rebuilds aliases.
Incorrect. -bi rebuilds aliases.
sendmail -tCorrect. -t parses To, Cc, and Bcc recipients.
Correct. -t parses To, Cc, and Bcc recipients.
sendmail -qIncorrect. -q requests queue processing.
Incorrect. -q requests queue processing.
Try it yourself
An example you can run in a temporary verification environment.
sendmail --help 2>&1 | head -n 5Expected result
sendmail互換commandのhelp/usage(導入環境)Key points
- -t reads header recipients
- -bp lists queue
- Headers and body via stdin
Notes
- Environment: sendmail helpの読取のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.