AW: Re: [Linux-Biella] Forward ragionato
Claudio M.
linux@bilug.linux.it
Wed, 20 Feb 2002 10:52:15 +0100
On Wed, 20 Feb 2002 10:32 +0100
Luca Bertoncello <lucabert@lucabert.com> wrote:
> Claudio M. <cmaffio@bilug.linux.it> schrieb:
>
> > Nel .forward tu puoi rigirare la mail al un programmino (in perl ad esempio) e poi sara' compito suo vedere a chi e' indirizzata e fare quello che serve, come ad esempio rigirare la mail a qualcun altro e simili
>
> Mi sai dire la sintassi da usare?
>
NAME
forward - mail forwarding instructions
DESCRIPTION
The .forward file contains a list of mail addresses or programs that the
user's mail should be redirected to. If the file is not present, then no
mail forwarding will be done. Mail may also be forwarded as the standard
input to a program by prefixing the line with the normal shell pipe sym-
bol (|). If arguments are to be passed to the command, then the entire
line should be enclosed in quotes. For security reasons, the .forward
file must be owned by the user the mail is being sent to, or by root, and
the user's shell must be listed in /etc/shells.
For example, if a .forward file contained the following lines:
nobody@FreeBSD.org
"|/usr/bin/vacation nobody"
Mail would be forwarded to <nobody@FreeBSD.org> and to the program
/usr/bin/vacation with the single argument nobody.
If a local user address is prefixed with a backslash character, mail is
delivered directly to the user's mail spool file, bypassing further redi-
rection.
For example, if user chris had a .forward file containing the following
lines:
chris@otherhost
\chris
One copy of mail would be forwarded to chris@otherhost and another copy
would be retained as mail for local user chris.
FILES
$HOME/.forward The user's forwarding instructions.
SEE ALSO
aliases(5), mailaddr(7), sendmail(8)
Bye
--
Per cortesia niente allegati word, solo in formato ASCII (.txt)
oppure Rich Text Format (.rtf)
--
Linux Registered User #151147 | Home Page http://www.bilug.linux.it
Linux registered Machine #66331 | ICQ Number 53293810
GPG key http://www.bilug.linux.it/~cmaffio/key-bilug.asc