Operating System - Tru64 Unix
1752794 Members
6214 Online
108789 Solutions
New Discussion юеВ

Re: mail forwarding fails

 
SOLVED
Go to solution
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