108.3基礎
aliceの~/.forwardで、alice宛てのmailをhelpdesk@example.netへ転送する。
file内容として適切なものはどれか。
× 不正解
.forwardには配送先address等を記述し、alias名とcolonを付ける必要はない。
詳細解説
誤り
alice: helpdesk@example.net/etc/aliasesのalias形式をuser forward fileへ混同している。
誤り。.forwardはすでにaliceというlocal recipientの文脈で読まれるため、alice:というalias左辺を付けない。
誤り
forward=helpdesk@example.netshell変数代入形式ではない。
誤り。environment variableの代入fileではなく、MTAが配送先addressとして各行を解釈する。
正しい
helpdesk@example.net配送先addressを1行で記述する。
正しい。remote addressを直接記述し、alice宛てmessageをhelpdesk@example.netへ転送させる。
誤り
mailq helpdesk@example.netqueue表示commandでforward先の記述ではない。
誤り。mailqはqueueを表示する実行commandで、forward先addressのdataではない。
実際に確かめる
一時的な検証環境で実行できる例です。
printf '%s\n' 'helpdesk@example.net'期待される結果
helpdesk@example.net理解のポイント
- 宛先を直接記述
- alias左辺は不要
- MTAがlocal配送時に読む
確認時の注意
- 確認環境: 合成.forward内容の表示のみ
基礎のおさらい
複数配送先
implementationが対応するseparatorや複数行で複数recipient、program、file等を指定できるが、安全性とloopを確認する。
remote forwarding
転送先serverのSPF/DMARC等により再転送mailが拒否される場合もあり、運用面の配送確認が必要である。
問題IDKP-108-759
確認環境合成.forward内容の表示のみ
最終技術確認2026-08-13
誤り・権利侵害を報告