LX0-104 · 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. When correctly configured, the ~/.forward file allows a user to automatically forward all incoming email to one or more specified email addresses. This provides a flexible way to redirect mail to different accounts.
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
(48 responses)- A2% (1)
- B2% (1)
- C4% (2)
- D92% (44)
Why each option
When correctly configured, the `~/.forward` file allows a user to automatically forward all incoming email to one or more specified email addresses. This provides a flexible way to redirect mail to different accounts.
The `~/.forward` file is owned by the user and is writable by the user, not the MTA. It is a plain text file edited directly by the user, not via `editaliases`.
Unlike `/etc/aliases`, the `~/.forward` file is read directly by the Mail Delivery Agent (MDA) at the time of delivery; it does not require rebuilding a database with `newaliases`.
The `~/.forward` file applies to the user who owns it. There are no special permissions that allow root to configure any email address via its `~/.forward` file that other users cannot for their own files. Root's `~/.forward` would only affect mail for root.
The `~/.forward` file allows a user to specify one or more email addresses (or even local programs) to which their incoming mail should be automatically forwarded. Each address or program is listed on a new line within the file, enabling multiple forwarding destinations.
Concept tested: User mail forwarding (~/.forward)
Source: https://linux.die.net/man/5/forward
Topics
Community Discussion
No community discussion yet for this question.