Problem
Mail is not being forwarded to the user or users specified in
the .forward file. No matter what user is specified in
the .forward file, only the user that has the .forward
file in their home directory receives the email.The system is using Sendmail. Cause
One possible cause for this problem is the permissions on the directories leading to the .forward file of this user. If a world writable directory is detected, the .forward file will be ignored and the mail will only be sent to the user specified.
Solution
The permissions on each directory leading to the .forward
must not be world writable. A world writable directory is
a directory that has the 'w' permission set on the "other"
section. For example, this is a world writable directory:# l -d /u
drwxr-xrwx 8 root sys 512 Sep 18 22:25 /uIn this example, the .forward file will not be read. Running:
# chmod 755 /uWill alleviate the problem of the .forward file not being read and should now look like this:
# l -d /u
drwxr-xr-x 8 root sys 512 Sep 18 22:25 /uExamine all directories leading to the .forward file and be sure the last "w" is not present.