nerdexam
CompTIA

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.

Essential System Services

Question

What is true regarding the command sendmail?

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)
  • A
    4% (1)
  • B
    87% (20)
  • D
    9% (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.

AWith any MTA, the sendmail command must be run periodically by the cron daemon.

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.

BAll MTAs, including Postfix and Exim, provide a sendmail command.Correct

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.

CThe sendmail command prints the MTAs queue history of which mails have been sent

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.

DIt is only available when the sendmail MTA is installed.

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

#MTA#sendmail command#Postfix#Exim

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice