Have user alice forward local mail to alice@example.net without changing system-wide aliases.
Which file is representative?
~/.forward is the conventional per-user forwarding file in the user's home directory.
Detailed explanation
/etc/aliasesIncorrect. /etc/aliases is a system-wide alias file.
Incorrect. /etc/aliases is a system-wide alias file.
/home/alice/.forwardCorrect. /home/alice/.forward controls alice's local forwarding.
Correct. /home/alice/.forward controls alice's local forwarding.
/var/spool/mail/.forwardIncorrect. A user's forward file is not normally stored in the spool root.
Incorrect. A user's forward file is not normally stored in the spool root.
/etc/postfix/forwardIncorrect. There is no universal MTA-wide path of this name.
Incorrect. There is no universal MTA-wide path of this name.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s\n' '/home/alice/.forward -> alice@example.net'Expected result
/home/alice/.forward -> alice@example.netKey points
- Home-directory file
- Per-user setting
- Check owner and permissions
Notes
- Environment: 合成forwarding表の表示のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.