Technical article 125324

When using sendmail, user(s) specified in a .forward file are not receiving email.

OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

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 /u

In this example, the .forward file will not be read. Running:

# chmod 755 /u

Will 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 /u

Examine all directories leading to the .forward file and be sure the last "w" is not present.

From the Xinuos technical article database, record 125324. Reproduced with permission. The original is at www.sco.com/ta/125324, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.