GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
FORWARD(5) FreeBSD File Formats Manual FORWARD(5)

forward
mail forwarding instructions

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 symbol (|). 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 redirection.

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.

$HOME/.forward
The user's forwarding instructions.

aliases(5), sendmail(8)
July 2, 1996 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 5 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.