LX0-104 · Question #43
What is true regarding the command sendmail?
The correct answer is B. All MTAs, including Postfix and Exim, provide a sendmail command.. The sendmail command acts as a common interface for submitting emails, and most Mail Transfer Agents (MTAs) like Postfix and Exim provide a compatible sendmail executable for this purpose. This ensures application compatibility regardless of the underlying MTA.
Question
Options
- AWith any MTA, the sendmail command must be run periodically by the cron daemon.
- BAll MTAs, including Postfix and Exim, provide a sendmail command.
- CThe sendmail command prints the MTAs queue history of which mails have been sent
- DIt is only available when the sendmail MTA is installed.
How the community answered
(23 responses)- A4% (1)
- B87% (20)
- D9% (2)
Why each option
The `sendmail` command acts as a common interface for submitting emails, and most Mail Transfer Agents (MTAs) like Postfix and Exim provide a compatible `sendmail` executable for this purpose. This ensures application compatibility regardless of the underlying MTA.
The `sendmail` command is used to submit mail or administer the queue, not typically run periodically by cron to deliver mail; MTAs handle delivery automatically or by internal queue runners.
Due to the historical prevalence of the Sendmail MTA, other MTAs like Postfix and Exim provide a `sendmail` compatibility layer. This means they install a `sendmail` executable (often a symlink or wrapper) that mimics the original Sendmail interface, allowing applications to submit mail without knowing the specific MTA in use.
The `sendmail` command itself does not print the MTA's queue history of sent mails. Commands like `mailq` or MTA-specific logs are used to inspect the mail queue or delivery history.
This is incorrect because many MTAs provide a `sendmail` compatible executable even if the original Sendmail MTA is not installed, for compatibility reasons.
Concept tested: MTA sendmail compatibility
Source: https://www.postfix.org/sendmail.8.html
Topics
Community Discussion
No community discussion yet for this question.