Solved

.forward file not working

Posted on 2006-06-26
4
348 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
create user in TSM 7 590
Most secure Linux or x86 Unix that are least prone to ransomware/malware 24 100
Unix Question 19 45
Image not there 4 45
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

895 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now