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.
Question
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)- A5% (2)
- B75% (33)
- C7% (3)
- D14% (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.
/etc/aliases is used to create mail aliases (e.g., root: [email protected]), not to control mail relaying functionality.
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.
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.
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
Community Discussion
No community discussion yet for this question.