LFCS · Question #45
What is true regarding the file ~/.forward?
The correct answer is D. When configured correctly, ~/.forward can be used to forward each incoming mail to more than. The ~/.forward file is a user-specific configuration that allows incoming emails to be redirected to one or more alternative email addresses or even piped to a program. This file is processed by the local Mail Delivery Agent (MDA) for each user.
Question
Options
- AAs it is owned by the MTA and not writable by the user, it must be edited using the editaliases
- BAfter editing ~/.forward the user must run newaliases to make the mail server aware of the
- CUsing ~/.forward, root may configure any email address whereas all other users may configure
- DWhen configured correctly, ~/.forward can be used to forward each incoming mail to more than
How the community answered
(41 responses)- A7% (3)
- B2% (1)
- C2% (1)
- D88% (36)
Why each option
The `~/.forward` file is a user-specific configuration that allows incoming emails to be redirected to one or more alternative email addresses or even piped to a program. This file is processed by the local Mail Delivery Agent (MDA) for each user.
The `~/.forward` file is owned by the user and is intended to be writable and editable by the user directly, not by `editaliases`.
The `newaliases` command is used to rebuild the system-wide mail aliases database and is not required for changes to a user's `~/.forward` file to take effect.
The `~/.forward` file is user-specific; any user can configure forwarding to any valid email address, subject to MTA security restrictions, not just root.
The `~/.forward` file can contain a comma-separated list of email addresses, allowing a user to forward their incoming mail to multiple recipients simultaneously. It can also direct mail to files or programs.
Concept tested: User mail forwarding (~/.forward)
Source: https://linux.die.net/man/5/forward
Topics
Community Discussion
No community discussion yet for this question.