cancel
Showing results for 
Search instead for 
Did you mean: 

mail forwarding fails

SOLVED
Go to solution
Michael Schulte zur Sur
Honored Contributor

mail forwarding fails

Hi,

I have a .forward file for user sybase and then I try to mail then it says in mail.log.
Dec 21 21:17:39 ham10d sendmail[219974]: VAA0000215655: forward /sybase/sybmgr/.
forward: World writable directory

ls -l /sybase
drwxr-xr-x 20 sybase sybase 8192 Dec 21 19:35 sybmgr

ham10d /> ls -l /sybase/sybmgr/.forward
-rw------- 1 sybase sybase 71 Dec 20 18:28 /sybase/sybmgr/.forward

So why does it say world writable?

Thanks for any idea,

Michael
14 REPLIES
Hein van den Heuvel
Honored Contributor

Re: mail forwarding fails

Isn't it complaining about the directory, not the file.

Try: ls -ld /sybase/sybmgr
and: chmod 750 /sybase/sybmgr

Hint: Just Google for "World writable directory", as this (at first glance) does not appeat to be Tru64 specific.

hth,
Hein.
Michael Schulte zur Sur
Honored Contributor

Re: mail forwarding fails

Hein

this is what I thought. But why is 755 world writable? I will have a look into the links I found at the google search.

thanks,

Michael
Michael Schulte zur Sur
Honored Contributor

Re: mail forwarding fails

Hein,

I changed access to that dir and still the same error.

drwx------ 20 sybase sybase 8192 Dec 21 19:35 sybmgr

I still do not understand that.

thanks,

Michael
ps. the machine runs 5.1A pk6.
Michael Schulte zur Sur
Honored Contributor

Re: mail forwarding fails

Hi again,

I deleted .forward and it is still complaining. I tried the global /var/adm/forward/username
but that did not make any difference.
How do I get the version of sendmail?

thanks,

Michael
Peter Leddy_1
Esteemed Contributor

Re: mail forwarding fails

Hi Michael,

This should show you the version of sendmail that you are running.

sendmail -bs < /dev/null

HTH,

Peter
Don Ritchey
Frequent Advisor
Solution

Re: mail forwarding fails

Check all the directories between your home directory and the root. Any of those directories having group or world writable bits set in the permissions will result in this message. We had a system here where the /home directory was group writable and generated this error message.

Start at your home directory and run the command : 'ls -ld .'
If the permissions are such that only the owner of the directory has write permissions, then go the to parent directory and repeat the steps until you reach root (/). Any of these directories, including root, with group or world writeable permissions need to be set to more secure settings.

Best wishes on getting to a solution to the problem.

Don
Johan Brusche
Honored Contributor

Re: mail forwarding fails

Michael,

Is only mail from sap complaining ? In most cases this is caused by /var/adm/sendmail protection. The whole directory chain var, adm and sendmail should have 755 protection.

__ Johan.

_JB_
Michael Schulte zur Sur
Honored Contributor

Re: mail forwarding fails

Don,
you were right. The /sybase was world writable. If that can be figured out why is the error message not more specific?
In man forward there seems to an inconsistency. At first it says
/var/adm/forward/username and then
/var/forward/username
Now what is it? I have tried both without result. Otherwise it works. Are there any good reasons for using the forward directory and what are the requirement concerning ownership and access?

Thanks for your time,

Michael
Yong_7
Frequent Advisor

Re: mail forwarding fails

Hi Michael,

the actual direcoty path can be defined in sendmail.cf file, it's system-wide mail forwarding settting. good reasons for permission setting like that is you won't interested in allowing someone else to get your email by mucking it.

Cheers !

YJ
Michael Schulte zur Sur
Honored Contributor

Re: mail forwarding fails

Thanks Yong,

I have looked for the definition in sendmail.cf but I could not find it. How does it look like?

thanks,

Michael
Yong_7
Frequent Advisor

Re: mail forwarding fails

Hi Michael.

The ForwardPath ( J) option allows you to set a path of forward files. For example, the config file line

O ForwardPath=/var/forward/$u:$z/.forward.$w

would first look for a file with the same name as the user's login in /var/forward; if that is not found (or is inaccessible) the file ``.forward. machinename'' in the user's home directory is searched. A truly perverse site could also search by sender by using $r, $s, or $f.


Regards !

YJ
Michael Schulte zur Sur
Honored Contributor

Re: mail forwarding fails

Hi,

Does this mean when I drop $u I could forward all mail with a single forwarding file?

Thanks for the quick answer,

Michael
Yong_7
Frequent Advisor

Re: mail forwarding fails

Hi,

it's per-user feature. by specifying the search path, you may control your setting overwite the user's one or search $/HOME/.forward first. it's one file for each user.

with doing one file with it, you may insterested in aliases file or relay setting.

YJ.
Michael Schulte zur Sur
Honored Contributor

Re: mail forwarding fails

Hi everyone,

after correcting the access to /sybase it worked.
I think I will stay with the .forward file in the users home directory.

Thanks for all time,

Michael