Solved

.forward file not working

Posted on 2006-06-26
4
361 Views
Last Modified: 2013-12-27
hello

I am running solaris 8 and my .forward file is not working - any ideas?

thanks
jculkincys
0
Comment
Question by:jculkincys
4 Comments
 
LVL 34

Accepted Solution

by:
PsiCop earned 300 total points
ID: 16984068
Is the user's directory group- or world-writable?

Is the .forward file group- or world-writable?

Any error messages in the system log?
0
 
LVL 10

Expert Comment

by:Nukfror
ID: 16984351
Well, a little more information would be helpful :)  Like maybe what you .forward file looks like - obviously obfuscated to non-real email address.   Also, have you look in the /var/adm/messages ?  Depending on how your system is configured, sendmail (or whatever SMTP engine your using) may be putting messages into /var/adm/messages.  This could help you figure out where your .forward may be failing.
0
 
LVL 2

Author Comment

by:jculkincys
ID: 16985092
sorry for the lack of info

I think PsiCop is on the right path

Computer1 (where .forward does not work)
...
drwxr-xr-x   6 user groupa    2048 Jun 26 09:47 .
drwxrwxr-x   8 root     root         512 Apr  5 11:04 ..
...

Computer2 (where .forward does work)
...
drwxr-xr-x   4 user groupb     2560 Jun 26 09:50 .
drwxr-xr-x   9 root     other        512 Apr  5 11:05 ..
...

Also there was an error on the syslog file:
Jun 22 23:59:20 hostname sendmail[num]: [ID num mail.warning] identifier: forward /e
xport/home/user/.forward.hostname+: Group writable directory


The .forward file are the same on the 2 computers

jculkincys
0
 
LVL 27

Assisted Solution

by:Nopius
Nopius earned 200 total points
ID: 16988713
> /export/home/user/.forward.hostname+: Group writable directory
Thats an explaination.  Also this "drwxrwxr-x   8 root     root         512 Apr  5 11:04 .."

You have a group writable directory /export/home/ (root group has a write permission).
If it's not importent, disable group writable flag:
chmod g-w /export/home
chmod g-w /export/home/user

OR

If it's importent to have root group writable user directory disable group writable checks in sendmail.cf (it should be somewhere below /etc or /etc/mail):
Uncomment and change this line:

#O DontBlameSendmail=safe
O DontBlameSendmail=ForwardFileInGroupWritableDirPath,ForwardFileInUnsafeDirPath,ForwardFileInUnsafeDirPathSafe

then restart sendmail
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question