102-500 practice question 8 of 30

Which file, when using Sendmail or a similar MTA system, will allow a user to redirect all their mail to another address and is configurable by the user themselves?

Full set: 233 questions
Answer options
A: /etc/alias
B: ~/.alias
C: /etc/mail/forwarders
D: ~/.forward Correct answer
E: ~/.vacation
Correct Answer:
D. ~/.forward
Explanation

The ~/.forward file is a standard mechanism used by Mail Transfer Agents (MTAs) like Sendmail and Postfix to allow individual users to manage their own email forwarding. By creating this file in their home directory and placing one or more email addresses inside it, a user can redirect all their incoming mail to the specified addresses without needing administrator intervention. The MTA automatically reads this file upon receiving a message for the user and forwards it accordingly.

Why Incorrect

A. /etc/alias: This file is for system-wide aliases and can only be modified by the root user; it is not for individual user configuration.
B. ~/.alias: This is not a standard file for mail forwarding; it is typically associated with shell command aliases.
C. /etc/mail/forwarders: This is not a standard file path or name for configuring user mail forwarding in common MTAs.
E. ~/.vacation: This file is used to configure automated "out of office" replies, not to forward all incoming email to another address.

References

- forward(5) Linux man page. It describes the purpose and format of the .forward file for redirecting a user's mail.

- Sendmail Operations Guide, Section 3.2 "Aliases and Forwarding". The official Sendmail documentation details the use of the .forward file for user-controlled forwarding.

- Postfix documentation, local(8) man page. Under the "FILES" section, it lists ~/.forward as the per-user aliasing file, demonstrating its use in a "similar MTA system".

Scroll to Top