Use a sendmail-compatible binary to initialize or rebuild the aliases database.
Which option is appropriate?
sendmail -bi initializes or rebuilds the aliases database, corresponding to newaliases.
Detailed explanation
sendmail -bpIncorrect. -bp prints the queue.
Incorrect. -bp prints the queue.
sendmail -tIncorrect. -t reads message header recipients.
Incorrect. -t reads message header recipients.
sendmail -qIncorrect. -q processes the queue.
Incorrect. -q processes the queue.
sendmail -biCorrect. -bi rebuilds aliases.
Correct. -bi rebuilds aliases.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s\n' 'newaliases == sendmail -bi'Expected result
newaliases == sendmail -biKey points
- -bi aliases database
- -bp queue
- Run after editing
Notes
- Environment: 互換option対応表の表示のみ
- 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.