nerdexam
CompTIA

LX0-104 · Question #473

To avoid spammers using your mail server to relay their messages, you need to _______.

The correct answer is B. Set up a ruleset for this in /etc/sendmail.cf. To prevent spammers from using your mail server for unauthorized relaying, you must configure relay restrictions within the mail server's configuration file. This involves defining which hosts are permitted to send mail through your server.

Security

Question

To avoid spammers using your mail server to relay their messages, you need to _______.

Options

  • ADisable the relay control in /etc/aliases
  • BSet up a ruleset for this in /etc/sendmail.cf
  • CSet up relay control in your DNS's MX record.
  • DRecompile sendmail with the -NORELAY flag.

How the community answered

(44 responses)
  • A
    5% (2)
  • B
    75% (33)
  • C
    7% (3)
  • D
    14% (6)

Why each option

To prevent spammers from using your mail server for unauthorized relaying, you must configure relay restrictions within the mail server's configuration file. This involves defining which hosts are permitted to send mail through your server.

ADisable the relay control in /etc/aliases

/etc/aliases is used to create mail aliases (e.g., root: [email protected]), not to control mail relaying functionality.

BSet up a ruleset for this in /etc/sendmail.cfCorrect

For Sendmail, preventing unauthorized relaying (where spammers use your server to send their spam) is controlled by setting up relay rules in the main configuration file, /etc/sendmail.cf. These rules specify which domains or IP addresses are allowed to relay mail through your server.

CSet up relay control in your DNS's MX record.

An MX (Mail Exchanger) record in DNS points to the mail servers responsible for receiving mail for a domain; it does not control relaying from your server, only where incoming mail for your domain should go.

DRecompile sendmail with the -NORELAY flag.

Recompiling Sendmail with a specific flag like -NORELAY is not the standard or practical way to manage relay control. Relay configurations are typically handled at runtime via the configuration file.

Concept tested: Sendmail relay control configuration

Source: https://www.sendmail.com/doc/current/op/sendmail007.html

Topics

#sendmail#mail relay#anti-spam#mail server configuration

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice