Users can redirect mail addressed to themselves by creating a file named
in their home directory
member1, member2, ...
There can be multiple lines,
but they are treated independently
(there are no continuation lines).
Just as in the
may be a user address, a file name,
a program reference,
The ability to run progams or to write to files from the .forward file is controlled by the /etc/shells file. If the owner of the .forward file lacks a valid shell as listed in /etc/shells , program execution is disallowed. The special string /SENDMAIL/ANY/SHELL/ , when placed in the /etc/shells file, allows all users to execute programs and deliver to files (see §18.8.56).