forward - Mail forwarding file
Mail addressed to a local user may be automatically forwarded to any other e-mail address by creating a file called forward in the user’s home directory ($/usr/username/forward). This file typically consists of one line which holds one e-mail address, but multiple lines and multiple e-mail addresses (space-separated) may also be given. Forwarding addresses can reference other local or offsite accounts.
For example, a user on this system named jsbach can create a forward file that contains this address:
Any mail destined for jsbach on this site will effectively be forwarded to email@example.com instead. Note that the local user jsbach will not receive a copy of the letter — it is simply passed onto the forwarding address.
To forward a letter and have a copy retained in the local mailbox, include the user’s name, a space (or a new line), and the forwarding address. Example:
Mail addressed to jsbach is copied to jsbach’s local mailbox as well as forward to firstname.lastname@example.org. A number of additional forwarding addresses can be supplied.
To discontinue forwarding, remove or rename the forward file.
For loop protection, an address in the forward file cannot reference another local user that has a forward file.
aliases(F), mail(C), sendmail(C)